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

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (→‎Block Shuffling: I have no idea what you're talking about.)
m (→‎Block Shuffling: removing reword template. It is bitwise. It wouldn't make sense if it was boolean.)
Line 13: Line 13:


== Block Shuffling ==
== Block Shuffling ==
{{rewording|section|reason=is it boolean or bitwise? If bitwise, use && instead}}


The 128 bytes of Pokémon data are split into four 32-byte blocks for shuffling.  The blocks are shuffled according to a shift value derived from the [[personality value]].  Given the personality value ''pv'', the expression yielding the shift value is:
The 128 bytes of Pokémon data are split into four 32-byte blocks for shuffling.  The blocks are shuffled according to a shift value derived from the [[personality value]].  Given the personality value ''pv'', the expression yielding the shift value is: