Hidden Power (move)/Calculation: Difference between revisions

m
(Undo revision 2513849 by EV Love (talk)These kinds of trivia were deliberately moved to Hidden Power (move)#Trivia)
Line 116: Line 116:
Consider an example Pokémon, like Pikachu with this set of IVs:
Consider an example Pokémon, like Pikachu with this set of IVs:


{{Hidden Power calculation/IV|30|31|31|31|30|31}}
{{Hidden Power calculation/IV|30|31|31|31|30|31|025Pikachu.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 193: Line 193:
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''}}
{{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}}


HP Type = Floor[('''0 + 2 + 4 + 8 + 0 + 32''')*15/63] = Floor['''46*15/63'''] = '''Floor[10.952]''' = '''10''', which means that our Pikachu has a {{type|Grass}} {{m|Hidden Power}}.
HP Type = Floor[('''0 + 2 + 4 + 8 + 0 + 32''')*15/63] = Floor['''46*15/63'''] = '''Floor[10.952]''' = '''10''', which means that our Pikachu has a {{type|Grass}} {{m|Hidden Power}}.
Line 214: Line 214:
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''}}
{{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}}


HP Power = Floor[((1 + 2 + 4 + 8 + 16 + 32)*40/63)+30] = Floor [(63*40/63)+30] = Floor[70] = '''70''', which means that our Pikachu's Hidden Power's power is '''70'''
HP Power = Floor[((1 + 2 + 4 + 8 + 16 + 32)*40/63)+30] = Floor [(63*40/63)+30] = Floor[70] = '''70''', which means that our Pikachu's Hidden Power's power is '''70'''


{{Hidden Power calculation/IV|30|31|31|31|30|31}}{{-}}
{{Hidden Power calculation/IV|30|31|31|31|30|31|025Pikachu.png{{!}}100px}}{{-}}
{| class="roundy" style="width: 650px; border: 2px solid #{{Grass color light}}"  
{| class="roundy" style="width: 650px; border: 2px solid #{{Grass color light}}"  
|- style="text-align: center"
|- style="text-align: center"
Line 229: Line 229:
As there are 6 IVs, ranging from 0 to 31 (32 in total), the number of different possible Hidden Powers should be 32<sup>6</sup>=2<sup>30</sup>, which is more than one billion possibilities. But let us consider two Pokémon with one different IV:
As there are 6 IVs, ranging from 0 to 31 (32 in total), the number of different possible Hidden Powers should be 32<sup>6</sup>=2<sup>30</sup>, which is more than one billion possibilities. But let us consider two Pokémon with one different IV:


{{Hidden Power calculation/IV|'''30'''|31|31|31|30|31|Ani025MS.png}}
{{Hidden Power calculation/IV|'''30'''|31|31|31|30|31|025Pikachu-Rock Star.png{{!}}100px}}


and
and


{{Hidden Power calculation/IV|'''26'''|31|31|31|30|31|Ani025MS.png}}
{{Hidden Power calculation/IV|'''26'''|31|31|31|30|31|025Pikachu-Libre.png{{!}}100px}}


As we see, both 26 and 30 are divisible by 2 and give the remainder of 2 when divided by 4. So, in both cases the algorithms will interpret the IVs of those Pokémon in the same way, returning Grass-type Hidden Power with 70 power. It means that for the mentioned algorithms an IV of 30 is treated in the same way like IVs of 2,6,10,14,18,22 and 26 (8 in total).  
As we see, both 26 and 30 are divisible by 2 and give the remainder of 2 when divided by 4. So, in both cases the algorithms will interpret the IVs of those Pokémon in the same way, returning Grass-type Hidden Power with 70 power. It means that for the mentioned algorithms an IV of 30 is treated in the same way like IVs of 2,6,10,14,18,22 and 26 (8 in total).