code:
#include "constants/easy_chat.h"
#include "constants/event_objects.h"
#include "constants/items.h"
#include "constants/moves.h"

static const u16 sContestLadyMonGfxId[] =
{
    OBJ_EVENT_GFX_ZIGZAGOON_1,
    OBJ_EVENT_GFX_SKITTY,
    OBJ_EVENT_GFX_POOCHYENA,
    OBJ_EVENT_GFX_KECLEON,
    OBJ_EVENT_GFX_PIKACHU
};

static const u16 sLilycoveLadyGfxId[] =
{
    OBJ_EVENT_GFX_WOMAN_4,
    OBJ_EVENT_GFX_WOMAN_2,
    OBJ_EVENT_GFX_GIRL_2
};

// Quiz Lady data
static const u16 sQuizLadyQuestion1[] =
{
    EC_WORD_WHICH,
    EC_WORD_STORES,
    EC_WORD_INFORMATION,
    EC_WORD_ON,
    EC_WORD_POKEMON,
    EC_WORD_QUES,
    EC_WORD_CAMERA,
    EC_WORD_POKEDEX,
    EC_WORD_POKENAV
};

static const u16 sQuizLadyQuestion2[] =
{
    EC_WORD_WHICH,
    EC_WORD_ISN_T,
    EC_WORD_A,
    EC_WORD_GAME,
    EC_WORD_VERSION,
    EC_WORD_QUES,
    EC_WORD_RUBY,
    EC_WORD_SAPPHIRE,
    EC_WORD_DARK
};

static const u16 sQuizLadyQuestion3[] =
{
    EC_WORD_HOW,
    EC_WORD_DO,
    EC_WORD_POKEMON,
    EC_WORD_EVOLVE,
    EC_WORD_QUES,
    0xFFFF,
    EC_WORD_LEVEL,
    EC_WORD_INSOMNIA,
    EC_WORD_CUTE_CHARM
};

static const u16 sQuizLadyQuestion4[] =
{
    EC_WORD_WHICH,
    EC_WORD_IS,
    EC_WORD_THE,
    EC_WORD_PRETTY,
    EC_WORD_ITEM,
    EC_WORD_QUES,
    EC_WORD_COLD,
    EC_WORD_FLOWERS,
    EC_WORD_MACHINE
};

static const u16 sQuizLadyQuestion5[] =
{
    EC_WORD_WHICH,
    EC_WORD_ITEM,
    EC_WORD_DO,
    EC_WORD_YOU,
    EC_WORD_BREAK,
    EC_WORD_QUES,
    EC_WORD_EGG,
    EC_WORD_MAIL,
    EC_WORD_PHONE
};

static const u16 sQuizLadyQuestion6[] =
{
    EC_WORD_WHICH,
    EC_WORD_WILL,
    EC_WORD_STOP,
    EC_MOVE2(CONFUSION),
    EC_WORD_QUES,
    0xFFFF,
    EC_WORD_ILLUMINATE,
    EC_WORD_OWN_TEMPO,
    EC_WORD_SWIFT_SWIM
};

static const u16 sQuizLadyQuestion7[] =
{
    EC_WORD_WHICH,
    EC_WORD_OF,
    EC_WORD_THESE,
    EC_WORD_IS,
    EC_WORD_MUSIC,
    EC_WORD_QUES,
    EC_WORD_FLYING,
    EC_WORD_STEEL,
    EC_WORD_ROCK
};

static const u16 sQuizLadyQuestion8[] =
{
    EC_WORD_WHICH,
    EC_WORD_WILL,
    EC_MOVE2(BLOCK),
    EC_WORD_ESCAPE,
    EC_WORD_QUES,
    0xFFFF,
    EC_WORD_RUN_AWAY,
    EC_WORD_SHADOW_TAG,
    EC_WORD_WONDER_GUARD
};

static const u16 sQuizLadyQuestion9[] =
{
    EC_WORD_WHICH,
    EC_WORD_WILL,
    EC_WORD_STOP,
    EC_WORD_POISON,
    EC_WORD_QUES,
    0xFFFF,
    EC_WORD_GUTS,
    EC_WORD_IMMUNITY,
    EC_WORD_SHED_SKIN
};

