Type chart data structure (Generation III): Difference between revisions

no edit summary
(Created page with "The type chart in the Generation III Pokémon games are stored in a 336 byte data structure. The data structure consists of a number of 112 3-byte entries: {| ! Offs...")
 
No edit summary
Line 12: Line 12:


There are two notable entries of note: there are two special entries, which have the damage multipliers set to 0.  The first special entry has attacking and defending types 0xFE, and the second special entry has attacking and defending types 0xFF.  The latter must be the last three bytes in the data structure, while the former must appear exactly once somewhere in the data structure.  Regular type chart entries placed between the two special entries do not apply when {{m|Foresight}} and {{m|Odor Sleuth}} is in play (in normal gameplay, the entries in this sections of the {{t|Ghost}}-type immunities to {{t|Normal}}- and {{t|Fighting}}-type attacks).
There are two notable entries of note: there are two special entries, which have the damage multipliers set to 0.  The first special entry has attacking and defending types 0xFE, and the second special entry has attacking and defending types 0xFF.  The latter must be the last three bytes in the data structure, while the former must appear exactly once somewhere in the data structure.  Regular type chart entries placed between the two special entries do not apply when {{m|Foresight}} and {{m|Odor Sleuth}} is in play (in normal gameplay, the entries in this sections of the {{t|Ghost}}-type immunities to {{t|Normal}}- and {{t|Fighting}}-type attacks).
{{data structure}}<br>
{{Project Games notice|data structure}}
443

edits