77,629
edits
(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 |
m (→Type: I think it's important to use the actual values, not simplified ones) |
||
Line 143: | Line 143: | ||
Hidden Power's type of a Pokémon with given IVs is represented by a number, calculated with this formula: | Hidden Power's type of a Pokémon with given IVs is represented by a number, calculated with this formula: | ||
<math display="block">HP_{type} = \left\lfloor \frac{(a + 2b + 4c + 8d + 16e + 32f) \times | <math display="block">HP_{type} = \left\lfloor \frac{(a + 2b + 4c + 8d + 16e + 32f) \times 15}{63}\right\rfloor</math> | ||
where ''a'', ''b'', ''c'', ''d'', ''e'', ''f'' (the "type bits") are the {{wp|least significant bit}} of their respective IVs. If a number is odd, its least significant bit is 1; otherwise (if the number is even), it is 0. | where ''a'', ''b'', ''c'', ''d'', ''e'', ''f'' (the "type bits") are the {{wp|least significant bit}} of their respective IVs. If a number is odd, its least significant bit is 1; otherwise (if the number is even), it is 0. |