From 962852fc321192615b9e97eaeaee21d9e73ab536 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sun, 23 Oct 2016 11:47:05 -0700 Subject: enigma berry structs --- include/berry.h | 14 +++++++++++++- include/global.h | 4 +++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/berry.h b/include/berry.h index 9d75eada6..9800e74eb 100644 --- a/include/berry.h +++ b/include/berry.h @@ -20,10 +20,22 @@ struct Berry }; struct EnigmaBerry +{ + struct Berry berry; + u8 pic[(6 * 6) * TILE_SIZE_4BPP]; + u16 palette[16]; + u8 description1[45]; + u8 description2[45]; + u8 itemEffect[18]; + u8 holdEffect; + u32 checksum; +}; + +struct BattleEnigmaBerry { u8 name[7]; u8 holdEffect; - u8 unknown[18]; + u8 itemEffect[18]; u8 holdEffectParam; }; diff --git a/include/global.h b/include/global.h index 5b1705261..a489b93be 100644 --- a/include/global.h +++ b/include/global.h @@ -93,6 +93,7 @@ struct SecretBaseRecord #include "game_stat.h" #include "fieldmap.h" +#include "berry.h" struct WarpData { @@ -148,7 +149,8 @@ struct SaveBlock1 u32 gameStats[NUM_GAME_STATS]; u8 filler_1608[0x18F4]; struct SB1_2EFC_Struct sb1_2EFC_struct[5]; - u8 filler_2F9C[0x6F4]; + u8 filler_2F9C[0x1C4]; + struct EnigmaBerry enigmaBerry; struct RamScript ramScript; u8 filler_3A7C[0x10]; u8 unk3A8C[52]; //pokedex related -- cgit v1.2.3