static const u16 sQuizLadyQuestion10[] =
{
    EC_WORD_WHICH,
    EC_WORD_GOES,
    EC_WORD_WITH,
    EC_WORD_CENTER,
    EC_WORD_QUES,
    0xFFFF,
    EC_WORD_POKEDEX,
    EC_WORD_POKEMON,
    EC_WORD_POKENAV
};

static const u16 sQuizLadyQuestion11[] =
{
    EC_WORD_WHICH,
    EC_WORD_STORES,
    EC_WORD_YOUR,
    EC_WORD_POKEMON,
    EC_WORD_QUES,
    0xFFFF,
    EC_WORD_PC,
    EC_WORD_DEPT_STORE,
    EC_WORD_TELEVISION
};

static const u16 sQuizLadyQuestion12[] =
{
    EC_WORD_WHICH,
    EC_WORD_MACHINE,
    EC_WORD_GIVES,
    EC_WORD_YOU,
    EC_WORD_INFORMATION,
    EC_WORD_QUES,
    EC_WORD_BIKE,
    EC_WORD_LOCOMOTIVE,
    EC_WORD_TELEVISION
};

static const u16 sQuizLadyQuestion13[] =
{
    EC_WORD_A,
    EC_WORD_POKEMON,
    EC_WORD_WAS,
    EC_WORD_ONCE,
    EC_WORD_THIS,
    EC_WORD_QUES,
    EC_WORD_PHONE,
    EC_WORD_PLUSH_DOLL,
    EC_WORD_LETTER
};

static const u16 sQuizLadyQuestion14[] =
{
    EC_WORD_STEEL,
    EC_WORD_IS,
    EC_WORD_STRONG,
    EC_WORD_VERSUS,
    EC_WORD_WHICH,
    EC_WORD_QUES,
    EC_WORD_ICE,
    EC_WORD_GROUND,
    0xFFFF
};

static const u16 sQuizLadyQuestion15[] =
{
    EC_WORD_DARK,
    EC_WORD_IS,
    EC_WORD_WEAK,
    EC_WORD_VERSUS,
    EC_WORD_WHICH,
    EC_WORD_QUES,
    EC_WORD_PSYCHIC,
    EC_WORD_FIGHTING,
    0xFFFF
};

static const u16 sQuizLadyQuestion16[] =
{
    EC_WORD_GHOST,
    EC_WORD_IS,
    EC_WORD_WEAK,
    EC_WORD_VERSUS,
    EC_WORD_WHICH,
    EC_WORD_QUES,
    EC_WORD_NORMAL,
    EC_WORD_DARK,
    0xFFFF
};

static const u16 *const sQuizLadyQuizQuestions[] =
{
    sQuizLadyQuestion1,
    sQuizLadyQuestion2,
    sQuizLadyQuestion3,
    sQuizLadyQuestion4,
    sQuizLadyQuestion5,
    sQuizLadyQuestion6,
    sQuizLadyQuestion7,
    sQuizLadyQuestion8,
    sQuizLadyQuestion9,
    sQuizLadyQuestion10,
    sQuizLadyQuestion11,
    sQuizLadyQuestion12,
    sQuizLadyQuestion13,
    sQuizLadyQuestion14,
    sQuizLadyQuestion15,
    sQuizLadyQuestion16
};

static const u16 sQuizLadyQuizAnswers[] =
{
    EC_WORD_POKEDEX,
    EC_WORD_DARK,
    EC_WORD_LEVEL,
    EC_WORD_FLOWERS,
    EC_WORD_EGG,
    EC_WORD_OWN_TEMPO,
    EC_WORD_ROCK,
    EC_WORD_SHADOW_TAG,
    EC_WORD_IMMUNITY,
    EC_WORD_POKEMON,
    EC_WORD_PC,
    EC_WORD_TELEVISION,
    EC_WORD_PLUSH_DOLL,
    EC_WORD_ICE,
    EC_WORD_FIGHTING,
    EC_WORD_DARK
};

