summaryrefslogtreecommitdiff
path: root/src/script_pokemon_util.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-01-07 18:00:10 -0500
committerGitHub <noreply@github.com>2021-01-07 18:00:10 -0500
commit42a0b20e57f7947f5ccfd61b12fdb71ef1891950 (patch)
tree1c730449a2b91fd05dba577489814ca6faa6892a /src/script_pokemon_util.c
parentc506cf747fa2e0a0eaff428cfd28ada7ffa58b67 (diff)
parentf02afc134b206b82bd5c73885d0ee9d8855df90a (diff)
Merge pull request #1295 from sphericalice/pokeemerald
Use constants for IV-related values
Diffstat (limited to 'src/script_pokemon_util.c')
-rwxr-xr-xsrc/script_pokemon_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script_pokemon_util.c b/src/script_pokemon_util.c
index c9a2127ac..ad1a55230 100755
--- a/src/script_pokemon_util.c
+++ b/src/script_pokemon_util.c
@@ -66,7 +66,7 @@ u8 ScriptGiveMon(u16 species, u8 level, u16 item, u32 unused1, u32 unused2, u8 u
u8 heldItem[2];
struct Pokemon mon;
- CreateMon(&mon, species, level, 32, 0, 0, OT_ID_PLAYER_ID, 0);
+ CreateMon(&mon, species, level, USE_RANDOM_IVS, 0, 0, OT_ID_PLAYER_ID, 0);
heldItem[0] = item;
heldItem[1] = item >> 8;
SetMonData(&mon, MON_DATA_HELD_ITEM, heldItem);
@@ -139,7 +139,7 @@ void CreateScriptedWildMon(u16 species, u8 level, u16 item)
u8 heldItem[2];
ZeroEnemyPartyMons();
- CreateMon(&gEnemyParty[0], species, level, 32, 0, 0, OT_ID_PLAYER_ID, 0);
+ CreateMon(&gEnemyParty[0], species, level, USE_RANDOM_IVS, 0, 0, OT_ID_PLAYER_ID, 0);
if (item)
{
heldItem[0] = item;