Battle Frontier data structures (Generation III): Difference between revisions

Added Wild Pokémon in the Battle Pyramid
(Added Wild Pokémon in the Battle Pyramid)
Line 80: Line 80:


The 510 EVs will be divided evenly among all stats whose bit are set.  (Since 510 is not divisible by 4, a Pokémon whose EVs are spread across 4 stats will only have 508 EVs.)
The 510 EVs will be divided evenly among all stats whose bit are set.  (Since 510 is not divisible by 4, a Pokémon whose EVs are spread across 4 stats will only have 508 EVs.)
== Wild Pokémon in the Battle Pyramid ==
Wild Pokémon in the [[Battle Pyramid]] are stored in a 12-byte structure, as follows:
{| class="wikitable"
! Size !! Type !! Description
|-
| 2 || uint16_t || Species ID - see [[List of Pokémon by index number (Generation III)]] for the list of values and their associated Pokémon.
|-
| 1 || uint8_t || Base level - increased or decreased randomly by up to 5 on each wild Pokémon encountered
|-
| 1 || uint8_t || Unknown - seems to always be 2
|-
| 8 || uint16_t[4] || Moves - see [[List of moves]] for the list of values and their associated move.
|}


== Mind Ratings ==
== Mind Ratings ==
396

edits