Hidden Power (move)/Calculation: Difference between revisions

Adjust table code
(→‎Number of possible Hidden Powers: Changed example Pokémon used to match the type and damage sections)
(Adjust table code)
Line 17: Line 17:
Consider an example Pokémon, like Shellder with this set of IVs:
Consider an example Pokémon, like Shellder with this set of IVs:


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


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 25: Line 25:
The resulting number will correspond to a type as marked below.
The resulting number will correspond to a type as marked below.


{| class="roundy" style="text-align: center; color: #FFF; background: #{{platinum color}}; border: 3px solid #{{platinum color light}}; {{roundy|10px}}"
{| class="roundy" style="text-align: center; color: #FFF; background: #{{bulba color}}; border: 3px solid #{{bulba color light}};"
! style="color: #000; background: #{{platinum color light}}; {{roundytl|5px}}" | Number
! style="color: #000; background: #{{bulba color light}}; {{roundytl|5px}}" | Number
! style="color: #000; background: #{{platinum color light}}; {{roundytr|5px}}" | Type
! style="color: #000; background: #{{bulba color light}}; {{roundytr|5px}}" | Type
|- style="background: #{{Fighting color}}"
|- style="background: #{{Fighting color}}"
| 0
| 0
Line 107: Line 107:
In our example, we get:
In our example, we get:


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


<math>
<math>
Line 123: Line 123:
Which means that our Shellder's Hidden Power's power is '''68'''.
Which means that our Shellder's Hidden Power's power is '''68'''.


{{Hidden Power calculation/II|12|10|10|13|8}}
{{Hidden Power calculation/II|12|10|10|13|8|090}}
{| 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; color: #FFF"
|- style="text-align: center; color: #FFF"
Line 139: Line 139:
Consider an Unown with this set of IVs:
Consider an Unown with this set of IVs:


{{Hidden Power calculation/IV|25|2|12|17|5|8|201Unown.png{{!}}100px}}
{{Hidden Power calculation/IV|25|2|12|17|5|8|0201MS.png{{!}}75px}}


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 157: Line 157:
The resulting number will correspond to a type as marked below.
The resulting number will correspond to a type as marked below.


{| class="roundy" style="text-align: center; color: #FFF; background: #{{platinum color}}; border: 3px solid #{{platinum color light}}; {{roundy|10px}}"
{| class="roundy" style="text-align: center; color: #FFF; background: #{{bulba color}}; border: 3px solid #{{bulba color light}}; {{roundy|10px}}"
! style="color: #000; background: #{{platinum color light}}; {{roundytl|5px}}" | Number
! style="color: #000; background: #{{bulba color light}}; {{roundytl|5px}}" | Number
! style="color: #000; background: #{{platinum color light}}; {{roundytr|5px}}" | Type
! style="color: #000; background: #{{bulba color light}}; {{roundytr|5px}}" | Type
|- style="background: #{{Fighting color}}"
|- style="background: #{{Fighting color}}"
| 0
| 0
Line 212: Line 212:
In our example, we get:
In our example, we get:


{{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}}
{{Hidden Power calculation/IV|25<br>''1''|2<br>''0''|12<br>''0''|17<br>''1''|5<br>''1''|8<br>''0''|0201MS.png{{!}}75px}}


<math>
<math>
Line 240: Line 240:
In our example, we get:
In our example, we get:


{{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}}
{{Hidden Power calculation/IV|25<br>''0''|2<br>''1''|12<br>''0''|17<br>''0''|5<br>''0''|8<br>''0''|0201MS.png{{!}}75px}}


<math>
<math>
Line 256: Line 256:
Which means that our Unown's Hidden Power's power is '''31'''.
Which means that our Unown's Hidden Power's power is '''31'''.


{{Hidden Power calculation/IV|25|2|12|17|5|8|201Unown.png{{!}}100px}}{{-}}
{{Hidden Power calculation/IV|25|2|12|17|5|8|0201MS.png{{!}}75px}}<br>
{| class="roundy" style="width: 650px; border: 2px solid #{{Bug color light}}"  
{| class="roundy" style="width: 650px; border: 2px solid #{{Bug color light}}"  
|- style="text-align: center"
|- style="text-align: center"
Line 267: Line 267:
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 Unown 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 Unown with one different IV:


{{Hidden Power calculation/IV|'''30'''|31|31|31|30|31|201Unown.png{{!}}100px}}
{{Hidden Power calculation/IV|'''30'''|31|31|31|30|31|0201MS.png{{!}}75px}}


and
and


{{Hidden Power calculation/IV|'''26'''|31|31|31|30|31|201Unown.png{{!}}100px}}
{{Hidden Power calculation/IV|'''26'''|31|31|31|30|31|0201MS.png{{!}}75px}}


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).  
Line 301: Line 301:


===Percentage distribution of different variations of Hidden Power===
===Percentage distribution of different variations of Hidden Power===
Due to the fact that both Hidden Power's type and its power are the products of rounding down, chances of getting a Pokémon with certain Hidden Power are not equal, as one might have thought, and are different for every Hidden Power's type and damage value.  
Due to the fact that both Hidden Power's type and its power are the products of rounding down, chances of getting a Pokémon with certain Hidden Power are not equal, and are different for every Hidden Power's type and damage value.  


As it was stated before, the number of theoretically different Hidden Powers is 4096, which is the result of multiplying theoretical values of possible types (64) and powers (also 64). It means that every of 64 "types" comes into 64 "powers". After rounding down, however, the number of 64 "types" is reduced to 16 and the number of 64 "powers" to 41.   
As was stated before, the number of theoretically different Hidden Powers is 4096, which is the result of multiplying theoretical values of possible types (64) and powers (also 64). It means that every of 64 "types" comes into 64 "powers". After rounding down, however, the number of 64 "types" is reduced to 16 and the number of 64 "powers" to 41.   


{| style="margin: auto"
<div style="display: flex; justify-content: center; gap: 5px">
|- style="vertical-align: top"
<div style="display: inline-block; margin-right: 5px">
|
{| class="roundy" style="flex: 0; text-align: center; color: #FFF; background: #{{bulba color}}; border: 3px solid #{{bulba color light}};"
{| class="roundy" style="text-align: center; color: #FFF; background: #{{platinum color}}; border: 3px solid #{{platinum color light}}; {{roundy|10px}}"
|+ style="color: #000" | '''Percentage distribution of Hidden Power's type'''
|+ style="color: #000" | '''Percentage distribution of Hidden Power's type'''
! style="color: #000; background: #{{platinum color light}}; {{roundytl|5px}}" | Number
|-
! style="color: #000; background: #{{platinum color light}}" | Type
! style="color: #000; background: #{{bulba color light}}; {{roundytl|5px}}" | Number
! style="color: #000; background: #{{platinum color light}}" | Qty
! style="color: #000; background: #{{bulba color light}}" | Type
! style="color: #000; background: #{{platinum color light}}; {{roundytr|5px}}" | %
! style="color: #000; background: #{{bulba color light}}" | Qty
! style="color: #000; background: #{{bulba color light}}; {{roundytr|5px}}" | %
|- style="background: #{{Fighting color}}"
|- style="background: #{{Fighting color}}"
| 0
| 0
Line 395: Line 395:
| style="background: #{{Dark color}}; {{roundybr|5px}}" | 1.5625%
| style="background: #{{Dark color}}; {{roundybr|5px}}" | 1.5625%
|}
|}
| style="width: 40px" |
</div>
|
 
{| class="roundy" style="background: #{{platinum color}}; border: 3px solid #{{platinum color light}}; {{roundy|10px}}"
<div style="display: inline-block">
{| class="roundtable" style="flex: 0; background: #{{bulba color}}; border: 3px solid #{{bulba color light}};"
|+ '''Percentage distribution of Hidden Power's powers (prior to Generation VI)'''
|+ '''Percentage distribution of Hidden Power's powers (prior to Generation VI)'''
! style="background: #{{platinum color light}}; {{roundytl|5px}}" | Powers
! style="background: #{{platinum color light}}" | Qty
! style="background: #{{platinum color light}}; {{roundytr|5px}}" | %
|- style="background: #FFF"
| 30, 31, 33, 35, 36, 38,<br>40, 42, 43, 45, 47, 49,<br>50, 52, 54, 56, 57, 59,<br>61, 63, 64, 66, 68
| 128 each (23×)
| 3.125% each (23×)
|-
|-
| style="background: #FFF; {{roundybl|5px}}" | 32, 34, 37, 39, 41, 44,<br>46, 48, 51, 53, 55, 58,<br>60, 62, 65, 67, 69, 70  
! style="background: #{{bulba color light}}; width: 10em" | Powers
| style="background: #FFF" | 64 each (18×)
! style="background: #{{bulba color light}}" | Qty
| style="background: #FFF; {{roundybr|5px}}" | 1.5625% each (18×)
! style="background: #{{bulba color light}}" | %
|}
|-
| 30, 31, 33, 35, 36, 38, 40, 42, 43, 45, 47, 49, 50, 52, 54, 56, 57, 59, 61, 63, 64, 66, 68
| 128 each<br>(×23 distinct values)
| 3.125% each<br>(×23 distinct values)
|-
| 32, 34, 37, 39, 41, 44, 46, 48, 51, 53, 55, 58, 60, 62, 65, 67, 69, 70  
| 64 each<br>(×18 distinct values)
| 1.5625% each<br>(×18 distinct values)
|}
|}
</div>
</div>


==External links==
==External links==