Hidden Power (move)/Calculation: Difference between revisions

Undo revision 3561225 by Votaw (talk) The formula should represent how it's actually calculated in-game, even if another formula is equivalent
(Undo revision 3561225 by Votaw (talk) The formula should represent how it's actually calculated in-game, even if another formula is equivalent)
Tag: Undo
Line 94: Line 94:
The [[power]] of the Hidden Power is calculated using the following formula:
The [[power]] of the Hidden Power is calculated using the following formula:


<math display="block">HP_{power} = \bigg\lfloor \frac{5v + Z}{2} + 5w + 10x + 20y + 31\bigg\rfloor</math>
<math display="block">HP_{power} = \bigg\lfloor \frac{5 \times (v + 2w + 4x + 8y) + Z}{2} + 31\bigg\rfloor</math>


* The variables ''v'' through ''y'' (the "damage bits") represent the {{wp|most significant bit}} of each IV. If a variable is less than eight, this bit is 0; otherwise, it is 1.
* The variables ''v'' through ''y'' (the "damage bits") represent the {{wp|most significant bit}} of each IV. If a variable is less than eight, this bit is 0; otherwise, it is 1.