2010-07-29, 10:39 PM
Fiel Wrote:Here's what I've come up with so far:
This is what happens if a mob damages you
ORDER OF EVENTS:
- Check if the mob missed the attack. If so, return 0 damage.
- The mob's attack is fetched
- If the mob is affected by Threaten, reduce it's WATK value by the percentage given in the skill OR if a mob is influenced by a damage increasing skill, increase the WATK. Precedence is on Threaten.
- Bounds checking - If WATK is less than 0, WATK = 0. If WATK is greater than 30000, WATK = 30000
- Calculate mob base damage
- MobMin = mobAttack * 0.85
- MobMax = mobAttack
- return (MobMin - MobMax) * MobMin * 0.000000100000010000001 + MobMax;
- Calculate Player BasePDD (see spoiler #1)
The above bolded is dangerously close to being 1/9,999,999
This is about as far as I've gotten in about 1 hour. X_X
#1 - Calc_Base_PDD

