Hidden Power (move)/Calculation: Difference between revisions

→‎Generation III onward: Changed example of Hidden Power type and power calculation from Generation III onward
(→‎Generation II: Changed example of Hidden Power calculation for Generation II)
Tags: Mobile edit Mobile web edit
(→‎Generation III onward: Changed example of Hidden Power type and power calculation from Generation III onward)
Tags: Mobile edit Mobile web edit
Line 137: Line 137:
==Generation III onward==
==Generation III onward==
===Type===
===Type===
Consider an example Pokémon, like Pikachu with this set of IVs:
Consider an Unown with this set of IVs:


{{Hidden Power calculation/IV|30|31|31|31|30|31|025Pikachu.png{{!}}100px}}
{{Hidden Power calculation/IV|25|2|12|17|5|8|201Unown.png{{!}}100px}}


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:
Line 212: Line 212:
In our example, we get:
In our example, we get:


{{Hidden Power calculation/IV|30<br>''0''|31<br>''1''|31<br>''1''|31<br>''1''|30<br>''0''|31<br>''1''|025Pikachu.png{{!}}100px}}
{{Hidden Power calculation/IV|25<br>''1''|2<br>''0''|12<br>''0''|17<br>''1''|5<br>''1''|8<br>''0''|201Unown.png{{!}}100px}}


<math>
<math>
\begin{align}
\begin{align}
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 \\
HP_{type} & = \left\lfloor \frac{(1 \cdot 1 + 2 \cdot 0 + 4 \cdot 0 + 8 \cdot 1 + 16 \cdot 1 + 32 \cdot 0) \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{(0 + 2 + 4 + 8 + 0 + 32) \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{(1 + 0 + 0 + 8 + 16 + 0) \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{46 \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{25 \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{690}{63}\right\rfloor & \bigg(\frac{690}{63} \approx 10.952\bigg)\\
& = \left\lfloor \frac{375}{63}\right\rfloor & \bigg(\frac{690}{63} \approx 5.952\bigg)\\
& = 10
& = 5
\end{align}
\end{align}
</math>
</math>


Which means that our Pikachu has a {{type|Grass}} {{m|Hidden Power}}.
Which means that our Unown has a {{type|Bug}} {{m|Hidden Power}}.


===Damage===
===Damage===
Line 240: Line 240:
In our example, we get:
In our example, we get:


{{Hidden Power calculation/IV|30<br>''1''|31<br>''1''|31<br>''1''|31<br>''1''|30<br>''1''|31<br>''1''|025Pikachu.png{{!}}100px}}
{{Hidden Power calculation/IV|25<br>''0''|2<br>''1''|12<br>''0''|17<br>''0''|5<br>''0''|8<br>''0''|201Unown.png{{!}}100px}}


<math>
<math>
\begin{align}
\begin{align}
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 \\
HP_{power} &= \left\lfloor \frac{(1 \cdot 0 + 2 \cdot 1 + 4 \cdot 0 + 8 \cdot 0 + 16 \cdot 0 + 32 \cdot 0) \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{(1 + 2 + 4 + 8 + 16 + 32) \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{(0 + 2 + 0 + 0 + 0 + 0) \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{63 \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{2 \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{2520}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{80}{63}\right\rfloor + 30 \\
&= \lfloor 40 \rfloor + 30 \\
&= \lfloor 1 \rfloor + 30 \\
&= 40 + 30 \\
&= 1 + 30 \\
&= 70 \\
&= 31 \\
\end{align}
\end{align}
</math>
</math>


Which means that our Pikachu's Hidden Power's power is '''70'''
Which means that our Unown's Hidden Power's power is '''31'''.


{{Hidden Power calculation/IV|30|31|31|31|30|31|025Pikachu.png{{!}}100px}}{{-}}
{{Hidden Power calculation/IV|25|2|12|17|5|8|201Unown.png{{!}}100px}}{{-}}
{| class="roundy" style="width: 650px; border: 2px solid #{{Grass color light}}"  
{| class="roundy" style="width: 650px; border: 2px solid #{{Bug color light}}"  
|- style="text-align: center"
|- style="text-align: center"
| style="width: 33%; background: #{{Grass color}}; {{roundyleft|10px}}" | {{mcolor|Hidden Power|000}}:
| style="width: 33%; background: #{{Bug color}}; {{roundyleft|10px}}" | {{mcolor|Hidden Power|000}}:
| style="background: #{{Grass color}}" | Type:<br>'''{{tcolor|Grass|000}}'''
| style="background: #{{Bug color}}" | Type:<br>'''{{tcolor|Bug|000}}'''
| style="background: #{{Grass color}}; {{roundyright|10px}}" | Power:<br>'''70'''
| style="background: #{{Bug color}}; {{roundyright|10px}}" | Power:<br>'''31'''
|}
|}


12

edits