summaryrefslogtreecommitdiff
path: root/include/global.berry.h
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-10-23 17:39:15 -0700
committerGitHub <noreply@github.com>2017-10-23 17:39:15 -0700
commitfe8629615bb6e847ab632797ff1291c02e70a35c (patch)
tree20b7bbb74a99a7b96d0f33d3ef79641bffd21374 /include/global.berry.h
parent7529e63a5aafad47543b1651474ec6b143cb958a (diff)
parentc5241d9e80582b746d050ac4424393ccc1636d4b (diff)
Merge pull request #449 from ProjectRevoTPP/clean_berry
document berry.c.
Diffstat (limited to 'include/global.berry.h')
-rw-r--r--include/global.berry.h71
1 files changed, 38 insertions, 33 deletions
diff --git a/include/global.berry.h b/include/global.berry.h
index 096d8b1d8..21a0dd500 100644
--- a/include/global.berry.h
+++ b/include/global.berry.h
@@ -3,33 +3,33 @@
struct Berry
{
- /*0x00*/const u8 name[7];
- /*0x07*/u8 firmness;
- /*0x08*/u16 size;
- /*0x0A*/u8 maxYield;
- /*0x0B*/u8 minYield;
- /*0x0C*/const u8 *description1;
- /*0x10*/const u8 *description2;
- /*0x14*/u8 stageDuration;
- /*0x15*/u8 spicy;
- /*0x16*/u8 dry;
- /*0x17*/u8 sweet;
- /*0x18*/u8 bitter;
- /*0x19*/u8 sour;
- /*0x1A*/u8 smoothness;
+ /*0x00*/ const u8 name[7];
+ /*0x07*/ u8 firmness;
+ /*0x08*/ u16 size;
+ /*0x0A*/ u8 maxYield;
+ /*0x0B*/ u8 minYield;
+ /*0x0C*/ const u8 *description1;
+ /*0x10*/ const u8 *description2;
+ /*0x14*/ u8 stageDuration;
+ /*0x15*/ u8 spicy;
+ /*0x16*/ u8 dry;
+ /*0x17*/ u8 sweet;
+ /*0x18*/ u8 bitter;
+ /*0x19*/ u8 sour;
+ /*0x1A*/ u8 smoothness;
};
struct EnigmaBerry
{
- /*0x000*/struct Berry berry;
- /*0x01B*/u8 pic[(6 * 6) * TILE_SIZE_4BPP];
- /*0x49C*/u16 palette[16];
- /*0x4BC*/u8 description1[45];
- /*0x4E9*/u8 description2[45];
- /*0x516*/u8 itemEffect[18];
- /*0x528*/u8 holdEffect;
- /*0x529*/u8 holdEffectParam;
- /*0x52C*/u32 checksum;
+ /*0x000*/ struct Berry berry;
+ /*0x01B*/ u8 pic[(6 * 6) * TILE_SIZE_4BPP];
+ /*0x49C*/ u16 palette[16];
+ /*0x4BC*/ u8 description1[45];
+ /*0x4E9*/ u8 description2[45];
+ /*0x516*/ u8 itemEffect[18];
+ /*0x528*/ u8 holdEffect;
+ /*0x529*/ u8 holdEffectParam;
+ /*0x52C*/ u32 checksum;
};
struct BattleEnigmaBerry
@@ -42,16 +42,21 @@ struct BattleEnigmaBerry
struct BerryTree
{
- u8 berry;
- u8 stage:7;
- u8 growthSparkle:1;
- u16 minutesUntilNextStage;
- u8 berryYield;
- u8 regrowthCount:4;
- u8 watered1:1;
- u8 watered2:1;
- u8 watered3:1;
- u8 watered4:1;
+ /*0x00*/ u8 berry;
+ /*0x01*/ u8 stage:7;
+ /*
+ A berry sparkle is a state that a berry tree
+ can be in after growing within the player's
+ viewport.
+ */
+ /*0x01*/ bool8 growthSparkle:1;
+ /*0x02*/ u16 minutesUntilNextStage;
+ /*0x04*/ u8 berryYield;
+ /*0x05*/ u8 regrowthCount:4;
+ /*0x05*/ u8 watered1:1;
+ /*0x05*/ u8 watered2:1;
+ /*0x05*/ u8 watered3:1;
+ /*0x05*/ u8 watered4:1;
};
#endif // GUARD_GLOBAL_BERRY_H