Garden fruits
This page lists all of the offsets related to the fruits in a chao garden.
Fruit type
Offset (hex) | 0x0 |
---|---|
Offset (decimal) | 0 |
Data type | Short (SADXFruit enum or SA2BFruit enum) |
A value representing the specific type of the fruit. See the SADXFruit enum or SA2BFruit enum (depending on the game) for more information.
Note that when this fruit slot is empty, the second byte will have a value of 0xFF.
Chao garden
Offset (hex) | 0x2 |
---|---|
Offset (decimal) | 2 |
Data type | Short (SADXChaoGarden enum or SA2BChaoGarden enum) |
A value representing the chao garden that the fruit currently resides in. See the SADXChaoGarden enum or SA2BChaoGarden enum (depending on the game) for more information.
Note that when this fruit slot is empty, the second byte will have a value of 0xFF.
Fruit size
Offset (hex) | 0x4 |
---|---|
Offset (decimal) | 4 |
Data type | Short |
A value representing the size of the fruit. The default value is 4 for an uneaten fruit, and it cannot increase beyond this without hacking. This value naturally decreases as chao partially consume the fruit. Setting this to higher values than 4 results in unusually large fruit.
Fruit age
Offset (hex) | 0x6 |
---|---|
Offset (decimal) | 6 |
Data type | Byte |
A value representing the age of the fruit. The default value is 0 for a brand new fruit. Every time the player leaves the chao garden, this value increases by 1. When this value increases from 15 to 16, the fruit expires and disappears from the garden.