static const u16 sQuizLadyPrizes[] =
{
    ITEM_GLITTER_MAIL,
    ITEM_BEAD_MAIL,
    ITEM_TROPIC_MAIL,
    ITEM_MAX_ETHER,
    ITEM_MAX_ETHER,
    ITEM_MAX_ETHER,
    ITEM_WATMEL_BERRY,
    ITEM_BELUE_BERRY,
    ITEM_DURIN_BERRY,
    ITEM_LUXURY_BALL,
    ITEM_TM15_HYPER_BEAM,
    ITEM_BIG_PEARL,
    ITEM_STAR_PIECE,
    ITEM_RARE_CANDY,
    ITEM_RARE_CANDY,
    ITEM_PREMIER_BALL
};

// Favor Lady data
static const u8 *const sFavorLadyRequests[] =
{
    gText_FavorLady_Slippery,
    gText_FavorLady_Roundish,
    gText_FavorLady_Whamish,
    gText_FavorLady_Shiny,
    gText_FavorLady_Sticky,
    gText_FavorLady_Pointy
};

static const u16 sFavorLadyAcceptedItems_Slippery[] =
{
    ITEM_REPEL,
    ITEM_SUPER_REPEL,
    ITEM_MAX_REPEL,
    ITEM_ANTIDOTE,
    ITEM_PARALYZE_HEAL,
    ITEM_BURN_HEAL,
    ITEM_BELUE_BERRY,
    ITEM_AWAKENING,
    ITEM_ICE_HEAL,
    ITEM_REVIVE,
    ITEM_MAX_REVIVE,
    ITEM_ENERGY_POWDER,
    ITEM_NONE
};

static const u16 sFavorLadyAcceptedItems_Roundish[] =
{
    ITEM_FLUFFY_TAIL,
    ITEM_PEARL,
    ITEM_BIG_PEARL,
    ITEM_HARD_STONE,
    ITEM_SMOKE_BALL,
    ITEM_SHOAL_SHELL,
    ITEM_TINY_MUSHROOM,
    ITEM_BIG_MUSHROOM,
    ITEM_PECHA_BERRY,
    ITEM_ASPEAR_BERRY,
    ITEM_ORAN_BERRY,
    ITEM_GREPA_BERRY,
    ITEM_MAGOST_BERRY,
    ITEM_WATMEL_BERRY,
    ITEM_POKE_BALL,
    ITEM_ULTRA_BALL,
    ITEM_NONE
};

static const u16 sFavorLadyAcceptedItems_Whamish[] =
{
    ITEM_REVIVAL_HERB,
    ITEM_POTION,
    ITEM_FRESH_WATER,
    ITEM_SODA_POP,
    ITEM_LEMONADE,
    ITEM_HARD_STONE,
    ITEM_LIGHT_BALL,
    ITEM_LAVA_COOKIE,
    ITEM_CHESTO_BERRY,
    ITEM_NANAB_BERRY,
    ITEM_WEPEAR_BERRY,
    ITEM_KELPSY_BERRY,
    ITEM_NOMEL_BERRY,
    ITEM_DURIN_BERRY,
    ITEM_NONE
};

static const u16 sFavorLadyAcceptedItems_Shiny[] =
{
    ITEM_HEAL_POWDER,
    ITEM_X_SPEED,
    ITEM_X_ATTACK,
    ITEM_X_DEFEND,
    ITEM_BLUE_FLUTE,
    ITEM_YELLOW_FLUTE,
    ITEM_RED_FLUTE,
    ITEM_BLACK_FLUTE,
    ITEM_WHITE_FLUTE,
    ITEM_NUGGET,
    ITEM_SUN_STONE,
    ITEM_STARDUST,
    ITEM_STAR_PIECE,
    ITEM_PEARL,
    ITEM_BIG_PEARL,
    ITEM_TWISTED_SPOON,
    ITEM_SILVER_POWDER,
    ITEM_BRIGHT_POWDER,
    ITEM_LUXURY_BALL,
    ITEM_PREMIER_BALL,
    ITEM_NONE
};

static const u16 sFavorLadyAcceptedItems_Sticky[] =
{
    ITEM_ENERGY_ROOT,
    ITEM_FULL_RESTORE,
    ITEM_MAX_POTION,
    ITEM_DIRE_HIT,
    ITEM_X_ACCURACY,
    ITEM_GUARD_SPEC,
    ITEM_WATMEL_BERRY,
    ITEM_LEFTOVERS,
    ITEM_TINY_MUSHROOM,
    ITEM_HEART_SCALE,
    ITEM_NONE
};

