diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-11-17 14:25:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 14:25:36 -0500 |
commit | 0aa06c307b5e465e0ada51cebe3ae2b2759a863f (patch) | |
tree | 7262de2e27972fd7bb9b79bd89ff58afe9f8f782 /src | |
parent | 116fbecbe4dcb7be75221ec2033c397abdb57103 (diff) | |
parent | e5f043ff72d7652f63ee574d9f0acf8f1a8ddbe7 (diff) |
Merge pull request #1251 from ExpoSeed/patch-1
Document bugged IV inheritance difference
Diffstat (limited to 'src')
-rw-r--r-- | src/daycare.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/daycare.c b/src/daycare.c index a438c8e85..fd6ed3a50 100644 --- a/src/daycare.c +++ b/src/daycare.c @@ -548,7 +548,12 @@ static void InheritIVs(struct Pokemon *egg, struct DayCare *daycare) { // Randomly pick an IV from the available list and stop from being chosen again. selectedIvs[i] = availableIVs[Random() % (NUM_STATS - i)]; - RemoveIVIndexFromList(availableIVs, i); + // BUG: Instead of removing the IV that was just picked (like in RS and FRLG), this + // removes position 0 (HP) then position 1 (DEF), then position 2. This is why HP and DEF + // have a lower chance to be inherited in Emerald and why the IV picked for inheritance can + // be repeated. Uncomment the inline comment and remove the existing expression to get the + // intended behavior and to match the other Gen 3 games. + RemoveIVIndexFromList(availableIVs, i /*selectedIvs[i]*/); } // Determine which parent each of the selected IVs should inherit from. |