ajhyndman / fire-emblem-working-title

A fledgling project wrangling Fire Emblem: Heroes stats
25 stars 6 forks source link

Weapon-disadvantage should round differently #30

Closed AlmostMatt closed 7 years ago

AlmostMatt commented 7 years ago

If you have 22 attack, then 20% of that is 4.4. Weapon advantage will be +4 damage and weapon disadvantage will be -4 damage.

This means that floor(atk * 0.8) is wrong. I'm not quite sure how this combines with effective.

AlmostMatt commented 7 years ago

Fixed by https://github.com/ajhyndman/fire-emblem-working-title/commit/a9076219bcde68371462bd0830b90d3ced281ad5