7,076
edits
N. Harmonik (talk | contribs) mNo edit summary |
Bfdifan2006 (talk | contribs) |
||
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} = \ | <math display="block">HP_{type} = \left\lfloor \frac{(a + 2b + 4c + 8d + 16e + 32f) \times 5}{21}\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. | ||
Line 217: | Line 217: | ||
<math> | <math> | ||
\begin{align} | \begin{align} | ||
HP_{type} & = \ | HP_{type} & = \left\lfloor \frac{(1 \cdot 0 + 2 \cdot 1 + 4 \cdot 1 + 8 \cdot 1 + 16 \cdot 0 + 32 \cdot 1) \times 15}{63}\right\rfloor \\ | ||
& = \ | & = \left\lfloor \frac{(0 + 2 + 4 + 8 + 0 + 32) \times 15}{63}\right\rfloor \\ | ||
& = \ | & = \left\lfloor \frac{46 \times 15}{63}\right\rfloor \\ | ||
& = \ | & = \left\lfloor \frac{690}{63}\right\rfloor & \bigg(\frac{690}{63} \approx 10.952\bigg)\\ | ||
& = 10 | & = 10 | ||
\end{align} | \end{align} | ||
Line 229: | Line 229: | ||
===Damage=== | ===Damage=== | ||
Damage of the Hidden Power is calculated in a manner very similar to that of its type, using the following formula: | Damage 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} = \ | <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 "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. | ||
Line 245: | Line 245: | ||
<math> | <math> | ||
\begin{align} | \begin{align} | ||
HP_{power} &= \ | HP_{power} &= \left\lfloor \frac{(1 \cdot 1 + 2 \cdot 1 + 4 \cdot 1 + 8 \cdot 1 + 16 \cdot 1 + 32 \cdot 1) \times 40}{63}\right\rfloor + 30 \\ | ||
&= \ | &= \left\lfloor \frac{(1 + 2 + 4 + 8 + 16 + 32) \times 40}{63}\right\rfloor + 30 \\ | ||
&= \ | &= \left\lfloor \frac{63 \times 40}{63}\right\rfloor + 30 \\ | ||
&= \ | &= \left\lfloor \frac{2520}{63}\right\rfloor + 30 \\ | ||
&= \lfloor 40 \rfloor + 30 \\ | &= \lfloor 40 \rfloor + 30 \\ | ||
&= 40 + 30 \\ | &= 40 + 30 \\ |
edits