Thread: Programming Damage Calculator
View Single Post
Old Jun 30th, 2010, 12:39:30 AM   #68
DougJustDoug**
Knows the great enthusiasms
is a member of the Smogon Site Staffis an Artistis a Programmeris a Smogon IRC SOpis an Administratoris a Battle Server Admin Alumnusis a Tiering Contributor Alumnus
 
DougJustDoug's Avatar
 
Administrator
Join Date: Jun 2007
Posts: 2,904
Houston, TX
Default

Quote:
Originally Posted by Fat Tyler422 View Post
Calculating a Blizzard and a Grass Knot from the same Abomasnow against the same Palkia results in one damage higher for max for Grass Knot over Blizzard despite both being 120 bp stab attacks.

Im guessing it has something to do with finding Grass Knot's base power.
Palkia is Water/Dragon.

Blizzard is NVE on Water, then it is SE on Dragon.
Grass Knot is SE on Water, then it is NVE on Dragon.

Most people think both moves are neutral on Palkia. That's true enough for casual conversation, but it is not technically true. In the damage formula, both multipliers are applied in sequence, rounding down between each operation. In most cases, the two multipliers effectively "nullify" each other perfectly. But depending on the exact numbers involved in the calc, the two moves actually can have a very slight difference in the final damage, due to the order of the damage calc and the rounding applied between each step.

This is not a mistake or bug in the Damage Calculator. It is the correct implementation of the damage formula.
__________________
My Art Thread: ArtJustArt - The Art of DougJustDoug
DougJustDoug is offline   Reply With Quote