static const u16 sFavorLadyAcceptedItems_Pointy[] =
{
    ITEM_QUICK_CLAW,
    ITEM_POISON_BARB,
    ITEM_SHARP_BEAK,
    ITEM_DRAGON_FANG,
    ITEM_TAMATO_BERRY,
    ITEM_DURIN_BERRY,
    ITEM_PETAYA_BERRY,
    ITEM_SALAC_BERRY,
    ITEM_STARDUST,
    ITEM_STAR_PIECE,
    ITEM_NONE
};

static const u16 *const sFavorLadyAcceptedItemLists[] =
{
    sFavorLadyAcceptedItems_Slippery,
    sFavorLadyAcceptedItems_Roundish,
    sFavorLadyAcceptedItems_Whamish,
    sFavorLadyAcceptedItems_Shiny,
    sFavorLadyAcceptedItems_Sticky,
    sFavorLadyAcceptedItems_Pointy
};

static const u16 sFavorLadyPrizes[] =
{
    ITEM_LUXURY_BALL,
    ITEM_NUGGET,
    ITEM_PROTEIN,
    ITEM_HEART_SCALE,
    ITEM_RARE_CANDY,
    ITEM_PP_MAX
};

static const u8 *const sContestLadyMonNames[] =
{
    gText_ContestLady_Handsome,
    gText_ContestLady_Vinny,
    gText_ContestLady_Moreme,
    gText_ContestLady_Ironhard,
    gText_ContestLady_Muscle
};

static const u8 *const sContestLadyCategoryNames[] =
{
    gText_ContestLady_Coolness,
    gText_ContestLady_Beauty,
    gText_ContestLady_Cuteness,
    gText_ContestLady_Smartness,
    gText_ContestLady_Toughness
};

static const u8 *const sContestNames[] =
{
    gText_CoolnessContest,
    gText_BeautyContest,
    gText_CutenessContest,
    gText_SmartnessContest,
    gText_ToughnessContest
};

static const u16 sContestLadyMonSpecies[] =
{
    SPECIES_ZIGZAGOON,
    SPECIES_SKITTY,
    SPECIES_POOCHYENA,
    SPECIES_KECLEON,
    SPECIES_PIKACHU
};

repo_name: Lunos/pokeemerald

license: mit


code:
const struct OamData gObjectEventBaseOam_8x8 = {
    .shape = SPRITE_SHAPE(8x8),
    .size = SPRITE_SIZE(8x8),
    .priority = 2
};

const struct OamData gObjectEventBaseOam_16x8 = {
    .shape = SPRITE_SHAPE(16x8),
    .size = SPRITE_SIZE(16x8),
    .priority = 2
};

const struct OamData gObjectEventBaseOam_16x16 = {
    .shape = SPRITE_SHAPE(16x16),
    .size = SPRITE_SIZE(16x16),
    .priority = 2
};

const struct OamData gObjectEventBaseOam_32x8 = {
    .shape = SPRITE_SHAPE(32x8),
    .size = SPRITE_SIZE(32x8),
    .priority = 2
};

const struct OamData gObjectEventBaseOam_64x32 = {
    .shape = SPRITE_SHAPE(64x32),
    .size = SPRITE_SIZE(64x32),
    .priority = 2
};

const struct OamData gObjectEventBaseOam_16x32 = {
    .shape = SPRITE_SHAPE(16x32),
    .size = SPRITE_SIZE(16x32),
    .priority = 2
};

const struct OamData gObjectEventBaseOam_32x32 = {
    .shape = SPRITE_SHAPE(32x32),
    .size = SPRITE_SIZE(32x32),
    .priority = 2
};

const struct OamData gObjectEventBaseOam_64x64 = {
    .shape = SPRITE_SHAPE(64x64),
    .size = SPRITE_SIZE(64x64),
    .priority = 2
};


