static const u16 sVenusaurFormSpeciesIdTable[] = {
    SPECIES_VENUSAUR,
    SPECIES_VENUSAUR_MEGA,
    FORM_SPECIES_END,
};

static const u16 sCharizardFormSpeciesIdTable[] = {
    SPECIES_CHARIZARD,
    SPECIES_CHARIZARD_MEGA_X,
    SPECIES_CHARIZARD_MEGA_Y,
    FORM_SPECIES_END,
};

static const u16 sBlastoiseFormSpeciesIdTable[] = {
    SPECIES_BLASTOISE,
    SPECIES_BLASTOISE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sBeedrillFormSpeciesIdTable[] = {
    SPECIES_BEEDRILL,
    SPECIES_BEEDRILL_MEGA,
    FORM_SPECIES_END,
};

static const u16 sPidgeotFormSpeciesIdTable[] = {
    SPECIES_PIDGEOT,
    SPECIES_PIDGEOT_MEGA,
    FORM_SPECIES_END,
};

static const u16 sRattataFormSpeciesIdTable[] = {
    SPECIES_RATTATA,
    SPECIES_RATTATA_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sRaticateFormSpeciesIdTable[] = {
    SPECIES_RATICATE,
    SPECIES_RATICATE_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sPikachuFormSpeciesIdTable[] = {
    SPECIES_PIKACHU,
    SPECIES_PIKACHU_COSPLAY,
    SPECIES_PIKACHU_ROCK_STAR,
    SPECIES_PIKACHU_BELLE,
    SPECIES_PIKACHU_POP_STAR,
    SPECIES_PIKACHU_PH_D,
    SPECIES_PIKACHU_LIBRE,
    SPECIES_PIKACHU_ORIGINAL_CAP,
    SPECIES_PIKACHU_HOENN_CAP,
    SPECIES_PIKACHU_SINNOH_CAP,
    SPECIES_PIKACHU_UNOVA_CAP,
    SPECIES_PIKACHU_KALOS_CAP,
    SPECIES_PIKACHU_ALOLA_CAP,
    SPECIES_PIKACHU_PARTNER_CAP,
    SPECIES_PIKACHU_WORLD_CAP,
    FORM_SPECIES_END,
};

static const u16 sRaichuFormSpeciesIdTable[] = {
    SPECIES_RAICHU,
    SPECIES_RAICHU_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sSandshrewFormSpeciesIdTable[] = {
    SPECIES_SANDSHREW,
    SPECIES_SANDSHREW_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sSandslashFormSpeciesIdTable[] = {
    SPECIES_SANDSLASH,
    SPECIES_SANDSLASH_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sVulpixFormSpeciesIdTable[] = {
    SPECIES_VULPIX,
    SPECIES_VULPIX_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sNinetalesFormSpeciesIdTable[] = {
    SPECIES_NINETALES,
    SPECIES_NINETALES_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sDiglettFormSpeciesIdTable[] = {
    SPECIES_DIGLETT,
    SPECIES_DIGLETT_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sDugtrioFormSpeciesIdTable[] = {
    SPECIES_DUGTRIO,
    SPECIES_DUGTRIO_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sMeowthFormSpeciesIdTable[] = {
    SPECIES_MEOWTH,
    SPECIES_MEOWTH_ALOLAN,
    SPECIES_MEOWTH_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sPersianFormSpeciesIdTable[] = {
    SPECIES_PERSIAN,
    SPECIES_PERSIAN_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sAlakazamFormSpeciesIdTable[] = {
    SPECIES_ALAKAZAM,
    SPECIES_ALAKAZAM_MEGA,
    FORM_SPECIES_END,
};

static const u16 sGeodudeFormSpeciesIdTable[] = {
    SPECIES_GEODUDE,
    SPECIES_GEODUDE_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sGravelerFormSpeciesIdTable[] = {
    SPECIES_GRAVELER,
    SPECIES_GRAVELER_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sGolemFormSpeciesIdTable[] = {
    SPECIES_GOLEM,
    SPECIES_GOLEM_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sPonytaFormSpeciesIdTable[] = {
    SPECIES_PONYTA,
    SPECIES_PONYTA_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sRapidashFormSpeciesIdTable[] = {
    SPECIES_RAPIDASH,
    SPECIES_RAPIDASH_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sSlowpokeFormSpeciesIdTable[] = {
    SPECIES_SLOWPOKE,
    SPECIES_SLOWPOKE_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sSlowbroFormSpeciesIdTable[] = {
    SPECIES_SLOWBRO,
    SPECIES_SLOWBRO_MEGA,
    SPECIES_SLOWBRO_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sFarfetchdFormSpeciesIdTable[] = {
    SPECIES_FARFETCHD,
    SPECIES_FARFETCHD_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sGrimerFormSpeciesIdTable[] = {
    SPECIES_GRIMER,
    SPECIES_GRIMER_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sMukFormSpeciesIdTable[] = {
    SPECIES_MUK,
    SPECIES_MUK_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sGengarFormSpeciesIdTable[] = {
    SPECIES_GENGAR,
    SPECIES_GENGAR_MEGA,
    FORM_SPECIES_END,
};

static const u16 sExeggutorFormSpeciesIdTable[] = {
    SPECIES_EXEGGUTOR,
    SPECIES_EXEGGUTOR_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sMarowakFormSpeciesIdTable[] = {
    SPECIES_MAROWAK,
    SPECIES_MAROWAK_ALOLAN,
    FORM_SPECIES_END,
};

static const u16 sWeezingFormSpeciesIdTable[] = {
    SPECIES_WEEZING,
    SPECIES_WEEZING_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sKangaskhanFormSpeciesIdTable[] = {
    SPECIES_KANGASKHAN,
    SPECIES_KANGASKHAN_MEGA,
    FORM_SPECIES_END,
};

static const u16 sMrMimeFormSpeciesIdTable[] = {
    SPECIES_MR_MIME,
    SPECIES_MR_MIME_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sPinsirFormSpeciesIdTable[] = {
    SPECIES_PINSIR,
    SPECIES_PINSIR_MEGA,
    FORM_SPECIES_END,
};

static const u16 sGyaradosFormSpeciesIdTable[] = {
    SPECIES_GYARADOS,
    SPECIES_GYARADOS_MEGA,
    FORM_SPECIES_END,
};

static const u16 sAerodactylFormSpeciesIdTable[] = {
    SPECIES_AERODACTYL,
    SPECIES_AERODACTYL_MEGA,
    FORM_SPECIES_END,
};

static const u16 sArticunoFormSpeciesIdTable[] = {
    SPECIES_ARTICUNO,
    SPECIES_ARTICUNO_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sZapdosFormSpeciesIdTable[] = {
    SPECIES_ZAPDOS,
    SPECIES_ZAPDOS_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sMoltresFormSpeciesIdTable[] = {
    SPECIES_MOLTRES,
    SPECIES_MOLTRES_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sMewtwoFormSpeciesIdTable[] = {
    SPECIES_MEWTWO,
    SPECIES_MEWTWO_MEGA_X,
    SPECIES_MEWTWO_MEGA_Y,
    FORM_SPECIES_END,
};

static const u16 sPichuFormSpeciesIdTable[] = {
    SPECIES_PICHU,
    SPECIES_PICHU_SPIKY_EARED,
    FORM_SPECIES_END,
};

static const u16 sAmpharosFormSpeciesIdTable[] = {
    SPECIES_AMPHAROS,
    SPECIES_AMPHAROS_MEGA,
    FORM_SPECIES_END,
};

static const u16 sSlowkingFormSpeciesIdTable[] = {
    SPECIES_SLOWKING,
    SPECIES_SLOWKING_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sUnownFormSpeciesIdTable[] = {
    SPECIES_UNOWN,
    SPECIES_UNOWN_B,
    SPECIES_UNOWN_C,
    SPECIES_UNOWN_D,
    SPECIES_UNOWN_E,
    SPECIES_UNOWN_F,
    SPECIES_UNOWN_G,
    SPECIES_UNOWN_H,
    SPECIES_UNOWN_I,
    SPECIES_UNOWN_J,
    SPECIES_UNOWN_K,
    SPECIES_UNOWN_L,
    SPECIES_UNOWN_M,
    SPECIES_UNOWN_N,
    SPECIES_UNOWN_O,
    SPECIES_UNOWN_P,
    SPECIES_UNOWN_Q,
    SPECIES_UNOWN_R,
    SPECIES_UNOWN_S,
    SPECIES_UNOWN_T,
    SPECIES_UNOWN_U,
    SPECIES_UNOWN_V,
    SPECIES_UNOWN_W,
    SPECIES_UNOWN_X,
    SPECIES_UNOWN_Y,
    SPECIES_UNOWN_Z,
    SPECIES_UNOWN_EMARK,
    SPECIES_UNOWN_QMARK,
    FORM_SPECIES_END,
};

static const u16 sSteelixFormSpeciesIdTable[] = {
    SPECIES_STEELIX,
    SPECIES_STEELIX_MEGA,
    FORM_SPECIES_END,
};

static const u16 sScizorFormSpeciesIdTable[] = {
    SPECIES_SCIZOR,
    SPECIES_SCIZOR_MEGA,
    FORM_SPECIES_END,
};

static const u16 sHeracrossFormSpeciesIdTable[] = {
    SPECIES_HERACROSS,
    SPECIES_HERACROSS_MEGA,
    FORM_SPECIES_END,
};

static const u16 sCorsolaFormSpeciesIdTable[] = {
    SPECIES_CORSOLA,
    SPECIES_CORSOLA_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sHoundoomFormSpeciesIdTable[] = {
    SPECIES_HOUNDOOM,
    SPECIES_HOUNDOOM_MEGA,
    FORM_SPECIES_END,
};

static const u16 sTyranitarFormSpeciesIdTable[] = {
    SPECIES_TYRANITAR,
    SPECIES_TYRANITAR_MEGA,
    FORM_SPECIES_END,
};

static const u16 sSceptileFormSpeciesIdTable[] = {
    SPECIES_SCEPTILE,
    SPECIES_SCEPTILE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sBlazikenFormSpeciesIdTable[] = {
    SPECIES_BLAZIKEN,
    SPECIES_BLAZIKEN_MEGA,
    FORM_SPECIES_END,
};

static const u16 sSwampertFormSpeciesIdTable[] = {
    SPECIES_SWAMPERT,
    SPECIES_SWAMPERT_MEGA,
    FORM_SPECIES_END,
};

static const u16 sZigzagoonFormSpeciesIdTable[] = {
    SPECIES_ZIGZAGOON,
    SPECIES_ZIGZAGOON_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sLinooneFormSpeciesIdTable[] = {
    SPECIES_LINOONE,
    SPECIES_LINOONE_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sGardevoirFormSpeciesIdTable[] = {
    SPECIES_GARDEVOIR,
    SPECIES_GARDEVOIR_MEGA,
    FORM_SPECIES_END,
};

static const u16 sSableyeFormSpeciesIdTable[] = {
    SPECIES_SABLEYE,
    SPECIES_SABLEYE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sMawileFormSpeciesIdTable[] = {
    SPECIES_MAWILE,
    SPECIES_MAWILE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sAggronFormSpeciesIdTable[] = {
    SPECIES_AGGRON,
    SPECIES_AGGRON_MEGA,
    FORM_SPECIES_END,
};

static const u16 sMedichamFormSpeciesIdTable[] = {
    SPECIES_MEDICHAM,
    SPECIES_MEDICHAM_MEGA,
    FORM_SPECIES_END,
};

static const u16 sManectricFormSpeciesIdTable[] = {
    SPECIES_MANECTRIC,
    SPECIES_MANECTRIC_MEGA,
    FORM_SPECIES_END,
};

static const u16 sSharpedoFormSpeciesIdTable[] = {
    SPECIES_SHARPEDO,
    SPECIES_SHARPEDO_MEGA,
    FORM_SPECIES_END,
};

static const u16 sCameruptFormSpeciesIdTable[] = {
    SPECIES_CAMERUPT,
    SPECIES_CAMERUPT_MEGA,
    FORM_SPECIES_END,
};

static const u16 sAltariaFormSpeciesIdTable[] = {
    SPECIES_ALTARIA,
    SPECIES_ALTARIA_MEGA,
    FORM_SPECIES_END,
};

static const u16 sCastformFormSpeciesIdTable[] = {
    SPECIES_CASTFORM,
    SPECIES_CASTFORM_SUNNY,
    SPECIES_CASTFORM_RAINY,
    SPECIES_CASTFORM_SNOWY,
    FORM_SPECIES_END,
};

static const u16 sBanetteFormSpeciesIdTable[] = {
    SPECIES_BANETTE,
    SPECIES_BANETTE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sAbsolFormSpeciesIdTable[] = {
    SPECIES_ABSOL,
    SPECIES_ABSOL_MEGA,
    FORM_SPECIES_END,
};

static const u16 sGlalieFormSpeciesIdTable[] = {
    SPECIES_GLALIE,
    SPECIES_GLALIE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sSalamenceFormSpeciesIdTable[] = {
    SPECIES_SALAMENCE,
    SPECIES_SALAMENCE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sMetagrossFormSpeciesIdTable[] = {
    SPECIES_METAGROSS,
    SPECIES_METAGROSS_MEGA,
    FORM_SPECIES_END,
};

static const u16 sLatiasFormSpeciesIdTable[] = {
    SPECIES_LATIAS,
    SPECIES_LATIAS_MEGA,
    FORM_SPECIES_END,
};

static const u16 sLatiosFormSpeciesIdTable[] = {
    SPECIES_LATIOS,
    SPECIES_LATIOS_MEGA,
    FORM_SPECIES_END,
};

static const u16 sKyogreFormSpeciesIdTable[] = {
    SPECIES_KYOGRE,
    SPECIES_KYOGRE_PRIMAL,
    FORM_SPECIES_END,
};

static const u16 sGroudonFormSpeciesIdTable[] = {
    SPECIES_GROUDON,
    SPECIES_GROUDON_PRIMAL,
    FORM_SPECIES_END,
};

static const u16 sRayquazaFormSpeciesIdTable[] = {
    SPECIES_RAYQUAZA,
    SPECIES_RAYQUAZA_MEGA,
    FORM_SPECIES_END,
};

static const u16 sDeoxysFormSpeciesIdTable[] = {
    SPECIES_DEOXYS,
    SPECIES_DEOXYS_ATTACK,
    SPECIES_DEOXYS_DEFENSE,
    SPECIES_DEOXYS_SPEED,
    FORM_SPECIES_END,
};

static const u16 sBurmyFormSpeciesIdTable[] = {
    SPECIES_BURMY,
    SPECIES_BURMY_SANDY_CLOAK,
    SPECIES_BURMY_TRASH_CLOAK,
    FORM_SPECIES_END,
};

static const u16 sWormadamFormSpeciesIdTable[] = {
    SPECIES_WORMADAM,
    SPECIES_WORMADAM_SANDY_CLOAK,
    SPECIES_WORMADAM_TRASH_CLOAK,
    FORM_SPECIES_END,
};

static const u16 sCherrimFormSpeciesIdTable[] = {
    SPECIES_CHERRIM,
    SPECIES_CHERRIM_SUNSHINE,
    FORM_SPECIES_END,
};

static const u16 sShellosFormSpeciesIdTable[] = {
    SPECIES_SHELLOS,
    SPECIES_SHELLOS_EAST_SEA,
    FORM_SPECIES_END,
};

static const u16 sGastrodonFormSpeciesIdTable[] = {
    SPECIES_GASTRODON,
    SPECIES_GASTRODON_EAST_SEA,
    FORM_SPECIES_END,
};

static const u16 sLopunnyFormSpeciesIdTable[] = {
    SPECIES_LOPUNNY,
    SPECIES_LOPUNNY_MEGA,
    FORM_SPECIES_END,
};

static const u16 sGarchompFormSpeciesIdTable[] = {
    SPECIES_GARCHOMP,
    SPECIES_GARCHOMP_MEGA,
    FORM_SPECIES_END,
};

static const u16 sLucarioFormSpeciesIdTable[] = {
    SPECIES_LUCARIO,
    SPECIES_LUCARIO_MEGA,
    FORM_SPECIES_END,
};

static const u16 sAbomasnowFormSpeciesIdTable[] = {
    SPECIES_ABOMASNOW,
    SPECIES_ABOMASNOW_MEGA,
    FORM_SPECIES_END,
};

static const u16 sGalladeFormSpeciesIdTable[] = {
    SPECIES_GALLADE,
    SPECIES_GALLADE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sRotomFormSpeciesIdTable[] = {
    SPECIES_ROTOM,
    SPECIES_ROTOM_HEAT,
    SPECIES_ROTOM_WASH,
    SPECIES_ROTOM_FROST,
    SPECIES_ROTOM_FAN,
    SPECIES_ROTOM_MOW,
    FORM_SPECIES_END,
};

static const u16 sGiratinaFormSpeciesIdTable[] = {
    SPECIES_GIRATINA,
    SPECIES_GIRATINA_ORIGIN,
    FORM_SPECIES_END,
};

static const u16 sShayminFormSpeciesIdTable[] = {
    SPECIES_SHAYMIN,
    SPECIES_SHAYMIN_SKY,
    FORM_SPECIES_END,
};

static const u16 sArceusFormSpeciesIdTable[] = {
    SPECIES_ARCEUS,
    SPECIES_ARCEUS_FIGHTING,
    SPECIES_ARCEUS_FLYING,
    SPECIES_ARCEUS_POISON,
    SPECIES_ARCEUS_GROUND,
    SPECIES_ARCEUS_ROCK,
    SPECIES_ARCEUS_BUG,
    SPECIES_ARCEUS_GHOST,
    SPECIES_ARCEUS_STEEL,
    SPECIES_ARCEUS_FIRE,
    SPECIES_ARCEUS_WATER,
    SPECIES_ARCEUS_GRASS,
    SPECIES_ARCEUS_ELECTRIC,
    SPECIES_ARCEUS_PSYCHIC,
    SPECIES_ARCEUS_ICE,
    SPECIES_ARCEUS_DRAGON,
    SPECIES_ARCEUS_DARK,
    SPECIES_ARCEUS_FAIRY,
    FORM_SPECIES_END,
};

static const u16 sAudinoFormSpeciesIdTable[] = {
    SPECIES_AUDINO,
    SPECIES_AUDINO_MEGA,
    FORM_SPECIES_END,
};

static const u16 sBasculinFormSpeciesIdTable[] = {
    SPECIES_BASCULIN,
    SPECIES_BASCULIN_BLUE_STRIPED,
    FORM_SPECIES_END,
};

static const u16 sDarumakaFormSpeciesIdTable[] = {
    SPECIES_DARUMAKA,
    SPECIES_DARUMAKA_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sDarmanitanFormSpeciesIdTable[] = {
    SPECIES_DARMANITAN,
    SPECIES_DARMANITAN_ZEN_MODE,
    SPECIES_DARMANITAN_GALARIAN,
    SPECIES_DARMANITAN_ZEN_MODE_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sYamaskFormSpeciesIdTable[] = {
    SPECIES_YAMASK,
    SPECIES_YAMASK_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sDeerlingFormSpeciesIdTable[] = {
    SPECIES_DEERLING,
    SPECIES_DEERLING_SUMMER,
    SPECIES_DEERLING_AUTUMN,
    SPECIES_DEERLING_WINTER,
    FORM_SPECIES_END,
};

static const u16 sSawsbuckFormSpeciesIdTable[] = {
    SPECIES_SAWSBUCK,
    SPECIES_SAWSBUCK_SUMMER,
    SPECIES_SAWSBUCK_AUTUMN,
    SPECIES_SAWSBUCK_WINTER,
    FORM_SPECIES_END,
};

static const u16 sStunfiskFormSpeciesIdTable[] = {
    SPECIES_STUNFISK,
    SPECIES_STUNFISK_GALARIAN,
    FORM_SPECIES_END,
};

static const u16 sTornadusFormSpeciesIdTable[] = {
    SPECIES_TORNADUS,
    SPECIES_TORNADUS_THERIAN,
    FORM_SPECIES_END,
};

static const u16 sThundurusFormSpeciesIdTable[] = {
    SPECIES_THUNDURUS,
    SPECIES_THUNDURUS_THERIAN,
    FORM_SPECIES_END,
};

static const u16 sLandorusFormSpeciesIdTable[] = {
    SPECIES_LANDORUS,
    SPECIES_LANDORUS_THERIAN,
    FORM_SPECIES_END,
};

static const u16 sKyuremFormSpeciesIdTable[] = {
    SPECIES_KYUREM,
    SPECIES_KYUREM_WHITE,
    SPECIES_KYUREM_BLACK,
    FORM_SPECIES_END,
};

static const u16 sKeldeoFormSpeciesIdTable[] = {
    SPECIES_KELDEO,
    SPECIES_KELDEO_RESOLUTE,
    FORM_SPECIES_END,
};

static const u16 sMeloettaFormSpeciesIdTable[] = {
    SPECIES_MELOETTA,
    SPECIES_MELOETTA_PIROUETTE,
    FORM_SPECIES_END,
};

static const u16 sGenesectFormSpeciesIdTable[] = {
    SPECIES_GENESECT,
    SPECIES_GENESECT_DOUSE_DRIVE,
    SPECIES_GENESECT_SHOCK_DRIVE,
    SPECIES_GENESECT_BURN_DRIVE,
    SPECIES_GENESECT_CHILL_DRIVE,
    FORM_SPECIES_END,
};

static const u16 sGreninjaFormSpeciesIdTable[] = {
    SPECIES_GRENINJA,
    SPECIES_GRENINJA_BATTLE_BOND,
    SPECIES_GRENINJA_ASH,
    FORM_SPECIES_END,
};

static const u16 sVivillonFormSpeciesIdTable[] = {
    SPECIES_VIVILLON,
    SPECIES_VIVILLON_POLAR,
    SPECIES_VIVILLON_TUNDRA,
    SPECIES_VIVILLON_CONTINENTAL,
    SPECIES_VIVILLON_GARDEN,
    SPECIES_VIVILLON_ELEGANT,
    SPECIES_VIVILLON_MEADOW,
    SPECIES_VIVILLON_MODERN,
    SPECIES_VIVILLON_MARINE,
    SPECIES_VIVILLON_ARCHIPELAGO,
    SPECIES_VIVILLON_HIGH_PLAINS,
    SPECIES_VIVILLON_SANDSTORM,
    SPECIES_VIVILLON_RIVER,
    SPECIES_VIVILLON_MONSOON,
    SPECIES_VIVILLON_SAVANNA,
    SPECIES_VIVILLON_SUN,
    SPECIES_VIVILLON_OCEAN,
    SPECIES_VIVILLON_JUNGLE,
    SPECIES_VIVILLON_FANCY,
    SPECIES_VIVILLON_POKE_BALL,
    FORM_SPECIES_END,
};

static const u16 sFlabebeFormSpeciesIdTable[] = {
    SPECIES_FLABEBE,
    SPECIES_FLABEBE_YELLOW_FLOWER,
    SPECIES_FLABEBE_ORANGE_FLOWER,
    SPECIES_FLABEBE_BLUE_FLOWER,
    SPECIES_FLABEBE_WHITE_FLOWER,
    FORM_SPECIES_END,
};

static const u16 sFloetteFormSpeciesIdTable[] = {
    SPECIES_FLOETTE,
    SPECIES_FLOETTE_YELLOW_FLOWER,
    SPECIES_FLOETTE_ORANGE_FLOWER,
    SPECIES_FLOETTE_BLUE_FLOWER,
    SPECIES_FLOETTE_WHITE_FLOWER,
    SPECIES_FLOETTE_ETERNAL_FLOWER,
    FORM_SPECIES_END,
};

static const u16 sFlorgesFormSpeciesIdTable[] = {
    SPECIES_FLORGES,
    SPECIES_FLORGES_YELLOW_FLOWER,
    SPECIES_FLORGES_ORANGE_FLOWER,
    SPECIES_FLORGES_BLUE_FLOWER,
    SPECIES_FLORGES_WHITE_FLOWER,
    FORM_SPECIES_END,
};

static const u16 sFurfrouFormSpeciesIdTable[] = {
    SPECIES_FURFROU,
    SPECIES_FURFROU_HEART_TRIM,
    SPECIES_FURFROU_STAR_TRIM,
    SPECIES_FURFROU_DIAMOND_TRIM,
    SPECIES_FURFROU_DEBUTANTE_TRIM,
    SPECIES_FURFROU_MATRON_TRIM,
    SPECIES_FURFROU_DANDY_TRIM,
    SPECIES_FURFROU_LA_REINE_TRIM,
    SPECIES_FURFROU_KABUKI_TRIM,
    SPECIES_FURFROU_PHARAOH_TRIM,
    FORM_SPECIES_END,
};

static const u16 sMeowsticFormSpeciesIdTable[] = {
    SPECIES_MEOWSTIC,
    SPECIES_MEOWSTIC_FEMALE,
    FORM_SPECIES_END,
};

static const u16 sAegislashFormSpeciesIdTable[] = {
    SPECIES_AEGISLASH,
    SPECIES_AEGISLASH_BLADE,
    FORM_SPECIES_END,
};

static const u16 sPumpkabooFormSpeciesIdTable[] = {
    SPECIES_PUMPKABOO,
    SPECIES_PUMPKABOO_SMALL,
    SPECIES_PUMPKABOO_LARGE,
    SPECIES_PUMPKABOO_SUPER,
    FORM_SPECIES_END,
};

static const u16 sGourgeistFormSpeciesIdTable[] = {
    SPECIES_GOURGEIST,
    SPECIES_GOURGEIST_SMALL,
    SPECIES_GOURGEIST_LARGE,
    SPECIES_GOURGEIST_SUPER,
    FORM_SPECIES_END,
};

static const u16 sXerneasFormSpeciesIdTable[] = {
    SPECIES_XERNEAS,
    SPECIES_XERNEAS_ACTIVE,
    FORM_SPECIES_END,
};

static const u16 sZygardeFormSpeciesIdTable[] = {
    SPECIES_ZYGARDE,
    SPECIES_ZYGARDE_10,
    SPECIES_ZYGARDE_10_POWER_CONSTRUCT,
    SPECIES_ZYGARDE_50_POWER_CONSTRUCT,
    SPECIES_ZYGARDE_COMPLETE,
    FORM_SPECIES_END,
};

static const u16 sDiancieFormSpeciesIdTable[] = {
    SPECIES_DIANCIE,
    SPECIES_DIANCIE_MEGA,
    FORM_SPECIES_END,
};

static const u16 sHoopaFormSpeciesIdTable[] = {
    SPECIES_HOOPA,
    SPECIES_HOOPA_UNBOUND,
    FORM_SPECIES_END,
};

static const u16 sOricorioFormSpeciesIdTable[] = {
    SPECIES_ORICORIO,
    SPECIES_ORICORIO_POM_POM,
    SPECIES_ORICORIO_PAU,
    SPECIES_ORICORIO_SENSU,
    FORM_SPECIES_END,
};

static const u16 sRockruffFormSpeciesIdTable[] = {
    SPECIES_ROCKRUFF,
    SPECIES_ROCKRUFF_OWN_TEMPO,
    FORM_SPECIES_END,
};

static const u16 sLycanrocFormSpeciesIdTable[] = {
    SPECIES_LYCANROC,
    SPECIES_LYCANROC_MIDNIGHT,
    SPECIES_LYCANROC_DUSK,
    FORM_SPECIES_END,
};

static const u16 sWishiwashiFormSpeciesIdTable[] = {
    SPECIES_WISHIWASHI,
    SPECIES_WISHIWASHI_SCHOOL,
    FORM_SPECIES_END,
};

static const u16 sSilvallyFormSpeciesIdTable[] = {
    SPECIES_SILVALLY,
    SPECIES_SILVALLY_FIGHTING,
    SPECIES_SILVALLY_FLYING,
    SPECIES_SILVALLY_POISON,
    SPECIES_SILVALLY_GROUND,
    SPECIES_SILVALLY_ROCK,
    SPECIES_SILVALLY_BUG,
    SPECIES_SILVALLY_GHOST,
    SPECIES_SILVALLY_STEEL,
    SPECIES_SILVALLY_FIRE,
    SPECIES_SILVALLY_WATER,
    SPECIES_SILVALLY_GRASS,
    SPECIES_SILVALLY_ELECTRIC,
    SPECIES_SILVALLY_PSYCHIC,
    SPECIES_SILVALLY_ICE,
    SPECIES_SILVALLY_DRAGON,
    SPECIES_SILVALLY_DARK,
    SPECIES_SILVALLY_FAIRY,
    FORM_SPECIES_END,
};

static const u16 sMiniorFormSpeciesIdTable[] = {
    SPECIES_MINIOR,
    SPECIES_MINIOR_METEOR_ORANGE,
    SPECIES_MINIOR_METEOR_YELLOW,
    SPECIES_MINIOR_METEOR_GREEN,
    SPECIES_MINIOR_METEOR_BLUE,
    SPECIES_MINIOR_METEOR_INDIGO,
    SPECIES_MINIOR_METEOR_VIOLET,
    SPECIES_MINIOR_CORE_RED,
    SPECIES_MINIOR_CORE_ORANGE,
    SPECIES_MINIOR_CORE_YELLOW,
    SPECIES_MINIOR_CORE_GREEN,
    SPECIES_MINIOR_CORE_BLUE,
    SPECIES_MINIOR_CORE_INDIGO,
    SPECIES_MINIOR_CORE_VIOLET,
    FORM_SPECIES_END,
};

static const u16 sMimikyuFormSpeciesIdTable[] = {
    SPECIES_MIMIKYU,
    SPECIES_MIMIKYU_BUSTED,
    FORM_SPECIES_END,
};

static const u16 sNecrozmaFormSpeciesIdTable[] = {
    SPECIES_NECROZMA,
    SPECIES_NECROZMA_DUSK_MANE,
    SPECIES_NECROZMA_DAWN_WINGS,
    SPECIES_NECROZMA_ULTRA,
    FORM_SPECIES_END,
};

static const u16 sMagearnaFormSpeciesIdTable[] = {
    SPECIES_MAGEARNA,
    SPECIES_MAGEARNA_ORIGINAL_COLOR,
    FORM_SPECIES_END,
};

static const u16 sCramorantFormSpeciesIdTable[] = {
    SPECIES_CRAMORANT,
    SPECIES_CRAMORANT_GULPING,
    SPECIES_CRAMORANT_GORGING,
    FORM_SPECIES_END,
};

static const u16 sToxtricityFormSpeciesIdTable[] = {
    SPECIES_TOXTRICITY,
    SPECIES_TOXTRICITY_LOW_KEY,
    FORM_SPECIES_END,
};

static const u16 sSinisteaFormSpeciesIdTable[] = {
    SPECIES_SINISTEA,
    SPECIES_SINISTEA_ANTIQUE,
    FORM_SPECIES_END,
};

static const u16 sPolteageistFormSpeciesIdTable[] = {
    SPECIES_POLTEAGEIST,
    SPECIES_POLTEAGEIST_ANTIQUE,
    FORM_SPECIES_END,
};

static const u16 sAlcremieFormSpeciesIdTable[] = {
    SPECIES_ALCREMIE,
    SPECIES_ALCREMIE_RUBY_CREAM,
    SPECIES_ALCREMIE_MATCHA_CREAM,
    SPECIES_ALCREMIE_MINT_CREAM,
    SPECIES_ALCREMIE_LEMON_CREAM,
    SPECIES_ALCREMIE_SALTED_CREAM,
    SPECIES_ALCREMIE_RUBY_SWIRL,
    SPECIES_ALCREMIE_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_RAINBOW_SWIRL,
    FORM_SPECIES_END,
};

static const u16 sEiscueFormSpeciesIdTable[] = {
    SPECIES_EISCUE,
    SPECIES_EISCUE_NOICE_FACE,
    FORM_SPECIES_END,
};

static const u16 sIndeedeeFormSpeciesIdTable[] = {
    SPECIES_INDEEDEE,
    SPECIES_INDEEDEE_FEMALE,
    FORM_SPECIES_END,
};

static const u16 sMorpekoFormSpeciesIdTable[] = {
    SPECIES_MORPEKO,
    SPECIES_MORPEKO_HANGRY,
    FORM_SPECIES_END,
};

static const u16 sZacianFormSpeciesIdTable[] = {
    SPECIES_ZACIAN,
    SPECIES_ZACIAN_CROWNED_SWORD,
    FORM_SPECIES_END,
};

static const u16 sZamazentaFormSpeciesIdTable[] = {
    SPECIES_ZAMAZENTA,
    SPECIES_ZAMAZENTA_CROWNED_SHIELD,
    FORM_SPECIES_END,
};

static const u16 sEternatusFormSpeciesIdTable[] = {
    SPECIES_ETERNATUS,
    SPECIES_ETERNATUS_ETERNAMAX,
    FORM_SPECIES_END,
};

static const u16 sUrshifuFormSpeciesIdTable[] = {
    SPECIES_URSHIFU,
    SPECIES_URSHIFU_RAPID_STRIKE_STYLE,
    FORM_SPECIES_END,
};

static const u16 sZarudeFormSpeciesIdTable[] = {
    SPECIES_ZARUDE,
    SPECIES_ZARUDE_DADA,
    FORM_SPECIES_END,
};

static const u16 sCalyrexFormSpeciesIdTable[] = {
    SPECIES_CALYREX,
    SPECIES_CALYREX_ICE_RIDER,
    SPECIES_CALYREX_SHADOW_RIDER,
    FORM_SPECIES_END,
};
