Hidden Power (move)/Calculation: Difference between revisions

m
→‎Damage: This is the formula for Hidden Power's power. Damage is calculated using the standard damage formula.
No edit summary
m (→‎Damage: This is the formula for Hidden Power's power. Damage is calculated using the standard damage formula.)
 
Line 226: Line 226:
Which means that this Unown has a {{type|Bug}} {{m|Hidden Power}}.
Which means that this Unown has a {{type|Bug}} {{m|Hidden Power}}.


===Damage===
===Power===
Damage of the Hidden Power is calculated in a manner very similar to that of its type, using the following formula:
The power of the Hidden Power is calculated in a manner very similar to that of its type, using the following formula:
<math display="block">HP_{power} = \left\lfloor \frac{(u + 2v + 4w + 8x + 16y + 32z) \times 40}{63}\right\rfloor + 30</math>
<math display="block">HP_{power} = \left\lfloor \frac{(u + 2v + 4w + 8x + 16y + 32z) \times 40}{63}\right\rfloor + 30</math>


* The variables ''u'' through ''z'' (the "damage bits") represent the second least significant bit of each IV. If a variable has a remainder of 2 or 3 when divided by 4, this bit is 1; otherwise, the bit is 0.
* The variables ''u'' through ''z'' (the "power bits") represent the second least significant bit of each IV. If a variable has a remainder of 2 or 3 when divided by 4, this bit is 1; otherwise, the bit is 0.
:* ''u'' depends on the HP stat.
:* ''u'' depends on the HP stat.
:* ''v'' and ''w'' depend on the Attack and Defense stats respectively.
:* ''v'' and ''w'' depend on the Attack and Defense stats respectively.