Use constants for max IVs & the random IV generation flag
This commit is contained in:
+2
-2
@@ -379,7 +379,7 @@ static void CB2_CreateTradeMenu(void)
|
||||
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
CreateMon(&gEnemyParty[i], SPECIES_NONE, 0, 32, FALSE, 0, OT_ID_PLAYER_ID, 0);
|
||||
CreateMon(&gEnemyParty[i], SPECIES_NONE, 0, USE_RANDOM_IVS, FALSE, 0, OT_ID_PLAYER_ID, 0);
|
||||
}
|
||||
|
||||
PrintTradeMessage(TRADE_MSG_STANDBY);
|
||||
@@ -4436,7 +4436,7 @@ static void _CreateInGameTradePokemon(u8 whichPlayerMon, u8 whichInGameTrade)
|
||||
u8 isMail;
|
||||
struct Pokemon *pokemon = &gEnemyParty[0];
|
||||
|
||||
CreateMon(pokemon, inGameTrade->species, level, 32, TRUE, inGameTrade->personality, OT_ID_PRESET, inGameTrade->otId);
|
||||
CreateMon(pokemon, inGameTrade->species, level, USE_RANDOM_IVS, TRUE, inGameTrade->personality, OT_ID_PRESET, inGameTrade->otId);
|
||||
|
||||
SetMonData(pokemon, MON_DATA_HP_IV, &inGameTrade->ivs[0]);
|
||||
SetMonData(pokemon, MON_DATA_ATK_IV, &inGameTrade->ivs[1]);
|
||||
|
||||
Reference in New Issue
Block a user