summaryrefslogtreecommitdiff
path: root/src/daycare.c
diff options
context:
space:
mode:
authorSphericalIce <sphericalice@outlook.com>2021-01-07 22:13:14 +0000
committerSphericalIce <sphericalice@outlook.com>2021-01-07 22:13:14 +0000
commit3c2a33b9b25b3bba33c29a10e66d5256b10c537d (patch)
tree6613f51b25ebf67aa75405caa92f0e9e873b0d90 /src/daycare.c
parentfb69d97b24209cb7828a49b29ab1fb30c9baa02f (diff)
Use constants for max IVs & the random IV generation flag
Diffstat (limited to 'src/daycare.c')
-rw-r--r--src/daycare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daycare.c b/src/daycare.c
index 511fa0551..2a1efefcc 100644
--- a/src/daycare.c
+++ b/src/daycare.c
@@ -838,7 +838,7 @@ void CreateEgg(struct Pokemon *mon, u16 species, bool8 setHotSpringsLocation)
u8 metLocation;
u8 isEgg;
- CreateMon(mon, species, EGG_HATCH_LEVEL, 32, FALSE, 0, OT_ID_PLAYER_ID, 0);
+ CreateMon(mon, species, EGG_HATCH_LEVEL, USE_RANDOM_IVS, FALSE, 0, OT_ID_PLAYER_ID, 0);
metLevel = 0;
ball = ITEM_POKE_BALL;
language = LANGUAGE_JAPANESE;
@@ -865,7 +865,7 @@ static void SetInitialEggData(struct Pokemon *mon, u16 species, struct DayCare *
u8 language;
personality = daycare->offspringPersonality;
- CreateMon(mon, species, EGG_HATCH_LEVEL, 32, TRUE, personality, OT_ID_PLAYER_ID, 0);
+ CreateMon(mon, species, EGG_HATCH_LEVEL, USE_RANDOM_IVS, TRUE, personality, OT_ID_PLAYER_ID, 0);
metLevel = 0;
ball = ITEM_POKE_BALL;
language = LANGUAGE_JAPANESE;