Individual values: Difference between revisions

No edit summary
Line 81: Line 81:
The IV system was completely overhauled in [[Generation III]], with IVs now ranging from 0-31 (binary: <code>00000</code>-<code>11111</code>). IVs are now stored individually for all six stats, instead of four. Shiny status and gender are no longer determined by IVs, and are instead calculated from a randomly-generated 32-bit integer called a [[personality value]]. {{m|Hidden Power}} remains IV-based.
The IV system was completely overhauled in [[Generation III]], with IVs now ranging from 0-31 (binary: <code>00000</code>-<code>11111</code>). IVs are now stored individually for all six stats, instead of four. Shiny status and gender are no longer determined by IVs, and are instead calculated from a randomly-generated 32-bit integer called a [[personality value]]. {{m|Hidden Power}} remains IV-based.


The IV data for each Pokémon is stored as a packed bitfield, taking up one doubleword (32 bits) including one bit each to set if the Pokémon is an {{pkmn|egg}} or has its ability disabled.
The IV data for each Pokémon is stored as a packed bitfield, taking up one doubleword (32 bits) including one bit to set if the Pokémon is an {{pkmn|egg}}, and one bit which dictates which of a Pokémon's abilities is active.
 
If the Ability bit is clear, the Pokémon will have it's first Ability. If the bit is set, the Pokémon will have it's second Ability. When the IVs of a Pokémon are generated, if the Pokémon only actually has one Ability, this bit will be forced clear (forced to 0). In this case, artificially setting the bit will result in the Pokémon having '''no ability'''.


{| border=1 align="left" style="background: #fff; border:1px solid #000; border-collapse:collapse;"
{| border=1 align="left" style="background: #fff; border:1px solid #000; border-collapse:collapse;"
Line 88: Line 90:
|-
|-
| rowspan="2" | {{wp|Most significant bit|MSB}}
| rowspan="2" | {{wp|Most significant bit|MSB}}
! DisableAbility
! Ability
! IsEgg
! IsEgg
! style="background:#{{sp def color}}" | Sp. Def
! style="background:#{{sp def color}}" | Sp. Def
14

edits