Hidden Power (move)/Calculation: Difference between revisions

Undo revision 3876393 by Minibug (talk) The template is now updated
m (why change the example when the template is specifically designed with an example pokemon in mind?)
Tag: Undo
(Undo revision 3876393 by Minibug (talk) The template is now updated)
Tag: Undo
Line 15: Line 15:
==Generation II==
==Generation II==
===Type===
===Type===
Consider an example Pokémon, like Pikachu with this set of IVs:
Consider an example Pokémon, like Shellder with this set of IVs:


{{Hidden Power calculation/II|14|15|15|15|14}}
{{Hidden Power calculation/II|12|10|10|13|8}}


The type is determined by taking the two {{wp|least significant bit}}s of the Attack and Defense IVs, then {{wp|Concatenation|concatenating}} these two values in that order.
The type is determined by taking the two {{wp|least significant bit}}s of the Attack and Defense IVs, then {{wp|Concatenation|concatenating}} these two values in that order.
Line 82: Line 82:
<math>
<math>
\begin{align}
\begin{align}
HP_{type} & = 4 \times 15 \bmod 4 + 15 \bmod 4 \\
HP_{type} & = 4 \times 10 \bmod 4 + 10 \bmod 4 \\
& = 4 \times 3 + 3 \\
& = 4 \times 2 + 2 \\
& = 12 + 3 \\
& = 8 + 2 \\
& = 15
& = 10
\end{align}
\end{align}
</math>
</math>


Since this value is equal to 15, per the table above, this means that our Pikachu has a {{type|Dark}} {{m|Hidden Power}}.
Since this value is equal to 10, per the table above, this means that our Shellder has a {{type|Grass}} {{m|Hidden Power}}.


===Power===
===Power===
Line 107: Line 107:
In our example, we get:
In our example, we get:


{{Hidden Power calculation/II|14<br>''N/A''|15<br>''1''|15<br>''1''|15<br>''1''|14<br>''1''}}
{{Hidden Power calculation/II|12<br>''N/A''|10<br>''1''|10<br>''1''|13<br>''1''|8<br>''1''}}


<math>
<math>
\begin{align}
\begin{align}
HP_{power} & = \bigg\lfloor \frac{5 \times (1 + 2 \cdot 1 + 4 \cdot 1 + 8 \cdot 1) + 2}{2}\bigg\rfloor + 31 \\
HP_{power} & = \bigg\lfloor \frac{5 \times (1 + 2 \cdot 1 + 4 \cdot 1 + 8 \cdot 1) + 0}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{5 \times (1 + 2 + 4 + 8) + 2}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{5 \times (1 + 2 + 4 + 8)}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{5 \times 15 + 2}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{5 \times 15}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{75 + 2}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{75}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{77}{2}\bigg\rfloor + 31 \\
& = \lfloor 37.5 \rfloor + 31 \\
& = \lfloor 38.5 \rfloor + 31 \\
& = 37 + 31 \\
& = 38 + 31 \\
& = 68
& = 69
\end{align}
\end{align}
</math>
</math>


Which means that our Pikachu's Hidden Power's power is '''69'''.
Which means that our Shellder's Hidden Power's power is '''68'''.


{{Hidden Power calculation/II|14|15|15|15|14}}
{{Hidden Power calculation/II|12|10|10|13|8}}
{| class="roundy" style="width: 650px; border: 2px solid #{{Dark color light}}"  
{| class="roundy" style="width: 650px; border: 2px solid #{{Grass color light}}"  
|- style="text-align: center; color: #FFF"
|- style="text-align: center; color: #FFF"
| style="width: 33%; background: #{{Dark color}}; {{roundyleft|10px}}" | {{mcolor|Hidden Power|FFF}}:
| style="width: 33%; background: #{{Grass color}}; {{roundyleft|10px}}" | {{mcolor|Hidden Power|FFF}}:
| style="background: #{{Dark color}}" | Type:<br>'''{{tcolor|Dark|FFF}}'''
| style="background: #{{Grass color}}" | Type:<br>'''{{tcolor|Grass|FFF}}'''
| style="background: #{{Dark color}}; {{roundyright|10px}}" | Power:<br>'''69'''
| style="background: #{{Grass color}}; {{roundyright|10px}}" | Power:<br>'''68'''
|}
|}


Line 138: 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 213: 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 241: 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