Pokémon species data structure (Generation II): Difference between revisions

Added information on gender threshold value.
(→‎Specs: Table)
(Added information on gender threshold value.)
Line 87: Line 87:


Note that, unlike subsequent generation of games, if both item slots are set to the same item, the chance is ''not'' 100%.
Note that, unlike subsequent generation of games, if both item slots are set to the same item, the chance is ''not'' 100%.
=== Gender Ratio ===
The gender ratio is expressed as a 1-byte threshold for the Pokémon to be male. The possible values are:
{| class="roundy" style="text-align:center; background: #C0C0FF; border: 3px solid blue; margin-bottom: 10px"
! colspan="2" | Gender threshold
! colspan="2" | Gender ratio
|-
! Binary
! Decimal
! Male
! Female
|- style="background:#fff"
| <code>11111111</code>
| 255
| colspan="2" | Genderless
|- style="background:#fff"
| <code>11111110</code>
| 254
| 0.0%
| 100.0%
|- style="background:#fff"
| <code>10111111</code>
| 191
| 25.0%
| 75.0%
|- style="background:#fff"
| <code>01111111</code>
| 127
| 50.0%
| 50.0%
|- style="background:#fff"
| <code>00111111</code>
| 63
| 75.0%
| 25.0%
|- style="background:#fff"
| <code>00011111</code>
| 31
| 87.5%
| 12.5%
|- style="background:#fff"
| <code>00000000</code>
| 0
| 100.0%
| 0.0%
|}
A Pokémon's gender is calculated based on this threshold value and the Pokémon's Attack IV, following [[Individual values#Gender|a certain set of rules]].


=== Frontsprite dimensions ===
=== Frontsprite dimensions ===
78

edits