mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-28 04:34:28 +01:00
Mega Evolution in form change tables
This commit is contained in:
parent
fa8b1b9c05
commit
797c5514d3
@ -468,10 +468,7 @@ struct LinkBattlerHeader
|
|||||||
struct MegaEvolutionData
|
struct MegaEvolutionData
|
||||||
{
|
{
|
||||||
u8 toEvolve; // As flags using gBitTable.
|
u8 toEvolve; // As flags using gBitTable.
|
||||||
u8 evolvedPartyIds[2]; // As flags using gBitTable;
|
|
||||||
bool8 alreadyEvolved[4]; // Array id is used for mon position.
|
bool8 alreadyEvolved[4]; // Array id is used for mon position.
|
||||||
u16 evolvedSpecies[MAX_BATTLERS_COUNT];
|
|
||||||
u16 playerEvolvedSpecies;
|
|
||||||
u8 battlerId;
|
u8 battlerId;
|
||||||
bool8 playerSelect;
|
bool8 playerSelect;
|
||||||
u8 triggerSpriteId;
|
u8 triggerSpriteId;
|
||||||
|
@ -149,6 +149,7 @@ u16 GetPrimalReversionSpecies(u16 preSpecies, u16 heldItemId);
|
|||||||
u16 GetWishMegaEvolutionSpecies(u16 preEvoSpecies, u16 moveId1, u16 moveId2, u16 moveId3, u16 moveId4);
|
u16 GetWishMegaEvolutionSpecies(u16 preEvoSpecies, u16 moveId1, u16 moveId2, u16 moveId3, u16 moveId4);
|
||||||
bool32 CanMegaEvolve(u8 battlerId);
|
bool32 CanMegaEvolve(u8 battlerId);
|
||||||
void UndoMegaEvolution(u32 monId);
|
void UndoMegaEvolution(u32 monId);
|
||||||
|
bool32 IsBattlerMegaEvolved(u8 battlerId);
|
||||||
bool32 IsBattlerPrimalReverted(u8 battlerId);
|
bool32 IsBattlerPrimalReverted(u8 battlerId);
|
||||||
void TryBattleFormChange(u8 battlerId, u16 method);
|
void TryBattleFormChange(u8 battlerId, u16 method);
|
||||||
bool32 DoBattlersShareType(u32 battler1, u32 battler2);
|
bool32 DoBattlersShareType(u32 battler1, u32 battler2);
|
||||||
|
@ -264,8 +264,6 @@
|
|||||||
#define F_SUMMARY_SCREEN_FLIP_SPRITE 0x80
|
#define F_SUMMARY_SCREEN_FLIP_SPRITE 0x80
|
||||||
|
|
||||||
// Evolution types
|
// Evolution types
|
||||||
#define EVO_MEGA_EVOLUTION 0xffff // Not an actual evolution, used to temporarily mega evolve in battle.
|
|
||||||
#define EVO_MOVE_MEGA_EVOLUTION 0xfffe // Mega Evolution that checks for a move instead of held item.
|
|
||||||
#define EVO_FRIENDSHIP 1 // Pokémon levels up with friendship ≥ 220
|
#define EVO_FRIENDSHIP 1 // Pokémon levels up with friendship ≥ 220
|
||||||
#define EVO_FRIENDSHIP_DAY 2 // Pokémon levels up during the day with friendship ≥ 220
|
#define EVO_FRIENDSHIP_DAY 2 // Pokémon levels up during the day with friendship ≥ 220
|
||||||
#define EVO_FRIENDSHIP_NIGHT 3 // Pokémon levels up at night with friendship ≥ 220
|
#define EVO_FRIENDSHIP_NIGHT 3 // Pokémon levels up at night with friendship ≥ 220
|
||||||
@ -325,7 +323,9 @@
|
|||||||
#define FORM_CHANGE_BATTLE_BEGIN 6
|
#define FORM_CHANGE_BATTLE_BEGIN 6
|
||||||
#define FORM_CHANGE_BATTLE_END 7
|
#define FORM_CHANGE_BATTLE_END 7
|
||||||
#define FORM_CHANGE_BATTLE_SWITCH 8
|
#define FORM_CHANGE_BATTLE_SWITCH 8
|
||||||
#define FORM_CHANGE_PRIMAL_REVERSION 9
|
#define FORM_CHANGE_MEGA_EVOLUTION_ITEM 9
|
||||||
|
#define FORM_CHANGE_MEGA_EVOLUTION_MOVE 10
|
||||||
|
#define FORM_CHANGE_PRIMAL_REVERSION 11
|
||||||
|
|
||||||
#define MON_PIC_WIDTH 64
|
#define MON_PIC_WIDTH 64
|
||||||
#define MON_PIC_HEIGHT 64
|
#define MON_PIC_HEIGHT 64
|
||||||
|
@ -871,8 +871,7 @@ u8 CreateBattlerHealthboxSprites(u8 battlerId)
|
|||||||
healthBarSpritePtr->invisible = TRUE;
|
healthBarSpritePtr->invisible = TRUE;
|
||||||
|
|
||||||
// Create mega indicator sprite if is a mega evolved or a primal reverted mon.
|
// Create mega indicator sprite if is a mega evolved or a primal reverted mon.
|
||||||
if ((gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(battlerId)] & gBitTable[gBattlerPartyIndexes[battlerId]])
|
if (IsBattlerMegaEvolved(battlerId) || IsBattlerPrimalReverted(battlerId))
|
||||||
|| IsBattlerPrimalReverted(battlerId))
|
|
||||||
{
|
{
|
||||||
megaIndicatorSpriteId = CreateMegaIndicatorSprite(battlerId, 0);
|
megaIndicatorSpriteId = CreateMegaIndicatorSprite(battlerId, 0);
|
||||||
gSprites[megaIndicatorSpriteId].invisible = TRUE;
|
gSprites[megaIndicatorSpriteId].invisible = TRUE;
|
||||||
@ -979,8 +978,7 @@ void SetHealthboxSpriteVisible(u8 healthboxSpriteId)
|
|||||||
gSprites[healthboxSpriteId].invisible = FALSE;
|
gSprites[healthboxSpriteId].invisible = FALSE;
|
||||||
gSprites[gSprites[healthboxSpriteId].hMain_HealthBarSpriteId].invisible = FALSE;
|
gSprites[gSprites[healthboxSpriteId].hMain_HealthBarSpriteId].invisible = FALSE;
|
||||||
gSprites[gSprites[healthboxSpriteId].oam.affineParam].invisible = FALSE;
|
gSprites[gSprites[healthboxSpriteId].oam.affineParam].invisible = FALSE;
|
||||||
if ((gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(battlerId)] & gBitTable[gBattlerPartyIndexes[battlerId]])
|
if (IsBattlerMegaEvolved(battlerId) || IsBattlerPrimalReverted(battlerId))
|
||||||
|| IsBattlerPrimalReverted(battlerId))
|
|
||||||
{
|
{
|
||||||
u8 spriteId = GetMegaIndicatorSpriteId(healthboxSpriteId);
|
u8 spriteId = GetMegaIndicatorSpriteId(healthboxSpriteId);
|
||||||
if (spriteId != 0xFF)
|
if (spriteId != 0xFF)
|
||||||
@ -1104,8 +1102,7 @@ static void UpdateLvlInHealthbox(u8 healthboxSpriteId, u8 lvl)
|
|||||||
u8 battler = gSprites[healthboxSpriteId].hMain_Battler;
|
u8 battler = gSprites[healthboxSpriteId].hMain_Battler;
|
||||||
|
|
||||||
// Don't print Lv char if mon is mega evolved or primal reverted.
|
// Don't print Lv char if mon is mega evolved or primal reverted.
|
||||||
if ((gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(battler)] & gBitTable[gBattlerPartyIndexes[battler]])
|
if (IsBattlerMegaEvolved(battler) || IsBattlerPrimalReverted(battler))
|
||||||
|| IsBattlerPrimalReverted(battler))
|
|
||||||
{
|
{
|
||||||
objVram = ConvertIntToDecimalStringN(text, lvl, STR_CONV_MODE_LEFT_ALIGN, 3);
|
objVram = ConvertIntToDecimalStringN(text, lvl, STR_CONV_MODE_LEFT_ALIGN, 3);
|
||||||
xPos = 5 * (3 - (objVram - (text + 2))) - 1;
|
xPos = 5 * (3 - (objVram - (text + 2))) - 1;
|
||||||
@ -1556,7 +1553,7 @@ u32 CreateMegaIndicatorSprite(u32 battlerId, u32 which)
|
|||||||
u32 spriteId, position;
|
u32 spriteId, position;
|
||||||
s16 x, y;
|
s16 x, y;
|
||||||
|
|
||||||
if (gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(battlerId)] & gBitTable[gBattlerPartyIndexes[battlerId]])
|
if (IsBattlerMegaEvolved(battlerId))
|
||||||
{
|
{
|
||||||
LoadSpritePalette(&sSpritePalette_MegaIndicator);
|
LoadSpritePalette(&sSpritePalette_MegaIndicator);
|
||||||
LoadSpriteSheet(&sSpriteSheet_MegaIndicator);
|
LoadSpriteSheet(&sSpriteSheet_MegaIndicator);
|
||||||
@ -1586,7 +1583,7 @@ u32 CreateMegaIndicatorSprite(u32 battlerId, u32 which)
|
|||||||
else if (gBattleMons[battlerId].level < 10)
|
else if (gBattleMons[battlerId].level < 10)
|
||||||
x += 5;
|
x += 5;
|
||||||
|
|
||||||
if (gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(battlerId)] & gBitTable[gBattlerPartyIndexes[battlerId]])
|
if (IsBattlerMegaEvolved(battlerId))
|
||||||
{
|
{
|
||||||
spriteId = CreateSpriteAtEnd(&sSpriteTemplate_MegaIndicator, x, y, 0);
|
spriteId = CreateSpriteAtEnd(&sSpriteTemplate_MegaIndicator, x, y, 0);
|
||||||
}
|
}
|
||||||
|
@ -8807,20 +8807,11 @@ static void Cmd_various(void)
|
|||||||
// Change species.
|
// Change species.
|
||||||
if (gBattlescriptCurrInstr[3] == 0)
|
if (gBattlescriptCurrInstr[3] == 0)
|
||||||
{
|
{
|
||||||
u16 megaSpecies;
|
|
||||||
gBattleStruct->mega.evolvedSpecies[gActiveBattler] = gBattleMons[gActiveBattler].species;
|
|
||||||
if (GetBattlerPosition(gActiveBattler) == B_POSITION_PLAYER_LEFT
|
|
||||||
|| (GetBattlerPosition(gActiveBattler) == B_POSITION_PLAYER_RIGHT && !(gBattleTypeFlags & (BATTLE_TYPE_MULTI | BATTLE_TYPE_INGAME_PARTNER))))
|
|
||||||
{
|
|
||||||
gBattleStruct->mega.playerEvolvedSpecies = gBattleStruct->mega.evolvedSpecies[gActiveBattler];
|
|
||||||
}
|
|
||||||
//Checks regular Mega Evolution
|
//Checks regular Mega Evolution
|
||||||
megaSpecies = GetMegaEvolutionSpecies(gBattleStruct->mega.evolvedSpecies[gActiveBattler], gBattleMons[gActiveBattler].item);
|
u16 megaSpecies = GetMegaEvolutionSpecies(gBattleMons[gActiveBattler].species, gBattleMons[gActiveBattler].item);
|
||||||
//Checks Wish Mega Evolution
|
//Checks Wish Mega Evolution
|
||||||
if (megaSpecies == SPECIES_NONE)
|
if (megaSpecies == SPECIES_NONE)
|
||||||
{
|
megaSpecies = GetWishMegaEvolutionSpecies(gBattleMons[gActiveBattler].species, gBattleMons[gActiveBattler].moves[0], gBattleMons[gActiveBattler].moves[1], gBattleMons[gActiveBattler].moves[2], gBattleMons[gActiveBattler].moves[3]);
|
||||||
megaSpecies = GetWishMegaEvolutionSpecies(gBattleStruct->mega.evolvedSpecies[gActiveBattler], gBattleMons[gActiveBattler].moves[0], gBattleMons[gActiveBattler].moves[1], gBattleMons[gActiveBattler].moves[2], gBattleMons[gActiveBattler].moves[3]);
|
|
||||||
}
|
|
||||||
|
|
||||||
gBattleMons[gActiveBattler].species = megaSpecies;
|
gBattleMons[gActiveBattler].species = megaSpecies;
|
||||||
PREPARE_SPECIES_BUFFER(gBattleTextBuff1, gBattleMons[gActiveBattler].species);
|
PREPARE_SPECIES_BUFFER(gBattleTextBuff1, gBattleMons[gActiveBattler].species);
|
||||||
@ -8833,7 +8824,6 @@ static void Cmd_various(void)
|
|||||||
{
|
{
|
||||||
RecalcBattlerStats(gActiveBattler, mon);
|
RecalcBattlerStats(gActiveBattler, mon);
|
||||||
gBattleStruct->mega.alreadyEvolved[GetBattlerPosition(gActiveBattler)] = TRUE;
|
gBattleStruct->mega.alreadyEvolved[GetBattlerPosition(gActiveBattler)] = TRUE;
|
||||||
gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(gActiveBattler)] |= gBitTable[gBattlerPartyIndexes[gActiveBattler]];
|
|
||||||
}
|
}
|
||||||
// Update healthbox and elevation.
|
// Update healthbox and elevation.
|
||||||
else
|
else
|
||||||
|
@ -8953,9 +8953,7 @@ static bool32 CanEvolve(u32 species)
|
|||||||
|
|
||||||
for (i = 0; i < EVOS_PER_MON; i++)
|
for (i = 0; i < EVOS_PER_MON; i++)
|
||||||
{
|
{
|
||||||
if (gEvolutionTable[species][i].method
|
if (gEvolutionTable[species][i].method)
|
||||||
&& gEvolutionTable[species][i].method != EVO_MEGA_EVOLUTION
|
|
||||||
&& gEvolutionTable[species][i].method != EVO_MOVE_MEGA_EVOLUTION)
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -9554,12 +9552,17 @@ bool32 IsPartnerMonFromSameTrainer(u8 battlerId)
|
|||||||
u16 GetMegaEvolutionSpecies(u16 preEvoSpecies, u16 heldItemId)
|
u16 GetMegaEvolutionSpecies(u16 preEvoSpecies, u16 heldItemId)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
const struct FormChange *formChanges = gFormChangeTablePointers[preEvoSpecies];
|
||||||
|
|
||||||
for (i = 0; i < EVOS_PER_MON; i++)
|
if (formChanges != NULL)
|
||||||
{
|
{
|
||||||
if (gEvolutionTable[preEvoSpecies][i].method == EVO_MEGA_EVOLUTION
|
for (i = 0; formChanges[i].method != FORM_CHANGE_END; i++)
|
||||||
&& gEvolutionTable[preEvoSpecies][i].param == heldItemId)
|
{
|
||||||
return gEvolutionTable[preEvoSpecies][i].targetSpecies;
|
if ((formChanges[i].method == FORM_CHANGE_MEGA_EVOLUTION_ITEM
|
||||||
|
&& formChanges[i].param1 == heldItemId)
|
||||||
|
&& formChanges[i].targetSpecies != preEvoSpecies)
|
||||||
|
return formChanges[i].targetSpecies;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return SPECIES_NONE;
|
return SPECIES_NONE;
|
||||||
}
|
}
|
||||||
@ -9584,15 +9587,18 @@ u16 GetPrimalReversionSpecies(u16 preSpecies, u16 heldItemId)
|
|||||||
|
|
||||||
u16 GetWishMegaEvolutionSpecies(u16 preEvoSpecies, u16 moveId1, u16 moveId2, u16 moveId3, u16 moveId4)
|
u16 GetWishMegaEvolutionSpecies(u16 preEvoSpecies, u16 moveId1, u16 moveId2, u16 moveId3, u16 moveId4)
|
||||||
{
|
{
|
||||||
u32 i, par;
|
u32 i, param;
|
||||||
|
const struct FormChange *formChanges = gFormChangeTablePointers[preEvoSpecies];
|
||||||
|
|
||||||
for (i = 0; i < EVOS_PER_MON; i++)
|
if (formChanges != NULL)
|
||||||
{
|
{
|
||||||
if (gEvolutionTable[preEvoSpecies][i].method == EVO_MOVE_MEGA_EVOLUTION)
|
for (i = 0; formChanges[i].method != FORM_CHANGE_END; i++)
|
||||||
{
|
{
|
||||||
par = gEvolutionTable[preEvoSpecies][i].param;
|
param = formChanges[i].param1;
|
||||||
if (par == moveId1 || par == moveId2 || par == moveId3 || par == moveId4)
|
if ((formChanges[i].method == FORM_CHANGE_MEGA_EVOLUTION_MOVE
|
||||||
return gEvolutionTable[preEvoSpecies][i].targetSpecies;
|
&& (param == moveId1 || param == moveId2 || param == moveId3 || param == moveId4))
|
||||||
|
&& formChanges[i].targetSpecies != preEvoSpecies)
|
||||||
|
return formChanges[i].targetSpecies;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return SPECIES_NONE;
|
return SPECIES_NONE;
|
||||||
@ -9671,16 +9677,8 @@ bool32 CanMegaEvolve(u8 battlerId)
|
|||||||
|
|
||||||
void UndoMegaEvolution(u32 monId)
|
void UndoMegaEvolution(u32 monId)
|
||||||
{
|
{
|
||||||
u16 baseSpecies = GET_BASE_SPECIES_ID(GetMonData(&gPlayerParty[monId], MON_DATA_SPECIES));
|
|
||||||
|
|
||||||
if (gBattleStruct->mega.evolvedPartyIds[B_SIDE_PLAYER] & gBitTable[monId])
|
|
||||||
{
|
|
||||||
gBattleStruct->mega.evolvedPartyIds[B_SIDE_PLAYER] &= ~(gBitTable[monId]);
|
|
||||||
SetMonData(&gPlayerParty[monId], MON_DATA_SPECIES, &gBattleStruct->mega.playerEvolvedSpecies);
|
|
||||||
CalculateMonStats(&gPlayerParty[monId]);
|
|
||||||
}
|
|
||||||
// While not exactly a mega evolution, Zygarde follows the same rules.
|
// While not exactly a mega evolution, Zygarde follows the same rules.
|
||||||
else if (GetMonData(&gPlayerParty[monId], MON_DATA_SPECIES, NULL) == SPECIES_ZYGARDE_COMPLETE)
|
if (GetMonData(&gPlayerParty[monId], MON_DATA_SPECIES, NULL) == SPECIES_ZYGARDE_COMPLETE)
|
||||||
{
|
{
|
||||||
SetMonData(&gPlayerParty[monId], MON_DATA_SPECIES, &gBattleStruct->changedSpecies[monId]);
|
SetMonData(&gPlayerParty[monId], MON_DATA_SPECIES, &gBattleStruct->changedSpecies[monId]);
|
||||||
gBattleStruct->changedSpecies[monId] = 0;
|
gBattleStruct->changedSpecies[monId] = 0;
|
||||||
@ -9688,6 +9686,11 @@ void UndoMegaEvolution(u32 monId)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool32 IsBattlerMegaEvolved(u8 battlerId)
|
||||||
|
{
|
||||||
|
return (gBaseStats[gBattleMons[battlerId].species].flags & SPECIES_FLAG_MEGA_EVOLUTION);
|
||||||
|
}
|
||||||
|
|
||||||
bool32 IsBattlerPrimalReverted(u8 battlerId)
|
bool32 IsBattlerPrimalReverted(u8 battlerId)
|
||||||
{
|
{
|
||||||
return (gBaseStats[gBattleMons[battlerId].species].flags & SPECIES_FLAG_PRIMAL_REVERSION);
|
return (gBaseStats[gBattleMons[battlerId].species].flags & SPECIES_FLAG_PRIMAL_REVERSION);
|
||||||
|
@ -2,22 +2,16 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
{
|
{
|
||||||
[SPECIES_BULBASAUR] = {{EVO_LEVEL, 16, SPECIES_IVYSAUR}},
|
[SPECIES_BULBASAUR] = {{EVO_LEVEL, 16, SPECIES_IVYSAUR}},
|
||||||
[SPECIES_IVYSAUR] = {{EVO_LEVEL, 32, SPECIES_VENUSAUR}},
|
[SPECIES_IVYSAUR] = {{EVO_LEVEL, 32, SPECIES_VENUSAUR}},
|
||||||
[SPECIES_VENUSAUR] = {{EVO_MEGA_EVOLUTION, ITEM_VENUSAURITE, SPECIES_VENUSAUR_MEGA}},
|
|
||||||
[SPECIES_CHARMANDER] = {{EVO_LEVEL, 16, SPECIES_CHARMELEON}},
|
[SPECIES_CHARMANDER] = {{EVO_LEVEL, 16, SPECIES_CHARMELEON}},
|
||||||
[SPECIES_CHARMELEON] = {{EVO_LEVEL, 36, SPECIES_CHARIZARD}},
|
[SPECIES_CHARMELEON] = {{EVO_LEVEL, 36, SPECIES_CHARIZARD}},
|
||||||
[SPECIES_CHARIZARD] = {{EVO_MEGA_EVOLUTION, ITEM_CHARIZARDITE_X, SPECIES_CHARIZARD_MEGA_X},
|
|
||||||
{EVO_MEGA_EVOLUTION, ITEM_CHARIZARDITE_Y, SPECIES_CHARIZARD_MEGA_Y}},
|
|
||||||
[SPECIES_SQUIRTLE] = {{EVO_LEVEL, 16, SPECIES_WARTORTLE}},
|
[SPECIES_SQUIRTLE] = {{EVO_LEVEL, 16, SPECIES_WARTORTLE}},
|
||||||
[SPECIES_WARTORTLE] = {{EVO_LEVEL, 36, SPECIES_BLASTOISE}},
|
[SPECIES_WARTORTLE] = {{EVO_LEVEL, 36, SPECIES_BLASTOISE}},
|
||||||
[SPECIES_BLASTOISE] = {{EVO_MEGA_EVOLUTION, ITEM_BLASTOISINITE, SPECIES_BLASTOISE_MEGA}},
|
|
||||||
[SPECIES_CATERPIE] = {{EVO_LEVEL, 7, SPECIES_METAPOD}},
|
[SPECIES_CATERPIE] = {{EVO_LEVEL, 7, SPECIES_METAPOD}},
|
||||||
[SPECIES_METAPOD] = {{EVO_LEVEL, 10, SPECIES_BUTTERFREE}},
|
[SPECIES_METAPOD] = {{EVO_LEVEL, 10, SPECIES_BUTTERFREE}},
|
||||||
[SPECIES_WEEDLE] = {{EVO_LEVEL, 7, SPECIES_KAKUNA}},
|
[SPECIES_WEEDLE] = {{EVO_LEVEL, 7, SPECIES_KAKUNA}},
|
||||||
[SPECIES_KAKUNA] = {{EVO_LEVEL, 10, SPECIES_BEEDRILL}},
|
[SPECIES_KAKUNA] = {{EVO_LEVEL, 10, SPECIES_BEEDRILL}},
|
||||||
[SPECIES_BEEDRILL] = {{EVO_MEGA_EVOLUTION, ITEM_BEEDRILLITE, SPECIES_BEEDRILL_MEGA}},
|
|
||||||
[SPECIES_PIDGEY] = {{EVO_LEVEL, 18, SPECIES_PIDGEOTTO}},
|
[SPECIES_PIDGEY] = {{EVO_LEVEL, 18, SPECIES_PIDGEOTTO}},
|
||||||
[SPECIES_PIDGEOTTO] = {{EVO_LEVEL, 36, SPECIES_PIDGEOT}},
|
[SPECIES_PIDGEOTTO] = {{EVO_LEVEL, 36, SPECIES_PIDGEOT}},
|
||||||
[SPECIES_PIDGEOT] = {{EVO_MEGA_EVOLUTION, ITEM_PIDGEOTITE, SPECIES_PIDGEOT_MEGA}},
|
|
||||||
[SPECIES_RATTATA] = {{EVO_LEVEL, 20, SPECIES_RATICATE}},
|
[SPECIES_RATTATA] = {{EVO_LEVEL, 20, SPECIES_RATICATE}},
|
||||||
[SPECIES_SPEAROW] = {{EVO_LEVEL, 20, SPECIES_FEAROW}},
|
[SPECIES_SPEAROW] = {{EVO_LEVEL, 20, SPECIES_FEAROW}},
|
||||||
[SPECIES_EKANS] = {{EVO_LEVEL, 22, SPECIES_ARBOK}},
|
[SPECIES_EKANS] = {{EVO_LEVEL, 22, SPECIES_ARBOK}},
|
||||||
@ -48,7 +42,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
{EVO_TRADE_ITEM, ITEM_KINGS_ROCK, SPECIES_POLITOED}},
|
{EVO_TRADE_ITEM, ITEM_KINGS_ROCK, SPECIES_POLITOED}},
|
||||||
[SPECIES_ABRA] = {{EVO_LEVEL, 16, SPECIES_KADABRA}},
|
[SPECIES_ABRA] = {{EVO_LEVEL, 16, SPECIES_KADABRA}},
|
||||||
[SPECIES_KADABRA] = {{EVO_TRADE, 0, SPECIES_ALAKAZAM}},
|
[SPECIES_KADABRA] = {{EVO_TRADE, 0, SPECIES_ALAKAZAM}},
|
||||||
[SPECIES_ALAKAZAM] = {{EVO_MEGA_EVOLUTION, ITEM_ALAKAZITE, SPECIES_ALAKAZAM_MEGA}},
|
|
||||||
[SPECIES_MACHOP] = {{EVO_LEVEL, 28, SPECIES_MACHOKE}},
|
[SPECIES_MACHOP] = {{EVO_LEVEL, 28, SPECIES_MACHOKE}},
|
||||||
[SPECIES_MACHOKE] = {{EVO_TRADE, 0, SPECIES_MACHAMP}},
|
[SPECIES_MACHOKE] = {{EVO_TRADE, 0, SPECIES_MACHAMP}},
|
||||||
[SPECIES_BELLSPROUT] = {{EVO_LEVEL, 21, SPECIES_WEEPINBELL}},
|
[SPECIES_BELLSPROUT] = {{EVO_LEVEL, 21, SPECIES_WEEPINBELL}},
|
||||||
@ -59,7 +52,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_PONYTA] = {{EVO_LEVEL, 40, SPECIES_RAPIDASH}},
|
[SPECIES_PONYTA] = {{EVO_LEVEL, 40, SPECIES_RAPIDASH}},
|
||||||
[SPECIES_SLOWPOKE] = {{EVO_LEVEL, 37, SPECIES_SLOWBRO},
|
[SPECIES_SLOWPOKE] = {{EVO_LEVEL, 37, SPECIES_SLOWBRO},
|
||||||
{EVO_TRADE_ITEM, ITEM_KINGS_ROCK, SPECIES_SLOWKING}},
|
{EVO_TRADE_ITEM, ITEM_KINGS_ROCK, SPECIES_SLOWKING}},
|
||||||
[SPECIES_SLOWBRO] = {{EVO_MEGA_EVOLUTION, ITEM_SLOWBRONITE, SPECIES_SLOWBRO_MEGA}},
|
|
||||||
[SPECIES_MAGNEMITE] = {{EVO_LEVEL, 30, SPECIES_MAGNETON}},
|
[SPECIES_MAGNEMITE] = {{EVO_LEVEL, 30, SPECIES_MAGNETON}},
|
||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
[SPECIES_MAGNETON] = {{EVO_MAPSEC, MAPSEC_NEW_MAUVILLE, SPECIES_MAGNEZONE},
|
[SPECIES_MAGNETON] = {{EVO_MAPSEC, MAPSEC_NEW_MAUVILLE, SPECIES_MAGNEZONE},
|
||||||
@ -71,7 +63,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_SHELLDER] = {{EVO_ITEM, ITEM_WATER_STONE, SPECIES_CLOYSTER}},
|
[SPECIES_SHELLDER] = {{EVO_ITEM, ITEM_WATER_STONE, SPECIES_CLOYSTER}},
|
||||||
[SPECIES_GASTLY] = {{EVO_LEVEL, 25, SPECIES_HAUNTER}},
|
[SPECIES_GASTLY] = {{EVO_LEVEL, 25, SPECIES_HAUNTER}},
|
||||||
[SPECIES_HAUNTER] = {{EVO_TRADE, 0, SPECIES_GENGAR}},
|
[SPECIES_HAUNTER] = {{EVO_TRADE, 0, SPECIES_GENGAR}},
|
||||||
[SPECIES_GENGAR] = {{EVO_MEGA_EVOLUTION, ITEM_GENGARITE, SPECIES_GENGAR_MEGA}},
|
|
||||||
[SPECIES_ONIX] = {{EVO_TRADE_ITEM, ITEM_METAL_COAT, SPECIES_STEELIX}},
|
[SPECIES_ONIX] = {{EVO_TRADE_ITEM, ITEM_METAL_COAT, SPECIES_STEELIX}},
|
||||||
[SPECIES_DROWZEE] = {{EVO_LEVEL, 26, SPECIES_HYPNO}},
|
[SPECIES_DROWZEE] = {{EVO_LEVEL, 26, SPECIES_HYPNO}},
|
||||||
[SPECIES_KRABBY] = {{EVO_LEVEL, 28, SPECIES_KINGLER}},
|
[SPECIES_KRABBY] = {{EVO_LEVEL, 28, SPECIES_KINGLER}},
|
||||||
@ -92,7 +83,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
[SPECIES_TANGELA] = {{EVO_MOVE, MOVE_ANCIENT_POWER, SPECIES_TANGROWTH}},
|
[SPECIES_TANGELA] = {{EVO_MOVE, MOVE_ANCIENT_POWER, SPECIES_TANGROWTH}},
|
||||||
#endif
|
#endif
|
||||||
[SPECIES_KANGASKHAN] = {{EVO_MEGA_EVOLUTION, ITEM_KANGASKHANITE, SPECIES_KANGASKHAN_MEGA}},
|
|
||||||
[SPECIES_HORSEA] = {{EVO_LEVEL, 32, SPECIES_SEADRA}},
|
[SPECIES_HORSEA] = {{EVO_LEVEL, 32, SPECIES_SEADRA}},
|
||||||
[SPECIES_SEADRA] = {{EVO_TRADE_ITEM, ITEM_DRAGON_SCALE, SPECIES_KINGDRA}},
|
[SPECIES_SEADRA] = {{EVO_TRADE_ITEM, ITEM_DRAGON_SCALE, SPECIES_KINGDRA}},
|
||||||
[SPECIES_GOLDEEN] = {{EVO_LEVEL, 33, SPECIES_SEAKING}},
|
[SPECIES_GOLDEEN] = {{EVO_LEVEL, 33, SPECIES_SEAKING}},
|
||||||
@ -102,9 +92,7 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_ELECTABUZZ] = {{EVO_TRADE_ITEM, ITEM_ELECTIRIZER, SPECIES_ELECTIVIRE}},
|
[SPECIES_ELECTABUZZ] = {{EVO_TRADE_ITEM, ITEM_ELECTIRIZER, SPECIES_ELECTIVIRE}},
|
||||||
[SPECIES_MAGMAR] = {{EVO_TRADE_ITEM, ITEM_MAGMARIZER, SPECIES_MAGMORTAR}},
|
[SPECIES_MAGMAR] = {{EVO_TRADE_ITEM, ITEM_MAGMARIZER, SPECIES_MAGMORTAR}},
|
||||||
#endif
|
#endif
|
||||||
[SPECIES_PINSIR] = {{EVO_MEGA_EVOLUTION, ITEM_PINSIRITE, SPECIES_PINSIR_MEGA}},
|
|
||||||
[SPECIES_MAGIKARP] = {{EVO_LEVEL, 20, SPECIES_GYARADOS}},
|
[SPECIES_MAGIKARP] = {{EVO_LEVEL, 20, SPECIES_GYARADOS}},
|
||||||
[SPECIES_GYARADOS] = {{EVO_MEGA_EVOLUTION, ITEM_GYARADOSITE, SPECIES_GYARADOS_MEGA}},
|
|
||||||
[SPECIES_EEVEE] = {{EVO_ITEM, ITEM_THUNDER_STONE, SPECIES_JOLTEON},
|
[SPECIES_EEVEE] = {{EVO_ITEM, ITEM_THUNDER_STONE, SPECIES_JOLTEON},
|
||||||
{EVO_ITEM, ITEM_WATER_STONE, SPECIES_VAPOREON},
|
{EVO_ITEM, ITEM_WATER_STONE, SPECIES_VAPOREON},
|
||||||
{EVO_ITEM, ITEM_FIRE_STONE, SPECIES_FLAREON},
|
{EVO_ITEM, ITEM_FIRE_STONE, SPECIES_FLAREON},
|
||||||
@ -123,11 +111,8 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_PORYGON] = {{EVO_TRADE_ITEM, ITEM_UPGRADE, SPECIES_PORYGON2}},
|
[SPECIES_PORYGON] = {{EVO_TRADE_ITEM, ITEM_UPGRADE, SPECIES_PORYGON2}},
|
||||||
[SPECIES_OMANYTE] = {{EVO_LEVEL, 40, SPECIES_OMASTAR}},
|
[SPECIES_OMANYTE] = {{EVO_LEVEL, 40, SPECIES_OMASTAR}},
|
||||||
[SPECIES_KABUTO] = {{EVO_LEVEL, 40, SPECIES_KABUTOPS}},
|
[SPECIES_KABUTO] = {{EVO_LEVEL, 40, SPECIES_KABUTOPS}},
|
||||||
[SPECIES_AERODACTYL] = {{EVO_MEGA_EVOLUTION, ITEM_AERODACTYLITE, SPECIES_AERODACTYL_MEGA}},
|
|
||||||
[SPECIES_DRATINI] = {{EVO_LEVEL, 30, SPECIES_DRAGONAIR}},
|
[SPECIES_DRATINI] = {{EVO_LEVEL, 30, SPECIES_DRAGONAIR}},
|
||||||
[SPECIES_DRAGONAIR] = {{EVO_LEVEL, 55, SPECIES_DRAGONITE}},
|
[SPECIES_DRAGONAIR] = {{EVO_LEVEL, 55, SPECIES_DRAGONITE}},
|
||||||
[SPECIES_MEWTWO] = {{EVO_MEGA_EVOLUTION, ITEM_MEWTWONITE_X, SPECIES_MEWTWO_MEGA_X},
|
|
||||||
{EVO_MEGA_EVOLUTION, ITEM_MEWTWONITE_Y, SPECIES_MEWTWO_MEGA_Y}},
|
|
||||||
[SPECIES_CHIKORITA] = {{EVO_LEVEL, 16, SPECIES_BAYLEEF}},
|
[SPECIES_CHIKORITA] = {{EVO_LEVEL, 16, SPECIES_BAYLEEF}},
|
||||||
[SPECIES_BAYLEEF] = {{EVO_LEVEL, 32, SPECIES_MEGANIUM}},
|
[SPECIES_BAYLEEF] = {{EVO_LEVEL, 32, SPECIES_MEGANIUM}},
|
||||||
[SPECIES_CYNDAQUIL] = {{EVO_LEVEL, 14, SPECIES_QUILAVA}},
|
[SPECIES_CYNDAQUIL] = {{EVO_LEVEL, 14, SPECIES_QUILAVA}},
|
||||||
@ -149,7 +134,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_NATU] = {{EVO_LEVEL, 25, SPECIES_XATU}},
|
[SPECIES_NATU] = {{EVO_LEVEL, 25, SPECIES_XATU}},
|
||||||
[SPECIES_MAREEP] = {{EVO_LEVEL, 15, SPECIES_FLAAFFY}},
|
[SPECIES_MAREEP] = {{EVO_LEVEL, 15, SPECIES_FLAAFFY}},
|
||||||
[SPECIES_FLAAFFY] = {{EVO_LEVEL, 30, SPECIES_AMPHAROS}},
|
[SPECIES_FLAAFFY] = {{EVO_LEVEL, 30, SPECIES_AMPHAROS}},
|
||||||
[SPECIES_AMPHAROS] = {{EVO_MEGA_EVOLUTION, ITEM_AMPHAROSITE, SPECIES_AMPHAROS_MEGA}},
|
|
||||||
[SPECIES_MARILL] = {{EVO_LEVEL, 18, SPECIES_AZUMARILL}},
|
[SPECIES_MARILL] = {{EVO_LEVEL, 18, SPECIES_AZUMARILL}},
|
||||||
[SPECIES_HOPPIP] = {{EVO_LEVEL, 18, SPECIES_SKIPLOOM}},
|
[SPECIES_HOPPIP] = {{EVO_LEVEL, 18, SPECIES_SKIPLOOM}},
|
||||||
[SPECIES_SKIPLOOM] = {{EVO_LEVEL, 27, SPECIES_JUMPLUFF}},
|
[SPECIES_SKIPLOOM] = {{EVO_LEVEL, 27, SPECIES_JUMPLUFF}},
|
||||||
@ -167,10 +151,7 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
[SPECIES_GLIGAR] = {{EVO_ITEM_HOLD_NIGHT, ITEM_RAZOR_FANG, SPECIES_GLISCOR}},
|
[SPECIES_GLIGAR] = {{EVO_ITEM_HOLD_NIGHT, ITEM_RAZOR_FANG, SPECIES_GLISCOR}},
|
||||||
#endif
|
#endif
|
||||||
[SPECIES_STEELIX] = {{EVO_MEGA_EVOLUTION, ITEM_STEELIXITE, SPECIES_STEELIX_MEGA}},
|
|
||||||
[SPECIES_SNUBBULL] = {{EVO_LEVEL, 23, SPECIES_GRANBULL}},
|
[SPECIES_SNUBBULL] = {{EVO_LEVEL, 23, SPECIES_GRANBULL}},
|
||||||
[SPECIES_SCIZOR] = {{EVO_MEGA_EVOLUTION, ITEM_SCIZORITE, SPECIES_SCIZOR_MEGA}},
|
|
||||||
[SPECIES_HERACROSS] = {{EVO_MEGA_EVOLUTION, ITEM_HERACRONITE, SPECIES_HERACROSS_MEGA}},
|
|
||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
[SPECIES_SNEASEL] = {{EVO_ITEM_HOLD_NIGHT, ITEM_RAZOR_CLAW, SPECIES_WEAVILE}},
|
[SPECIES_SNEASEL] = {{EVO_ITEM_HOLD_NIGHT, ITEM_RAZOR_CLAW, SPECIES_WEAVILE}},
|
||||||
#endif
|
#endif
|
||||||
@ -182,7 +163,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
#endif
|
#endif
|
||||||
[SPECIES_REMORAID] = {{EVO_LEVEL, 25, SPECIES_OCTILLERY}},
|
[SPECIES_REMORAID] = {{EVO_LEVEL, 25, SPECIES_OCTILLERY}},
|
||||||
[SPECIES_HOUNDOUR] = {{EVO_LEVEL, 24, SPECIES_HOUNDOOM}},
|
[SPECIES_HOUNDOUR] = {{EVO_LEVEL, 24, SPECIES_HOUNDOOM}},
|
||||||
[SPECIES_HOUNDOOM] = {{EVO_MEGA_EVOLUTION, ITEM_HOUNDOOMINITE, SPECIES_HOUNDOOM_MEGA}},
|
|
||||||
[SPECIES_PHANPY] = {{EVO_LEVEL, 25, SPECIES_DONPHAN}},
|
[SPECIES_PHANPY] = {{EVO_LEVEL, 25, SPECIES_DONPHAN}},
|
||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
[SPECIES_PORYGON2] = {{EVO_TRADE_ITEM, ITEM_DUBIOUS_DISC, SPECIES_PORYGON_Z}},
|
[SPECIES_PORYGON2] = {{EVO_TRADE_ITEM, ITEM_DUBIOUS_DISC, SPECIES_PORYGON_Z}},
|
||||||
@ -195,16 +175,12 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_MAGBY] = {{EVO_LEVEL, 30, SPECIES_MAGMAR}},
|
[SPECIES_MAGBY] = {{EVO_LEVEL, 30, SPECIES_MAGMAR}},
|
||||||
[SPECIES_LARVITAR] = {{EVO_LEVEL, 30, SPECIES_PUPITAR}},
|
[SPECIES_LARVITAR] = {{EVO_LEVEL, 30, SPECIES_PUPITAR}},
|
||||||
[SPECIES_PUPITAR] = {{EVO_LEVEL, 55, SPECIES_TYRANITAR}},
|
[SPECIES_PUPITAR] = {{EVO_LEVEL, 55, SPECIES_TYRANITAR}},
|
||||||
[SPECIES_TYRANITAR] = {{EVO_MEGA_EVOLUTION, ITEM_TYRANITARITE, SPECIES_TYRANITAR_MEGA}},
|
|
||||||
[SPECIES_TREECKO] = {{EVO_LEVEL, 16, SPECIES_GROVYLE}},
|
[SPECIES_TREECKO] = {{EVO_LEVEL, 16, SPECIES_GROVYLE}},
|
||||||
[SPECIES_GROVYLE] = {{EVO_LEVEL, 36, SPECIES_SCEPTILE}},
|
[SPECIES_GROVYLE] = {{EVO_LEVEL, 36, SPECIES_SCEPTILE}},
|
||||||
[SPECIES_SCEPTILE] = {{EVO_MEGA_EVOLUTION, ITEM_SCEPTILITE, SPECIES_SCEPTILE_MEGA}},
|
|
||||||
[SPECIES_TORCHIC] = {{EVO_LEVEL, 16, SPECIES_COMBUSKEN}},
|
[SPECIES_TORCHIC] = {{EVO_LEVEL, 16, SPECIES_COMBUSKEN}},
|
||||||
[SPECIES_COMBUSKEN] = {{EVO_LEVEL, 36, SPECIES_BLAZIKEN}},
|
[SPECIES_COMBUSKEN] = {{EVO_LEVEL, 36, SPECIES_BLAZIKEN}},
|
||||||
[SPECIES_BLAZIKEN] = {{EVO_MEGA_EVOLUTION, ITEM_BLAZIKENITE, SPECIES_BLAZIKEN_MEGA}},
|
|
||||||
[SPECIES_MUDKIP] = {{EVO_LEVEL, 16, SPECIES_MARSHTOMP}},
|
[SPECIES_MUDKIP] = {{EVO_LEVEL, 16, SPECIES_MARSHTOMP}},
|
||||||
[SPECIES_MARSHTOMP] = {{EVO_LEVEL, 36, SPECIES_SWAMPERT}},
|
[SPECIES_MARSHTOMP] = {{EVO_LEVEL, 36, SPECIES_SWAMPERT}},
|
||||||
[SPECIES_SWAMPERT] = {{EVO_MEGA_EVOLUTION, ITEM_SWAMPERTITE, SPECIES_SWAMPERT_MEGA}},
|
|
||||||
[SPECIES_POOCHYENA] = {{EVO_LEVEL, 18, SPECIES_MIGHTYENA}},
|
[SPECIES_POOCHYENA] = {{EVO_LEVEL, 18, SPECIES_MIGHTYENA}},
|
||||||
[SPECIES_ZIGZAGOON] = {{EVO_LEVEL, 20, SPECIES_LINOONE}},
|
[SPECIES_ZIGZAGOON] = {{EVO_LEVEL, 20, SPECIES_LINOONE}},
|
||||||
[SPECIES_WURMPLE] = {{EVO_LEVEL_SILCOON, 7, SPECIES_SILCOON},
|
[SPECIES_WURMPLE] = {{EVO_LEVEL_SILCOON, 7, SPECIES_SILCOON},
|
||||||
@ -227,20 +203,16 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
[SPECIES_NOSEPASS] = {{EVO_MAPSEC, MAPSEC_NEW_MAUVILLE, SPECIES_PROBOPASS}},
|
[SPECIES_NOSEPASS] = {{EVO_MAPSEC, MAPSEC_NEW_MAUVILLE, SPECIES_PROBOPASS}},
|
||||||
#endif
|
#endif
|
||||||
[SPECIES_SABLEYE] = {{EVO_MEGA_EVOLUTION, ITEM_SABLENITE, SPECIES_SABLEYE_MEGA}},
|
|
||||||
[SPECIES_BARBOACH] = {{EVO_LEVEL, 30, SPECIES_WHISCASH}},
|
[SPECIES_BARBOACH] = {{EVO_LEVEL, 30, SPECIES_WHISCASH}},
|
||||||
[SPECIES_CORPHISH] = {{EVO_LEVEL, 30, SPECIES_CRAWDAUNT}},
|
[SPECIES_CORPHISH] = {{EVO_LEVEL, 30, SPECIES_CRAWDAUNT}},
|
||||||
[SPECIES_FEEBAS] = {{EVO_BEAUTY, 170, SPECIES_MILOTIC},
|
[SPECIES_FEEBAS] = {{EVO_BEAUTY, 170, SPECIES_MILOTIC},
|
||||||
{EVO_TRADE_ITEM, ITEM_PRISM_SCALE, SPECIES_MILOTIC}},
|
{EVO_TRADE_ITEM, ITEM_PRISM_SCALE, SPECIES_MILOTIC}},
|
||||||
[SPECIES_CARVANHA] = {{EVO_LEVEL, 30, SPECIES_SHARPEDO}},
|
[SPECIES_CARVANHA] = {{EVO_LEVEL, 30, SPECIES_SHARPEDO}},
|
||||||
[SPECIES_SHARPEDO] = {{EVO_MEGA_EVOLUTION, ITEM_SHARPEDONITE, SPECIES_SHARPEDO_MEGA}},
|
|
||||||
[SPECIES_TRAPINCH] = {{EVO_LEVEL, 35, SPECIES_VIBRAVA}},
|
[SPECIES_TRAPINCH] = {{EVO_LEVEL, 35, SPECIES_VIBRAVA}},
|
||||||
[SPECIES_VIBRAVA] = {{EVO_LEVEL, 45, SPECIES_FLYGON}},
|
[SPECIES_VIBRAVA] = {{EVO_LEVEL, 45, SPECIES_FLYGON}},
|
||||||
[SPECIES_MAKUHITA] = {{EVO_LEVEL, 24, SPECIES_HARIYAMA}},
|
[SPECIES_MAKUHITA] = {{EVO_LEVEL, 24, SPECIES_HARIYAMA}},
|
||||||
[SPECIES_ELECTRIKE] = {{EVO_LEVEL, 26, SPECIES_MANECTRIC}},
|
[SPECIES_ELECTRIKE] = {{EVO_LEVEL, 26, SPECIES_MANECTRIC}},
|
||||||
[SPECIES_MANECTRIC] = {{EVO_MEGA_EVOLUTION, ITEM_MANECTITE, SPECIES_MANECTRIC_MEGA}},
|
|
||||||
[SPECIES_NUMEL] = {{EVO_LEVEL, 33, SPECIES_CAMERUPT}},
|
[SPECIES_NUMEL] = {{EVO_LEVEL, 33, SPECIES_CAMERUPT}},
|
||||||
[SPECIES_CAMERUPT] = {{EVO_MEGA_EVOLUTION, ITEM_CAMERUPTITE, SPECIES_CAMERUPT_MEGA}},
|
|
||||||
[SPECIES_SPHEAL] = {{EVO_LEVEL, 32, SPECIES_SEALEO}},
|
[SPECIES_SPHEAL] = {{EVO_LEVEL, 32, SPECIES_SEALEO}},
|
||||||
[SPECIES_SEALEO] = {{EVO_LEVEL, 44, SPECIES_WALREIN}},
|
[SPECIES_SEALEO] = {{EVO_LEVEL, 44, SPECIES_WALREIN}},
|
||||||
[SPECIES_CACNEA] = {{EVO_LEVEL, 32, SPECIES_CACTURNE}},
|
[SPECIES_CACNEA] = {{EVO_LEVEL, 32, SPECIES_CACTURNE}},
|
||||||
@ -249,14 +221,10 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
{EVO_ITEM_FEMALE, ITEM_DAWN_STONE, SPECIES_FROSLASS}
|
{EVO_ITEM_FEMALE, ITEM_DAWN_STONE, SPECIES_FROSLASS}
|
||||||
#endif
|
#endif
|
||||||
},
|
},
|
||||||
[SPECIES_GLALIE] = {{EVO_MEGA_EVOLUTION, ITEM_GLALITITE, SPECIES_GLALIE_MEGA}},
|
|
||||||
[SPECIES_AZURILL] = {{EVO_FRIENDSHIP, 0, SPECIES_MARILL}},
|
[SPECIES_AZURILL] = {{EVO_FRIENDSHIP, 0, SPECIES_MARILL}},
|
||||||
[SPECIES_SPOINK] = {{EVO_LEVEL, 32, SPECIES_GRUMPIG}},
|
[SPECIES_SPOINK] = {{EVO_LEVEL, 32, SPECIES_GRUMPIG}},
|
||||||
[SPECIES_MAWILE] = {{EVO_MEGA_EVOLUTION, ITEM_MAWILITE, SPECIES_MAWILE_MEGA}},
|
|
||||||
[SPECIES_MEDITITE] = {{EVO_LEVEL, 37, SPECIES_MEDICHAM}},
|
[SPECIES_MEDITITE] = {{EVO_LEVEL, 37, SPECIES_MEDICHAM}},
|
||||||
[SPECIES_MEDICHAM] = {{EVO_MEGA_EVOLUTION, ITEM_MEDICHAMITE, SPECIES_MEDICHAM_MEGA}},
|
|
||||||
[SPECIES_SWABLU] = {{EVO_LEVEL, 35, SPECIES_ALTARIA}},
|
[SPECIES_SWABLU] = {{EVO_LEVEL, 35, SPECIES_ALTARIA}},
|
||||||
[SPECIES_ALTARIA] = {{EVO_MEGA_EVOLUTION, ITEM_ALTARIANITE, SPECIES_ALTARIA_MEGA}},
|
|
||||||
[SPECIES_WYNAUT] = {{EVO_LEVEL, 15, SPECIES_WOBBUFFET}},
|
[SPECIES_WYNAUT] = {{EVO_LEVEL, 15, SPECIES_WOBBUFFET}},
|
||||||
[SPECIES_DUSKULL] = {{EVO_LEVEL, 37, SPECIES_DUSCLOPS}},
|
[SPECIES_DUSKULL] = {{EVO_LEVEL, 37, SPECIES_DUSCLOPS}},
|
||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
@ -270,12 +238,9 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_LOUDRED] = {{EVO_LEVEL, 40, SPECIES_EXPLOUD}},
|
[SPECIES_LOUDRED] = {{EVO_LEVEL, 40, SPECIES_EXPLOUD}},
|
||||||
[SPECIES_CLAMPERL] = {{EVO_TRADE_ITEM, ITEM_DEEP_SEA_TOOTH, SPECIES_HUNTAIL},
|
[SPECIES_CLAMPERL] = {{EVO_TRADE_ITEM, ITEM_DEEP_SEA_TOOTH, SPECIES_HUNTAIL},
|
||||||
{EVO_TRADE_ITEM, ITEM_DEEP_SEA_SCALE, SPECIES_GOREBYSS}},
|
{EVO_TRADE_ITEM, ITEM_DEEP_SEA_SCALE, SPECIES_GOREBYSS}},
|
||||||
[SPECIES_ABSOL] = {{EVO_MEGA_EVOLUTION, ITEM_ABSOLITE, SPECIES_ABSOL_MEGA}},
|
|
||||||
[SPECIES_SHUPPET] = {{EVO_LEVEL, 37, SPECIES_BANETTE}},
|
[SPECIES_SHUPPET] = {{EVO_LEVEL, 37, SPECIES_BANETTE}},
|
||||||
[SPECIES_BANETTE] = {{EVO_MEGA_EVOLUTION, ITEM_BANETTITE, SPECIES_BANETTE_MEGA}},
|
|
||||||
[SPECIES_ARON] = {{EVO_LEVEL, 32, SPECIES_LAIRON}},
|
[SPECIES_ARON] = {{EVO_LEVEL, 32, SPECIES_LAIRON}},
|
||||||
[SPECIES_LAIRON] = {{EVO_LEVEL, 42, SPECIES_AGGRON}},
|
[SPECIES_LAIRON] = {{EVO_LEVEL, 42, SPECIES_AGGRON}},
|
||||||
[SPECIES_AGGRON] = {{EVO_MEGA_EVOLUTION, ITEM_AGGRONITE, SPECIES_AGGRON_MEGA}},
|
|
||||||
[SPECIES_LILEEP] = {{EVO_LEVEL, 40, SPECIES_CRADILY}},
|
[SPECIES_LILEEP] = {{EVO_LEVEL, 40, SPECIES_CRADILY}},
|
||||||
[SPECIES_ANORITH] = {{EVO_LEVEL, 40, SPECIES_ARMALDO}},
|
[SPECIES_ANORITH] = {{EVO_LEVEL, 40, SPECIES_ARMALDO}},
|
||||||
[SPECIES_RALTS] = {{EVO_LEVEL, 20, SPECIES_KIRLIA}},
|
[SPECIES_RALTS] = {{EVO_LEVEL, 20, SPECIES_KIRLIA}},
|
||||||
@ -284,17 +249,10 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
{EVO_ITEM_MALE, ITEM_DAWN_STONE, SPECIES_GALLADE}
|
{EVO_ITEM_MALE, ITEM_DAWN_STONE, SPECIES_GALLADE}
|
||||||
#endif
|
#endif
|
||||||
},
|
},
|
||||||
[SPECIES_GARDEVOIR] = {{EVO_MEGA_EVOLUTION, ITEM_GARDEVOIRITE, SPECIES_GARDEVOIR_MEGA}},
|
|
||||||
[SPECIES_BAGON] = {{EVO_LEVEL, 30, SPECIES_SHELGON}},
|
[SPECIES_BAGON] = {{EVO_LEVEL, 30, SPECIES_SHELGON}},
|
||||||
[SPECIES_SHELGON] = {{EVO_LEVEL, 50, SPECIES_SALAMENCE}},
|
[SPECIES_SHELGON] = {{EVO_LEVEL, 50, SPECIES_SALAMENCE}},
|
||||||
[SPECIES_SALAMENCE] = {{EVO_MEGA_EVOLUTION, ITEM_SALAMENCITE, SPECIES_SALAMENCE_MEGA}},
|
|
||||||
[SPECIES_BELDUM] = {{EVO_LEVEL, 20, SPECIES_METANG}},
|
[SPECIES_BELDUM] = {{EVO_LEVEL, 20, SPECIES_METANG}},
|
||||||
[SPECIES_METANG] = {{EVO_LEVEL, 45, SPECIES_METAGROSS}},
|
[SPECIES_METANG] = {{EVO_LEVEL, 45, SPECIES_METAGROSS}},
|
||||||
[SPECIES_METAGROSS] = {{EVO_MEGA_EVOLUTION, ITEM_METAGROSSITE, SPECIES_METAGROSS_MEGA}},
|
|
||||||
[SPECIES_LATIAS] = {{EVO_MEGA_EVOLUTION, ITEM_LATIASITE, SPECIES_LATIAS_MEGA}},
|
|
||||||
[SPECIES_LATIOS] = {{EVO_MEGA_EVOLUTION, ITEM_LATIOSITE, SPECIES_LATIOS_MEGA}},
|
|
||||||
[SPECIES_RAYQUAZA] = {{EVO_MOVE_MEGA_EVOLUTION, MOVE_DRAGON_ASCENT, SPECIES_RAYQUAZA_MEGA}},
|
|
||||||
|
|
||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
// Gens 4-7
|
// Gens 4-7
|
||||||
[SPECIES_TURTWIG] = {{EVO_LEVEL, 18, SPECIES_GROTLE}},
|
[SPECIES_TURTWIG] = {{EVO_LEVEL, 18, SPECIES_GROTLE}},
|
||||||
@ -320,7 +278,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_SHELLOS] = {{EVO_LEVEL, 30, SPECIES_GASTRODON}},
|
[SPECIES_SHELLOS] = {{EVO_LEVEL, 30, SPECIES_GASTRODON}},
|
||||||
[SPECIES_DRIFLOON] = {{EVO_LEVEL, 28, SPECIES_DRIFBLIM}},
|
[SPECIES_DRIFLOON] = {{EVO_LEVEL, 28, SPECIES_DRIFBLIM}},
|
||||||
[SPECIES_BUNEARY] = {{EVO_FRIENDSHIP, 0, SPECIES_LOPUNNY}},
|
[SPECIES_BUNEARY] = {{EVO_FRIENDSHIP, 0, SPECIES_LOPUNNY}},
|
||||||
[SPECIES_LOPUNNY] = {{EVO_MEGA_EVOLUTION, ITEM_LOPUNNITE, SPECIES_LOPUNNY_MEGA}},
|
|
||||||
[SPECIES_GLAMEOW] = {{EVO_LEVEL, 38, SPECIES_PURUGLY}},
|
[SPECIES_GLAMEOW] = {{EVO_LEVEL, 38, SPECIES_PURUGLY}},
|
||||||
[SPECIES_CHINGLING] = {{EVO_FRIENDSHIP_NIGHT, 0, SPECIES_CHIMECHO}},
|
[SPECIES_CHINGLING] = {{EVO_FRIENDSHIP_NIGHT, 0, SPECIES_CHIMECHO}},
|
||||||
[SPECIES_STUNKY] = {{EVO_LEVEL, 34, SPECIES_SKUNTANK}},
|
[SPECIES_STUNKY] = {{EVO_LEVEL, 34, SPECIES_SKUNTANK}},
|
||||||
@ -330,18 +287,14 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_HAPPINY] = {{EVO_ITEM_HOLD_DAY, ITEM_OVAL_STONE, SPECIES_CHANSEY}},
|
[SPECIES_HAPPINY] = {{EVO_ITEM_HOLD_DAY, ITEM_OVAL_STONE, SPECIES_CHANSEY}},
|
||||||
[SPECIES_GIBLE] = {{EVO_LEVEL, 24, SPECIES_GABITE}},
|
[SPECIES_GIBLE] = {{EVO_LEVEL, 24, SPECIES_GABITE}},
|
||||||
[SPECIES_GABITE] = {{EVO_LEVEL, 48, SPECIES_GARCHOMP}},
|
[SPECIES_GABITE] = {{EVO_LEVEL, 48, SPECIES_GARCHOMP}},
|
||||||
[SPECIES_GARCHOMP] = {{EVO_MEGA_EVOLUTION, ITEM_GARCHOMPITE, SPECIES_GARCHOMP_MEGA}},
|
|
||||||
[SPECIES_MUNCHLAX] = {{EVO_FRIENDSHIP, 0, SPECIES_SNORLAX}},
|
[SPECIES_MUNCHLAX] = {{EVO_FRIENDSHIP, 0, SPECIES_SNORLAX}},
|
||||||
[SPECIES_RIOLU] = {{EVO_FRIENDSHIP_DAY, 0, SPECIES_LUCARIO}},
|
[SPECIES_RIOLU] = {{EVO_FRIENDSHIP_DAY, 0, SPECIES_LUCARIO}},
|
||||||
[SPECIES_LUCARIO] = {{EVO_MEGA_EVOLUTION, ITEM_LUCARIONITE, SPECIES_LUCARIO_MEGA}},
|
|
||||||
[SPECIES_HIPPOPOTAS] = {{EVO_LEVEL, 34, SPECIES_HIPPOWDON}},
|
[SPECIES_HIPPOPOTAS] = {{EVO_LEVEL, 34, SPECIES_HIPPOWDON}},
|
||||||
[SPECIES_SKORUPI] = {{EVO_LEVEL, 40, SPECIES_DRAPION}},
|
[SPECIES_SKORUPI] = {{EVO_LEVEL, 40, SPECIES_DRAPION}},
|
||||||
[SPECIES_CROAGUNK] = {{EVO_LEVEL, 37, SPECIES_TOXICROAK}},
|
[SPECIES_CROAGUNK] = {{EVO_LEVEL, 37, SPECIES_TOXICROAK}},
|
||||||
[SPECIES_FINNEON] = {{EVO_LEVEL, 31, SPECIES_LUMINEON}},
|
[SPECIES_FINNEON] = {{EVO_LEVEL, 31, SPECIES_LUMINEON}},
|
||||||
[SPECIES_MANTYKE] = {{EVO_SPECIFIC_MON_IN_PARTY, SPECIES_REMORAID, SPECIES_MANTINE}},
|
[SPECIES_MANTYKE] = {{EVO_SPECIFIC_MON_IN_PARTY, SPECIES_REMORAID, SPECIES_MANTINE}},
|
||||||
[SPECIES_SNOVER] = {{EVO_LEVEL, 40, SPECIES_ABOMASNOW}},
|
[SPECIES_SNOVER] = {{EVO_LEVEL, 40, SPECIES_ABOMASNOW}},
|
||||||
[SPECIES_ABOMASNOW] = {{EVO_MEGA_EVOLUTION, ITEM_ABOMASITE, SPECIES_ABOMASNOW_MEGA}},
|
|
||||||
[SPECIES_GALLADE] = {{EVO_MEGA_EVOLUTION, ITEM_GALLADITE, SPECIES_GALLADE_MEGA}},
|
|
||||||
#endif
|
#endif
|
||||||
#if P_GEN_5_POKEMON == TRUE
|
#if P_GEN_5_POKEMON == TRUE
|
||||||
[SPECIES_SNIVY] = {{EVO_LEVEL, 17, SPECIES_SERVINE}},
|
[SPECIES_SNIVY] = {{EVO_LEVEL, 17, SPECIES_SERVINE}},
|
||||||
@ -365,7 +318,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_BOLDORE] = {{EVO_TRADE, 0, SPECIES_GIGALITH}},
|
[SPECIES_BOLDORE] = {{EVO_TRADE, 0, SPECIES_GIGALITH}},
|
||||||
[SPECIES_WOOBAT] = {{EVO_FRIENDSHIP, 0, SPECIES_SWOOBAT}},
|
[SPECIES_WOOBAT] = {{EVO_FRIENDSHIP, 0, SPECIES_SWOOBAT}},
|
||||||
[SPECIES_DRILBUR] = {{EVO_LEVEL, 31, SPECIES_EXCADRILL}},
|
[SPECIES_DRILBUR] = {{EVO_LEVEL, 31, SPECIES_EXCADRILL}},
|
||||||
[SPECIES_AUDINO] = {{EVO_MEGA_EVOLUTION, ITEM_AUDINITE, SPECIES_AUDINO_MEGA}},
|
|
||||||
[SPECIES_TIMBURR] = {{EVO_LEVEL, 25, SPECIES_GURDURR}},
|
[SPECIES_TIMBURR] = {{EVO_LEVEL, 25, SPECIES_GURDURR}},
|
||||||
[SPECIES_GURDURR] = {{EVO_TRADE, 0, SPECIES_CONKELDURR}},
|
[SPECIES_GURDURR] = {{EVO_TRADE, 0, SPECIES_CONKELDURR}},
|
||||||
[SPECIES_TYMPOLE] = {{EVO_LEVEL, 25, SPECIES_PALPITOAD}},
|
[SPECIES_TYMPOLE] = {{EVO_LEVEL, 25, SPECIES_PALPITOAD}},
|
||||||
@ -456,7 +408,6 @@ const struct Evolution gEvolutionTable[NUM_SPECIES][EVOS_PER_MON] =
|
|||||||
[SPECIES_PUMPKABOO] = {{EVO_TRADE, 0, SPECIES_GOURGEIST}},
|
[SPECIES_PUMPKABOO] = {{EVO_TRADE, 0, SPECIES_GOURGEIST}},
|
||||||
[SPECIES_BERGMITE] = {{EVO_LEVEL, 37, SPECIES_AVALUGG}},
|
[SPECIES_BERGMITE] = {{EVO_LEVEL, 37, SPECIES_AVALUGG}},
|
||||||
[SPECIES_NOIBAT] = {{EVO_LEVEL, 48, SPECIES_NOIVERN}},
|
[SPECIES_NOIBAT] = {{EVO_LEVEL, 48, SPECIES_NOIVERN}},
|
||||||
[SPECIES_DIANCIE] = {{EVO_MEGA_EVOLUTION, ITEM_DIANCITE, SPECIES_DIANCIE_MEGA}},
|
|
||||||
#endif
|
#endif
|
||||||
#if P_GEN_7_POKEMON == TRUE
|
#if P_GEN_7_POKEMON == TRUE
|
||||||
[SPECIES_ROWLET] = {{EVO_LEVEL, 17, SPECIES_DARTRIX}},
|
[SPECIES_ROWLET] = {{EVO_LEVEL, 17, SPECIES_DARTRIX}},
|
||||||
|
@ -1,10 +1,100 @@
|
|||||||
const struct FormChange *const gFormChangeTablePointers[NUM_SPECIES] =
|
const struct FormChange *const gFormChangeTablePointers[NUM_SPECIES] =
|
||||||
{
|
{
|
||||||
|
[SPECIES_VENUSAUR] = sVenusaurFormChangeTable,
|
||||||
|
[SPECIES_VENUSAUR_MEGA] = sVenusaurFormChangeTable,
|
||||||
|
[SPECIES_CHARIZARD] = sCharizardFormChangeTable,
|
||||||
|
[SPECIES_CHARIZARD_MEGA_X] = sCharizardFormChangeTable,
|
||||||
|
[SPECIES_CHARIZARD_MEGA_Y] = sCharizardFormChangeTable,
|
||||||
|
[SPECIES_BLASTOISE] = sBlastoiseFormChangeTable,
|
||||||
|
[SPECIES_BLASTOISE_MEGA] = sBlastoiseFormChangeTable,
|
||||||
|
[SPECIES_BEEDRILL] = sBeedrillFormChangeTable,
|
||||||
|
[SPECIES_BEEDRILL_MEGA] = sBeedrillFormChangeTable,
|
||||||
|
[SPECIES_PIDGEOT] = sPidgeotFormChangeTable,
|
||||||
|
[SPECIES_PIDGEOT_MEGA] = sPidgeotFormChangeTable,
|
||||||
|
[SPECIES_ALAKAZAM] = sAlakazamFormChangeTable,
|
||||||
|
[SPECIES_ALAKAZAM_MEGA] = sAlakazamFormChangeTable,
|
||||||
|
[SPECIES_SLOWBRO] = sSlowbroFormChangeTable,
|
||||||
|
[SPECIES_SLOWBRO_MEGA] = sSlowbroFormChangeTable,
|
||||||
|
[SPECIES_GENGAR] = sGengarFormChangeTable,
|
||||||
|
[SPECIES_GENGAR_MEGA] = sGengarFormChangeTable,
|
||||||
|
[SPECIES_KANGASKHAN] = sKangaskhanFormChangeTable,
|
||||||
|
[SPECIES_KANGASKHAN_MEGA] = sKangaskhanFormChangeTable,
|
||||||
|
[SPECIES_PINSIR] = sPinsirFormChangeTable,
|
||||||
|
[SPECIES_PINSIR_MEGA] = sPinsirFormChangeTable,
|
||||||
|
[SPECIES_GYARADOS] = sGyaradosFormChangeTable,
|
||||||
|
[SPECIES_GYARADOS_MEGA] = sGyaradosFormChangeTable,
|
||||||
|
[SPECIES_AERODACTYL] = sAerodactylFormChangeTable,
|
||||||
|
[SPECIES_AERODACTYL_MEGA] = sAerodactylFormChangeTable,
|
||||||
|
[SPECIES_MEWTWO] = sMewtwoFormChangeTable,
|
||||||
|
[SPECIES_MEWTWO_MEGA_X] = sMewtwoFormChangeTable,
|
||||||
|
[SPECIES_MEWTWO_MEGA_Y] = sMewtwoFormChangeTable,
|
||||||
|
[SPECIES_AMPHAROS] = sAmpharosFormChangeTable,
|
||||||
|
[SPECIES_AMPHAROS_MEGA] = sAmpharosFormChangeTable,
|
||||||
|
[SPECIES_STEELIX] = sSteelixFormChangeTable,
|
||||||
|
[SPECIES_STEELIX_MEGA] = sSteelixFormChangeTable,
|
||||||
|
[SPECIES_SCIZOR] = sScizorFormChangeTable,
|
||||||
|
[SPECIES_SCIZOR_MEGA] = sScizorFormChangeTable,
|
||||||
|
[SPECIES_HERACROSS] = sHeracrossFormChangeTable,
|
||||||
|
[SPECIES_HERACROSS_MEGA] = sHeracrossFormChangeTable,
|
||||||
|
[SPECIES_HOUNDOOM] = sHoundoomFormChangeTable,
|
||||||
|
[SPECIES_HOUNDOOM_MEGA] = sHoundoomFormChangeTable,
|
||||||
|
[SPECIES_TYRANITAR] = sTyranitarFormChangeTable,
|
||||||
|
[SPECIES_TYRANITAR_MEGA] = sTyranitarFormChangeTable,
|
||||||
|
[SPECIES_SCEPTILE] = sSceptileFormChangeTable,
|
||||||
|
[SPECIES_SCEPTILE_MEGA] = sSceptileFormChangeTable,
|
||||||
|
[SPECIES_BLAZIKEN] = sBlazikenFormChangeTable,
|
||||||
|
[SPECIES_BLAZIKEN_MEGA] = sBlazikenFormChangeTable,
|
||||||
|
[SPECIES_SWAMPERT] = sSwampertFormChangeTable,
|
||||||
|
[SPECIES_SWAMPERT_MEGA] = sSwampertFormChangeTable,
|
||||||
|
[SPECIES_SABLEYE] = sSableyeFormChangeTable,
|
||||||
|
[SPECIES_SABLEYE_MEGA] = sSableyeFormChangeTable,
|
||||||
|
[SPECIES_SHARPEDO] = sSharpedoFormChangeTable,
|
||||||
|
[SPECIES_SHARPEDO_MEGA] = sSharpedoFormChangeTable,
|
||||||
|
[SPECIES_MANECTRIC] = sManectricFormChangeTable,
|
||||||
|
[SPECIES_MANECTRIC_MEGA] = sManectricFormChangeTable,
|
||||||
|
[SPECIES_CAMERUPT] = sCameruptFormChangeTable,
|
||||||
|
[SPECIES_CAMERUPT_MEGA] = sCameruptFormChangeTable,
|
||||||
|
[SPECIES_GLALIE] = sGlalieFormChangeTable,
|
||||||
|
[SPECIES_GLALIE_MEGA] = sGlalieFormChangeTable,
|
||||||
|
[SPECIES_MAWILE] = sMawileFormChangeTable,
|
||||||
|
[SPECIES_MAWILE_MEGA] = sMawileFormChangeTable,
|
||||||
|
[SPECIES_MEDICHAM] = sMedichamFormChangeTable,
|
||||||
|
[SPECIES_MEDICHAM_MEGA] = sMedichamFormChangeTable,
|
||||||
|
[SPECIES_ALTARIA] = sAltariaFormChangeTable,
|
||||||
|
[SPECIES_ALTARIA_MEGA] = sAltariaFormChangeTable,
|
||||||
|
[SPECIES_ABSOL] = sAbsolFormChangeTable,
|
||||||
|
[SPECIES_ABSOL_MEGA] = sAbsolFormChangeTable,
|
||||||
|
[SPECIES_BANETTE] = sBanetteFormChangeTable,
|
||||||
|
[SPECIES_BANETTE_MEGA] = sBanetteFormChangeTable,
|
||||||
|
[SPECIES_AGGRON] = sAggronFormChangeTable,
|
||||||
|
[SPECIES_AGGRON_MEGA] = sAggronFormChangeTable,
|
||||||
|
[SPECIES_GARDEVOIR] = sGardevoirFormChangeTable,
|
||||||
|
[SPECIES_GARDEVOIR_MEGA] = sGardevoirFormChangeTable,
|
||||||
|
[SPECIES_SALAMENCE] = sSalamenceFormChangeTable,
|
||||||
|
[SPECIES_SALAMENCE_MEGA] = sSalamenceFormChangeTable,
|
||||||
|
[SPECIES_METAGROSS] = sMetagrossFormChangeTable,
|
||||||
|
[SPECIES_METAGROSS_MEGA] = sMetagrossFormChangeTable,
|
||||||
|
[SPECIES_LATIAS] = sLatiasFormChangeTable,
|
||||||
|
[SPECIES_LATIAS_MEGA] = sLatiasFormChangeTable,
|
||||||
|
[SPECIES_LATIOS] = sLatiosFormChangeTable,
|
||||||
|
[SPECIES_LATIOS_MEGA] = sLatiosFormChangeTable,
|
||||||
[SPECIES_KYOGRE] = sKyogreFormChangeTable,
|
[SPECIES_KYOGRE] = sKyogreFormChangeTable,
|
||||||
[SPECIES_KYOGRE_PRIMAL] = sKyogreFormChangeTable,
|
[SPECIES_KYOGRE_PRIMAL] = sKyogreFormChangeTable,
|
||||||
[SPECIES_GROUDON] = sGroudonFormChangeTable,
|
[SPECIES_GROUDON] = sGroudonFormChangeTable,
|
||||||
[SPECIES_GROUDON_PRIMAL] = sGroudonFormChangeTable,
|
[SPECIES_GROUDON_PRIMAL] = sGroudonFormChangeTable,
|
||||||
|
[SPECIES_RAYQUAZA] = sRayquazaFormChangeTable,
|
||||||
|
[SPECIES_RAYQUAZA_MEGA] = sRayquazaFormChangeTable,
|
||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
|
[SPECIES_LOPUNNY] = sLopunnyFormChangeTable,
|
||||||
|
[SPECIES_LOPUNNY_MEGA] = sLopunnyFormChangeTable,
|
||||||
|
[SPECIES_GARCHOMP] = sGarchompFormChangeTable,
|
||||||
|
[SPECIES_GARCHOMP_MEGA] = sGarchompFormChangeTable,
|
||||||
|
[SPECIES_LUCARIO] = sLucarioFormChangeTable,
|
||||||
|
[SPECIES_LUCARIO_MEGA] = sLucarioFormChangeTable,
|
||||||
|
[SPECIES_ABOMASNOW] = sAbomasnowFormChangeTable,
|
||||||
|
[SPECIES_ABOMASNOW_MEGA] = sAbomasnowFormChangeTable,
|
||||||
|
[SPECIES_GALLADE] = sGalladeFormChangeTable,
|
||||||
|
[SPECIES_GALLADE_MEGA] = sGalladeFormChangeTable,
|
||||||
[SPECIES_GIRATINA] = sGiratinaFormChangeTable,
|
[SPECIES_GIRATINA] = sGiratinaFormChangeTable,
|
||||||
[SPECIES_GIRATINA_ORIGIN] = sGiratinaFormChangeTable,
|
[SPECIES_GIRATINA_ORIGIN] = sGiratinaFormChangeTable,
|
||||||
[SPECIES_SHAYMIN] = sShayminFormChangeTable,
|
[SPECIES_SHAYMIN] = sShayminFormChangeTable,
|
||||||
@ -29,6 +119,8 @@ const struct FormChange *const gFormChangeTablePointers[NUM_SPECIES] =
|
|||||||
[SPECIES_ARCEUS_FAIRY] = sArceusFormChangeTable,
|
[SPECIES_ARCEUS_FAIRY] = sArceusFormChangeTable,
|
||||||
#endif
|
#endif
|
||||||
#if P_GEN_5_POKEMON == TRUE
|
#if P_GEN_5_POKEMON == TRUE
|
||||||
|
[SPECIES_AUDINO] = sAudinoFormChangeTable,
|
||||||
|
[SPECIES_AUDINO_MEGA] = sAudinoFormChangeTable,
|
||||||
[SPECIES_DARMANITAN] = sDarmanitanFormChangeTable,
|
[SPECIES_DARMANITAN] = sDarmanitanFormChangeTable,
|
||||||
[SPECIES_DARMANITAN_ZEN_MODE] = sDarmanitanFormChangeTable,
|
[SPECIES_DARMANITAN_ZEN_MODE] = sDarmanitanFormChangeTable,
|
||||||
[SPECIES_DARMANITAN_GALARIAN] = sDarmanitanGalarianFormChangeTable,
|
[SPECIES_DARMANITAN_GALARIAN] = sDarmanitanGalarianFormChangeTable,
|
||||||
@ -56,6 +148,8 @@ const struct FormChange *const gFormChangeTablePointers[NUM_SPECIES] =
|
|||||||
[SPECIES_AEGISLASH_BLADE] = sAegislashFormChangeTable,
|
[SPECIES_AEGISLASH_BLADE] = sAegislashFormChangeTable,
|
||||||
[SPECIES_XERNEAS] = sXerneasFormChangeTable,
|
[SPECIES_XERNEAS] = sXerneasFormChangeTable,
|
||||||
[SPECIES_XERNEAS_ACTIVE] = sXerneasFormChangeTable,
|
[SPECIES_XERNEAS_ACTIVE] = sXerneasFormChangeTable,
|
||||||
|
[SPECIES_DIANCIE] = sDiancieFormChangeTable,
|
||||||
|
[SPECIES_DIANCIE_MEGA] = sDiancieFormChangeTable,
|
||||||
[SPECIES_HOOPA] = sHoopaFormChangeTable,
|
[SPECIES_HOOPA] = sHoopaFormChangeTable,
|
||||||
[SPECIES_HOOPA_UNBOUND] = sHoopaFormChangeTable,
|
[SPECIES_HOOPA_UNBOUND] = sHoopaFormChangeTable,
|
||||||
#endif
|
#endif
|
||||||
|
@ -56,6 +56,274 @@ FORM_CHANGE_PRIMAL_REVERSION:
|
|||||||
#define DAY 1
|
#define DAY 1
|
||||||
#define NIGHT 2
|
#define NIGHT 2
|
||||||
|
|
||||||
|
static const struct FormChange sVenusaurFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_VENUSAUR_MEGA, ITEM_VENUSAURITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_VENUSAUR},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_VENUSAUR},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sCharizardFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_CHARIZARD_MEGA_X, ITEM_CHARIZARDITE_X},
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_CHARIZARD_MEGA_Y, ITEM_CHARIZARDITE_Y},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_CHARIZARD},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_CHARIZARD},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sBlastoiseFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_BLASTOISE_MEGA, ITEM_BLASTOISINITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_BLASTOISE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_BLASTOISE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sBeedrillFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_BEEDRILL_MEGA, ITEM_BEEDRILLITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_BEEDRILL},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_BEEDRILL},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sPidgeotFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_PIDGEOT_MEGA, ITEM_PIDGEOTITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_PIDGEOT},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_PIDGEOT},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sAlakazamFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_ALAKAZAM_MEGA, ITEM_ALAKAZITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_ALAKAZAM},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_ALAKAZAM},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sSlowbroFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_SLOWBRO_MEGA, ITEM_SLOWBRONITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_SLOWBRO},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_SLOWBRO},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sGengarFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_GENGAR_MEGA, ITEM_GENGARITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_GENGAR},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_GENGAR},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sKangaskhanFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_KANGASKHAN_MEGA, ITEM_KANGASKHANITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_KANGASKHAN},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_KANGASKHAN},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sPinsirFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_PINSIR_MEGA, ITEM_PINSIRITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_PINSIR},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_PINSIR},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sGyaradosFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_GYARADOS_MEGA, ITEM_GYARADOSITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_GYARADOS},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_GYARADOS},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sAerodactylFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_AERODACTYL_MEGA, ITEM_AERODACTYLITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_AERODACTYL},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_AERODACTYL},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sMewtwoFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_MEWTWO_MEGA_X, ITEM_MEWTWONITE_X},
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_MEWTWO_MEGA_Y, ITEM_MEWTWONITE_Y},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_MEWTWO},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_MEWTWO},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sAmpharosFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_AMPHAROS_MEGA, ITEM_AMPHAROSITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_AMPHAROS},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_AMPHAROS},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sSteelixFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_STEELIX_MEGA, ITEM_STEELIXITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_STEELIX},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_STEELIX},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sScizorFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_SCIZOR_MEGA, ITEM_SCIZORITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_SCIZOR},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_SCIZOR},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sHeracrossFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_HERACROSS_MEGA, ITEM_HERACRONITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_HERACROSS},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_HERACROSS},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sHoundoomFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_HOUNDOOM_MEGA, ITEM_HOUNDOOMINITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_HOUNDOOM},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_HOUNDOOM},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sTyranitarFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_TYRANITAR_MEGA, ITEM_TYRANITARITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_TYRANITAR},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_TYRANITAR},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sSceptileFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_SCEPTILE_MEGA, ITEM_SCEPTILITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_SCEPTILE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_SCEPTILE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sBlazikenFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_BLAZIKEN_MEGA, ITEM_BLAZIKENITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_BLAZIKEN},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_BLAZIKEN},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sSwampertFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_SWAMPERT_MEGA, ITEM_SWAMPERTITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_SWAMPERT},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_SWAMPERT},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sSableyeFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_SABLEYE_MEGA, ITEM_SABLENITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_SABLEYE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_SABLEYE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sSharpedoFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_SHARPEDO_MEGA, ITEM_SHARPEDONITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_SHARPEDO},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_SHARPEDO},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sManectricFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_MANECTRIC_MEGA, ITEM_MANECTITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_MANECTRIC},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_MANECTRIC},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sCameruptFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_CAMERUPT_MEGA, ITEM_CAMERUPTITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_CAMERUPT},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_CAMERUPT},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sGlalieFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_GLALIE_MEGA, ITEM_GLALITITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_GLALIE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_GLALIE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sMawileFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_MAWILE_MEGA, ITEM_MAWILITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_MAWILE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_MAWILE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sMedichamFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_MEDICHAM_MEGA, ITEM_MEDICHAMITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_MEDICHAM},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_MEDICHAM},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sAltariaFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_ALTARIA_MEGA, ITEM_ALTARIANITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_ALTARIA},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_ALTARIA},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sAbsolFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_ABSOL_MEGA, ITEM_ABSOLITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_ABSOL},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_ABSOL},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sBanetteFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_BANETTE_MEGA, ITEM_BANETTITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_BANETTE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_BANETTE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sAggronFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_AGGRON_MEGA, ITEM_AGGRONITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_AGGRON},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_AGGRON},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sGardevoirFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_GARDEVOIR_MEGA, ITEM_GARDEVOIRITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_GARDEVOIR},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_GARDEVOIR},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sSalamenceFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_SALAMENCE_MEGA, ITEM_SALAMENCITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_SALAMENCE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_SALAMENCE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sMetagrossFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_METAGROSS_MEGA, ITEM_METAGROSSITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_METAGROSS},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_METAGROSS},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sLatiasFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_LATIAS_MEGA, ITEM_LATIASITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_LATIAS},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_LATIAS},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sLatiosFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_LATIOS_MEGA, ITEM_LATIOSITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_LATIOS},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_LATIOS},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
static const struct FormChange sKyogreFormChangeTable[] = {
|
static const struct FormChange sKyogreFormChangeTable[] = {
|
||||||
{FORM_CHANGE_PRIMAL_REVERSION, SPECIES_KYOGRE_PRIMAL, ITEM_BLUE_ORB},
|
{FORM_CHANGE_PRIMAL_REVERSION, SPECIES_KYOGRE_PRIMAL, ITEM_BLUE_ORB},
|
||||||
{FORM_CHANGE_BATTLE_END, SPECIES_KYOGRE},
|
{FORM_CHANGE_BATTLE_END, SPECIES_KYOGRE},
|
||||||
@ -68,7 +336,49 @@ static const struct FormChange sGroudonFormChangeTable[] = {
|
|||||||
{FORM_CHANGE_END},
|
{FORM_CHANGE_END},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sRayquazaFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_MOVE, SPECIES_RAYQUAZA_MEGA, MOVE_DRAGON_ASCENT},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_RAYQUAZA},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_RAYQUAZA},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
#if P_GEN_4_POKEMON == TRUE
|
#if P_GEN_4_POKEMON == TRUE
|
||||||
|
static const struct FormChange sLopunnyFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_LOPUNNY_MEGA, ITEM_LOPUNNITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_LOPUNNY},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_LOPUNNY},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sGarchompFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_GARCHOMP_MEGA, ITEM_GARCHOMPITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_GARCHOMP},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_GARCHOMP},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sLucarioFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_LUCARIO_MEGA, ITEM_LUCARIONITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_LUCARIO},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_LUCARIO},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sAbomasnowFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_ABOMASNOW_MEGA, ITEM_ABOMASITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_ABOMASNOW},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_ABOMASNOW},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sGalladeFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_GALLADE_MEGA, ITEM_GALLADITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_GALLADE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_GALLADE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
static const struct FormChange sGiratinaFormChangeTable[] = {
|
static const struct FormChange sGiratinaFormChangeTable[] = {
|
||||||
{FORM_CHANGE_ITEM_HOLD, SPECIES_GIRATINA, ITEM_NONE},
|
{FORM_CHANGE_ITEM_HOLD, SPECIES_GIRATINA, ITEM_NONE},
|
||||||
{FORM_CHANGE_ITEM_HOLD, SPECIES_GIRATINA_ORIGIN, ITEM_GRISEOUS_ORB},
|
{FORM_CHANGE_ITEM_HOLD, SPECIES_GIRATINA_ORIGIN, ITEM_GRISEOUS_ORB},
|
||||||
@ -122,6 +432,12 @@ static const struct FormChange sArceusFormChangeTable[] = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if P_GEN_5_POKEMON == TRUE
|
#if P_GEN_5_POKEMON == TRUE
|
||||||
|
static const struct FormChange sAudinoFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_AUDINO_MEGA, ITEM_AUDINITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_AUDINO},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_AUDINO},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
static const struct FormChange sDarmanitanFormChangeTable[] = {
|
static const struct FormChange sDarmanitanFormChangeTable[] = {
|
||||||
{FORM_CHANGE_BATTLE_SWITCH, SPECIES_DARMANITAN},
|
{FORM_CHANGE_BATTLE_SWITCH, SPECIES_DARMANITAN},
|
||||||
@ -197,6 +513,13 @@ static const struct FormChange sXerneasFormChangeTable[] = {
|
|||||||
{FORM_CHANGE_END},
|
{FORM_CHANGE_END},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct FormChange sDiancieFormChangeTable[] = {
|
||||||
|
{FORM_CHANGE_MEGA_EVOLUTION_ITEM, SPECIES_DIANCIE_MEGA, ITEM_DIANCITE},
|
||||||
|
{FORM_CHANGE_FAINT, SPECIES_DIANCIE},
|
||||||
|
{FORM_CHANGE_BATTLE_END, SPECIES_DIANCIE},
|
||||||
|
{FORM_CHANGE_END},
|
||||||
|
};
|
||||||
|
|
||||||
static const struct FormChange sHoopaFormChangeTable[] = {
|
static const struct FormChange sHoopaFormChangeTable[] = {
|
||||||
{FORM_CHANGE_ITEM_USE, SPECIES_HOOPA_UNBOUND, ITEM_PRISON_BOTTLE, SPECIES_HOOPA},
|
{FORM_CHANGE_ITEM_USE, SPECIES_HOOPA_UNBOUND, ITEM_PRISON_BOTTLE, SPECIES_HOOPA},
|
||||||
{FORM_CHANGE_WITHDRAW, SPECIES_HOOPA},
|
{FORM_CHANGE_WITHDRAW, SPECIES_HOOPA},
|
||||||
|
Loading…
Reference in New Issue
Block a user