const struct SpriteFrameImage gEventObjectPicTable_PechaBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_PechaBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_PechaBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_PechaBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_PechaBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_PechaBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_PechaBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_KelpsyBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_KelpsyBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_KelpsyBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_KelpsyBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_KelpsyBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_KelpsyBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_KelpsyBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_WepearBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_WepearBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_WepearBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_WepearBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_WepearBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_WepearBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_WepearBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_IapapaBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_IapapaBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_IapapaBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_IapapaBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_IapapaBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_IapapaBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_IapapaBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_CheriBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_CheriBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_CheriBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_CheriBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_CheriBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_CheriBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_CheriBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_FigyBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_FigyBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_FigyBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_FigyBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_FigyBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_FigyBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_FigyBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_MagoBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_MagoBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_MagoBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_MagoBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_MagoBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_MagoBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_MagoBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_LumBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_LumBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_LumBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_LumBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_LumBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_LumBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_LumBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_RazzBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_RazzBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_RazzBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_RazzBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_RazzBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_RazzBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_RazzBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_GrepaBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_GrepaBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_GrepaBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_GrepaBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_GrepaBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_GrepaBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_GrepaBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_RabutaBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_RabutaBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_RabutaBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_RabutaBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_RabutaBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_RabutaBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_RabutaBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_NomelBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_NomelBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_NomelBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_NomelBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_NomelBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_NomelBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_NomelBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_LeppaBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_LeppaBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_LeppaBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_LeppaBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_LeppaBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_LeppaBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_LeppaBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_LiechiBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_LiechiBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_LiechiBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_LiechiBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_LiechiBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_LiechiBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_LiechiBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_HondewBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_HondewBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_HondewBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_HondewBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_HondewBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_HondewBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_HondewBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_AguavBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_AguavBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_AguavBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_AguavBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_AguavBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_AguavBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_AguavBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_WikiBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_WikiBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_WikiBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_WikiBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_WikiBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_WikiBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_WikiBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_PomegBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_PomegBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_PomegBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_PomegBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_PomegBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_PomegBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_PomegBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_RawstBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_RawstBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_RawstBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_RawstBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_RawstBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_RawstBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_RawstBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_SpelonBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_SpelonBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_SpelonBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_SpelonBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_SpelonBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_SpelonBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_SpelonBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_ChestoBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_ChestoBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_ChestoBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_ChestoBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_ChestoBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_ChestoBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_ChestoBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_OranBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_OranBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_OranBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_OranBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_OranBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_OranBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_OranBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_PersimBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_PersimBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_PersimBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_PersimBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_PersimBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_PersimBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_PersimBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_SitrusBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_SitrusBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_SitrusBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_SitrusBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_SitrusBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_SitrusBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_SitrusBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_AspearBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_AspearBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_AspearBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_AspearBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_AspearBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_AspearBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_AspearBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_PamtreBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_PamtreBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_PamtreBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_PamtreBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_PamtreBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_PamtreBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_PamtreBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_CornnBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_CornnBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_CornnBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_CornnBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_CornnBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_CornnBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_CornnBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_LansatBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_LansatBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_LansatBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_LansatBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_LansatBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_LansatBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_LansatBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_DurinBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_DurinBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_DurinBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_DurinBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_DurinBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_DurinBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_DurinBerryTree, 2, 4, 5),
};

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

const struct SpriteFrameImage gEventObjectPicTable_TamatoBerryTree[] = {
    overworld_frame(gEventObjectPic_BerryTreeDirtPile, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 0),
    overworld_frame(gEventObjectPic_BerryTreeSprout, 2, 2, 1),
    overworld_frame(gEventObjectPic_TamatoBerryTree, 2, 4, 0),
    overworld_frame(gEventObjectPic_TamatoBerryTree, 2, 4, 1),
    overworld_frame(gEventObjectPic_TamatoBerryTree, 2, 4, 2),
    overworld_frame(gEventObjectPic_TamatoBerryTree, 2, 4, 3),
    overworld_frame(gEventObjectPic_TamatoBerryTree, 2, 4, 4),
    overworld_frame(gEventObjectPic_TamatoBerryTree, 2, 4, 5),
};

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

const u8 gDeadBerryTreeEventObjectGraphicsIdTable[] = {EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES};

const u8 gBerryTreeEventObjectGraphicsIdTable[] = {EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_LATE_STAGES, EVENT_OBJ_GFX_BERRY_TREE_LATE_STAGES, EVENT_OBJ_GFX_BERRY_TREE_LATE_STAGES};

const struct SpriteFrameImage *const gBerryTreePicTablePointers[] = {
    [ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_CheriBerryTree,
    [ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_ChestoBerryTree,
    [ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PechaBerryTree,
    [ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RawstBerryTree,
    [ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_AspearBerryTree,
    [ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LeppaBerryTree,
    [ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_OranBerryTree,
    [ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PersimBerryTree,
    [ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LumBerryTree,
    [ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_SitrusBerryTree,
    [ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_FigyBerryTree,
    [ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_WikiBerryTree,
    [ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_MagoBerryTree,
    [ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_AguavBerryTree,
    [ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_IapapaBerryTree,
    [ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RazzBerryTree,
    [ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RazzBerryTree,
    [ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_MagoBerryTree,
    [ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_WepearBerryTree,
    [ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_IapapaBerryTree,
    [ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PomegBerryTree,
    [ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_KelpsyBerryTree,
    [ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_WepearBerryTree,
    [ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_HondewBerryTree,
    [ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_GrepaBerryTree,
    [ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_TamatoBerryTree,
    [ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_CornnBerryTree,
    [ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PomegBerryTree,
    [ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RabutaBerryTree,
    [ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_NomelBerryTree,
    [ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_SpelonBerryTree,
    [ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PamtreBerryTree,
    [ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RabutaBerryTree,
    [ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_DurinBerryTree,
    [ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_HondewBerryTree,
    [ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LiechiBerryTree,
    [ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_HondewBerryTree,
    [ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_AguavBerryTree,
    [ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PomegBerryTree,
    [ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_GrepaBerryTree,
    [ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LansatBerryTree,
    [ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_CornnBerryTree,
    [ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_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 gBerryTreeEventObjectGraphicsIdTablePointers[] = {
    [ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    // 3 unused berries.
    [ITEM_0B0 - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_0B1 - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
    [ITEM_0B2 - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
};
