diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-05-27 16:41:23 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2020-05-27 16:41:23 -0400 |
commit | e27c3d2abdce7e88e6110e5633a4c88f4065799b (patch) | |
tree | b2d297bd290ad83998c6a8c8c9c0a4d9e5ebb907 /src/daycare.c | |
parent | 79a1127122d060a821afb941f53485ae714b5f60 (diff) |
Clear up misleading egg step name
Diffstat (limited to 'src/daycare.c')
-rw-r--r-- | src/daycare.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/daycare.c b/src/daycare.c index dcbadeba8..5d4480403 100644 --- a/src/daycare.c +++ b/src/daycare.c @@ -892,11 +892,11 @@ static bool8 TryProduceOrHatchEgg(struct DayCare *daycare) TriggerPendingDaycareEgg(); } - // Hatch Egg + // Try to hatch Egg if (++daycare->stepCounter == 255) { - u32 steps; - u8 toSub = GetEggStepsToSubtract(); + u32 eggCycles; + u8 toSub = GetEggCyclesToSubtract(); for (i = 0; i < gPlayerPartyCount; i++) { @@ -905,15 +905,15 @@ static bool8 TryProduceOrHatchEgg(struct DayCare *daycare) if (GetMonData(&gPlayerParty[i], MON_DATA_SANITY_IS_BAD_EGG)) continue; - steps = GetMonData(&gPlayerParty[i], MON_DATA_FRIENDSHIP); - if (steps != 0) + eggCycles = GetMonData(&gPlayerParty[i], MON_DATA_FRIENDSHIP); + if (eggCycles != 0) { - if (steps >= toSub) - steps -= toSub; + if (eggCycles >= toSub) + eggCycles -= toSub; else - steps -= 1; + eggCycles -= 1; - SetMonData(&gPlayerParty[i], MON_DATA_FRIENDSHIP, &steps); + SetMonData(&gPlayerParty[i], MON_DATA_FRIENDSHIP, &eggCycles); } else { |