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

m
Type
m (Type)
Line 16: Line 16:
| [[#Status ailments|0x04]] || [[Status ailment]] || 1 byte
| [[#Status ailments|0x04]] || [[Status ailment]] || 1 byte
|-
|-
| [[#Type|0x05]] || [[Elemental type|Type 1]] || 1 byte
| [[#Type|0x05]] || [[Type|Type 1]] || 1 byte
|-
|-
| [[#Type|0x06]] || Type 2 || 1 byte
| [[#Type|0x06]] || Type 2 || 1 byte
Line 106: Line 106:


===Type===
===Type===
The [[elemental type]] of the Pokémon. If the Pokémon has only one type, both values are the same. It seems redundant, as there is no way a Pokémon can change type in Generation I besides [[Evolution|evolving]], and through the use of Conversion.
The [[type]] of the Pokémon. If the Pokémon has only one type, both values are the same. It seems redundant, as there is no way a Pokémon can change type in Generation I besides [[Evolution|evolving]], and through the use of Conversion.


If a Pokémon has only one type, the byte for the second type will match that of the first one.
If a Pokémon has only one type, the byte for the second type will match that of the first one.