summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeokishisu <edsaletto@gmail.com>2018-05-16 21:39:43 -0400
committerGitHub <noreply@github.com>2018-05-16 21:39:43 -0400
commit9f66fe082bd5745a59ec703fd4dc912af7b4bb85 (patch)
treeba44c65278239f4d476df01e41d99631194c957f /src
parentbc4bff6cda425998598bbd119d59af2f522d9656 (diff)
Update daycare.c to use EGG_HATCH_LEVEL define
To be consistent with pokeemerald.
Diffstat (limited to 'src')
-rw-r--r--src/daycare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daycare.c b/src/daycare.c
index a77b6c5f5..5220a3738 100644
--- a/src/daycare.c
+++ b/src/daycare.c
@@ -1036,7 +1036,7 @@ void CreateEgg(struct Pokemon *mon, u16 species, bool8 setMetLocation)
u8 metLocation;
u8 isEgg;
- CreateMon(mon, species, 5, 0x20, FALSE, 0, FALSE, 0);
+ CreateMon(mon, species, EGG_HATCH_LEVEL, 0x20, FALSE, 0, FALSE, 0);
metLevel = 0;
ball = ITEM_POKE_BALL;
language = LANGUAGE_JAPANESE;
@@ -1063,7 +1063,7 @@ static void SetInitialEggData(struct Pokemon *mon, u16 species, struct DayCare *
u8 language;
personality = daycare->misc.countersEtc.pendingEggPersonality | (Random() << 16);
- CreateMon(mon, species, 5, 0x20, TRUE, personality, FALSE, 0);
+ CreateMon(mon, species, EGG_HATCH_LEVEL, 0x20, TRUE, personality, FALSE, 0);
metLevel = 0;
ball = ITEM_POKE_BALL;
language = LANGUAGE_JAPANESE;