Hidden Power (move)/Calculation: Difference between revisions

m
Undo revision 2552878 by Sumwun (talk)Please don't make changes on a whim
mNo edit summary
m (Undo revision 2552878 by Sumwun (talk)Please don't make changes on a whim)
Line 15: Line 15:
==Generation II==
==Generation II==
===Type===
===Type===
Consider an example Pokémon, like Bulbasaur with this set of IVs:
Consider an example Pokémon, like Pikachu with this set of IVs:


{{Hidden Power calculation/II|14|15|15|15|14}}
{{Hidden Power calculation/II|14|15|15|15|14}}
Line 83: Line 83:
In our example, we get:
In our example, we get:


HPtype=4*('''15 mod 4''')+('''15 mod 4''')='''4*3'''+3='''12+3'''='''15''', which means that our Bulbasaur has a {{type|Dark}} {{m|Hidden Power}}.
HPtype=4*('''15 mod 4''')+('''15 mod 4''')='''4*3'''+3='''12+3'''='''15''', which means that our Pikachu has a {{type|Dark}} {{m|Hidden Power}}.


===Damage===
===Damage===
Line 103: Line 103:
{{Hidden Power calculation/II|14<br>''N/A''|15<br>''1''|15<br>''1''|15<br>''1''|14<br>''1''}}
{{Hidden Power calculation/II|14<br>''N/A''|15<br>''1''|15<br>''1''|15<br>''1''|14<br>''1''}}


HP Power = Floor[(5*(1 + '''2*1''' + '''4*1''' + '''8*1''') + 2)/2+31] = Floor[(5*('''1 + 2 + 4 + 8''') + 2)/2+31] = Floor[('''5*15''' + 2)/2+31] = Floor[('''75 + 2''')/2+31] = Floor['''77/2'''+31] = Floor['''36.5+31'''] = '''Floor[69.5]''' = '''69''', which means that our Bulbasaur's Hidden Power's power is '''69'''
HP Power = Floor[(5*(1 + '''2*1''' + '''4*1''' + '''8*1''') + 2)/2+31] = Floor[(5*('''1 + 2 + 4 + 8''') + 2)/2+31] = Floor[('''5*15''' + 2)/2+31] = Floor[('''75 + 2''')/2+31] = Floor['''77/2'''+31] = Floor['''36.5+31'''] = '''Floor[69.5]''' = '''69''', which means that our Pikachu's Hidden Power's power is '''69'''


{{Hidden Power calculation/II|14|15|15|15|14}}
{{Hidden Power calculation/II|14|15|15|15|14}}
Line 115: Line 115:
==Generation III to VI==
==Generation III to VI==
===Type===
===Type===
Consider an example Pokémon, like Bulbasaur 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|001Bulbasaur.png{{!}}100px}}
{{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 194: Line 194:
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''|001Bulbasaur.png{{!}}100px}}
{{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 Bulbasaur 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}}.


===Damage===
===Damage===
Line 215: Line 215:
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''|001Bulbasaur.png{{!}}100px}}
{{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 Bulbasaur'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|001Bulbasaur.png{{!}}100px}}{{-}}
{{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 230: Line 230:
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|001Bulbasaur.png{{!}}100px}}
{{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|001Bulbasaur.png{{!}}100px}}
{{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).