code:
const struct SpriteFrameImage gObjectEventPicTable_PechaBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_PechaBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_PechaBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_PechaBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_PechaBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_PechaBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_PechaBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Pecha[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_KelpsyBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_KelpsyBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_KelpsyBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_KelpsyBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_KelpsyBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_KelpsyBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_KelpsyBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Kelpsy[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_WepearBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_WepearBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_WepearBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_WepearBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_WepearBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_WepearBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_WepearBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Wepear[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_IapapaBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_IapapaBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_IapapaBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_IapapaBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_IapapaBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_IapapaBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_IapapaBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Iapapa[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_CheriBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_CheriBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_CheriBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_CheriBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_CheriBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_CheriBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_CheriBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Cheri[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_FigyBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_FigyBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_FigyBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_FigyBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_FigyBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_FigyBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_FigyBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Figy[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_MagoBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_MagoBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_MagoBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_MagoBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_MagoBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_MagoBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_MagoBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Mago[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_LumBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_LumBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_LumBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_LumBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_LumBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_LumBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_LumBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Lum[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_RazzBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_RazzBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_RazzBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_RazzBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_RazzBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_RazzBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_RazzBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Razz[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_GrepaBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_GrepaBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_GrepaBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_GrepaBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_GrepaBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_GrepaBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_GrepaBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Grepa[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_RabutaBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_RabutaBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_RabutaBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_RabutaBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_RabutaBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_RabutaBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_RabutaBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Rabuta[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_NomelBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_NomelBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_NomelBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_NomelBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_NomelBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_NomelBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_NomelBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Nomel[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_LeppaBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_LeppaBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_LeppaBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_LeppaBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_LeppaBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_LeppaBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_LeppaBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Leppa[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_LiechiBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_LiechiBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_LiechiBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_LiechiBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_LiechiBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_LiechiBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_LiechiBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Liechi[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_HondewBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_HondewBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_HondewBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_HondewBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_HondewBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_HondewBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_HondewBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Hondew[] = {3, 4, 5, 5, 5};

const struct SpriteFrameImage gObjectEventPicTable_AguavBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_AguavBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_AguavBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_AguavBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_AguavBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_AguavBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_AguavBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Aguav[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_WikiBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_WikiBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_WikiBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_WikiBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_WikiBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_WikiBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_WikiBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Wiki[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_PomegBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_PomegBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_PomegBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_PomegBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_PomegBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_PomegBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_PomegBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Pomeg[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_RawstBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_RawstBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_RawstBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_RawstBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_RawstBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_RawstBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_RawstBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Rawst[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_SpelonBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_SpelonBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_SpelonBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_SpelonBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_SpelonBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_SpelonBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_SpelonBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Spelon[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_ChestoBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_ChestoBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_ChestoBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_ChestoBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_ChestoBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_ChestoBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_ChestoBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Chesto[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_OranBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_OranBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_OranBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_OranBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_OranBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_OranBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_OranBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Oran[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_PersimBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_PersimBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_PersimBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_PersimBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_PersimBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_PersimBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_PersimBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Persim[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_SitrusBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_SitrusBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_SitrusBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_SitrusBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_SitrusBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_SitrusBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_SitrusBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Sitrus[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_AspearBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_AspearBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_AspearBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_AspearBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_AspearBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_AspearBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_AspearBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Aspear[] = {3, 4, 3, 3, 3};

const struct SpriteFrameImage gObjectEventPicTable_PamtreBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_PamtreBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_PamtreBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_PamtreBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_PamtreBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_PamtreBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_PamtreBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Pamtre[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_CornnBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_CornnBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_CornnBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_CornnBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_CornnBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_CornnBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_CornnBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Cornn[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_LansatBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_LansatBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_LansatBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_LansatBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_LansatBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_LansatBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_LansatBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Lansat[] = {3, 4, 2, 2, 2};

const struct SpriteFrameImage gObjectEventPicTable_DurinBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_DurinBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_DurinBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_DurinBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_DurinBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_DurinBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_DurinBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Durin[] = {3, 4, 4, 4, 4};

const struct SpriteFrameImage gObjectEventPicTable_TamatoBerryTree[] = {
    overworld_frame(gObjectEventPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gObjectEventPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gObjectEventPic_TamatoBerryTree, 2, 4, 0),
    overworld_frame(gObjectEventPic_TamatoBerryTree, 2, 4, 1),
    overworld_frame(gObjectEventPic_TamatoBerryTree, 2, 4, 2),
    overworld_frame(gObjectEventPic_TamatoBerryTree, 2, 4, 3),
    overworld_frame(gObjectEventPic_TamatoBerryTree, 2, 4, 4),
    overworld_frame(gObjectEventPic_TamatoBerryTree, 2, 4, 5),
};

const u8 gBerryTreePaletteSlotTable_Tamato[] = {3, 4, 2, 2, 2};

const u8 gDeadBerryTreeObjectEventGraphicsIdTable[] = {OBJ_EVENT_GFX_BERRY_TREE_EARLY_STAGES, OBJ_EVENT_GFX_BERRY_TREE_EARLY_STAGES, OBJ_EVENT_GFX_BERRY_TREE_EARLY_STAGES, OBJ_EVENT_GFX_BERRY_TREE_EARLY_STAGES, OBJ_EVENT_GFX_BERRY_TREE_EARLY_STAGES};

const u8 gBerryTreeObjectEventGraphicsIdTable[] = {OBJ_EVENT_GFX_BERRY_TREE_EARLY_STAGES, OBJ_EVENT_GFX_BERRY_TREE_EARLY_STAGES, OBJ_EVENT_GFX_BERRY_TREE_LATE_STAGES, OBJ_EVENT_GFX_BERRY_TREE_LATE_STAGES, OBJ_EVENT_GFX_BERRY_TREE_LATE_STAGES};

const struct SpriteFrameImage *const gBerryTreePicTablePointers[] = {
    [ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_CheriBerryTree,
    [ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_ChestoBerryTree,
    [ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_PechaBerryTree,
    [ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_RawstBerryTree,
    [ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_AspearBerryTree,
    [ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_LeppaBerryTree,
    [ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_OranBerryTree,
    [ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_PersimBerryTree,
    [ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_LumBerryTree,
    [ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_SitrusBerryTree,
    [ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_FigyBerryTree,
    [ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_WikiBerryTree,
    [ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_MagoBerryTree,
    [ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_AguavBerryTree,
    [ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_IapapaBerryTree,
    [ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_RazzBerryTree,
    [ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_RazzBerryTree,
    [ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_MagoBerryTree,
    [ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_WepearBerryTree,
    [ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_IapapaBerryTree,
    [ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_PomegBerryTree,
    [ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_KelpsyBerryTree,
    [ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_WepearBerryTree,
    [ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_HondewBerryTree,
    [ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_GrepaBerryTree,
    [ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_TamatoBerryTree,
    [ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_CornnBerryTree,
    [ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_PomegBerryTree,
    [ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_RabutaBerryTree,
    [ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_NomelBerryTree,
    [ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_SpelonBerryTree,
    [ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_PamtreBerryTree,
    [ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_RabutaBerryTree,
    [ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_DurinBerryTree,
    [ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_HondewBerryTree,
    [ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_LiechiBerryTree,
    [ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_HondewBerryTree,
    [ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_AguavBerryTree,
    [ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_PomegBerryTree,
    [ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_GrepaBerryTree,
    [ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_LansatBerryTree,
    [ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_CornnBerryTree,
    [ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gObjectEventPicTable_DurinBerryTree,
};

const u8 *const gBerryTreePaletteSlotTablePointers[] = {
    [ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Cheri,
    [ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Chesto,
    [ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pecha,
    [ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Rawst,
    [ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Aspear,
    [ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Leppa,
    [ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Oran,
    [ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Persim,
    [ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Lum,
    [ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Sitrus,
    [ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Figy,
    [ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Wiki,
    [ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Mago,
    [ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Aguav,
    [ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Iapapa,
    [ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Razz,
    [ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Razz,
    [ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Mago,
    [ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Wepear,
    [ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Iapapa,
    [ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pomeg,
    [ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Kelpsy,
    [ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Wepear,
    [ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Hondew,
    [ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Grepa,
    [ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Tamato,
    [ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Cornn,
    [ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pomeg,
    [ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Rabuta,
    [ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Nomel,
    [ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Spelon,
    [ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pamtre,
    [ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Rabuta,
    [ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Durin,
    [ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Hondew,
    [ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Liechi,
    [ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Hondew,
    [ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Aguav,
    [ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pomeg,
    [ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Grepa,
    [ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Lansat,
    [ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Cornn,
    [ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Durin,
};

const u8 *const gBerryTreeObjectEventGraphicsIdTablePointers[] = {
    [ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    // 3 unused berries.
    [ITEM_0B0 - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_0B1 - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
    [ITEM_0B2 - FIRST_BERRY_INDEX] = gBerryTreeObjectEventGraphicsIdTable,
};