diff options
author | tom-overton <tom.overton@outlook.com> | 2021-01-07 11:30:16 -0800 |
---|---|---|
committer | tom-overton <tom.overton@outlook.com> | 2021-01-07 11:30:16 -0800 |
commit | 52d6ce5c7678e221a486e36960e7e4ba20b5d157 (patch) | |
tree | e44b4a9318cedd651a4b05dc266dd2108bfb4b85 /src | |
parent | 2c201f9a4546b0724638367a1f68709be989760f (diff) |
Fix a forgotten check for time-based encounters when only wild levels have been modified
Diffstat (limited to 'src')
-rw-r--r-- | src/com/dabomstew/pkrandom/Randomizer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/dabomstew/pkrandom/Randomizer.java b/src/com/dabomstew/pkrandom/Randomizer.java index 75c2ea9..d6547e5 100644 --- a/src/com/dabomstew/pkrandom/Randomizer.java +++ b/src/com/dabomstew/pkrandom/Randomizer.java @@ -463,7 +463,9 @@ public class Randomizer { }
maybeLogWildPokemonChanges(log, romHandler);
- List<EncounterSet> encounters = romHandler.getEncounters(settings.isUseTimeBasedEncounters());
+ boolean useTimeBasedEncounters = settings.isUseTimeBasedEncounters() ||
+ (settings.getWildPokemonMod() == Settings.WildPokemonMod.UNCHANGED && settings.isWildLevelsModified());
+ List<EncounterSet> encounters = romHandler.getEncounters(useTimeBasedEncounters);
for (EncounterSet es : encounters) {
for (Encounter e : es.encounters) {
checkValue = addToCV(checkValue, e.level, e.pokemon.number);
|