diff options
author | tom-overton <tom.overton@outlook.com> | 2020-11-15 22:40:32 -0800 |
---|---|---|
committer | tom-overton <tom.overton@outlook.com> | 2020-11-15 22:40:32 -0800 |
commit | e1f7006aa4b379834915d4770b0068fac18a2cb8 (patch) | |
tree | e7588bc64fb851ac1da5be6f66d8981126b1ea17 /src/com/dabomstew/pkrandom/romhandlers | |
parent | daf1e7f613c5bf948a0f405e5321b9b7ebc33428 (diff) |
Add feature to select which EXP curve is used for Standardize EXP Curves
Diffstat (limited to 'src/com/dabomstew/pkrandom/romhandlers')
-rwxr-xr-x | src/com/dabomstew/pkrandom/romhandlers/AbstractRomHandler.java | 8 | ||||
-rwxr-xr-x | src/com/dabomstew/pkrandom/romhandlers/RomHandler.java | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/com/dabomstew/pkrandom/romhandlers/AbstractRomHandler.java b/src/com/dabomstew/pkrandom/romhandlers/AbstractRomHandler.java index 9cf21c6..182b4a5 100755 --- a/src/com/dabomstew/pkrandom/romhandlers/AbstractRomHandler.java +++ b/src/com/dabomstew/pkrandom/romhandlers/AbstractRomHandler.java @@ -4382,7 +4382,7 @@ public abstract class AbstractRomHandler implements RomHandler { }
@Override
- public void standardizeEXPCurves(Settings.ExpCurveMod mod) {
+ public void standardizeEXPCurves(Settings.ExpCurveMod mod, ExpCurve expCurve) {
List<Pokemon> pokes = getPokemonInclFormes();
switch (mod) {
case LEGENDARIES:
@@ -4390,7 +4390,7 @@ public abstract class AbstractRomHandler implements RomHandler { if (pkmn == null) {
continue;
}
- pkmn.growthCurve = pkmn.isLegendary() ? ExpCurve.SLOW : ExpCurve.MEDIUM_FAST;
+ pkmn.growthCurve = pkmn.isLegendary() ? ExpCurve.SLOW : expCurve;
}
break;
case STRONG_LEGENDARIES:
@@ -4398,7 +4398,7 @@ public abstract class AbstractRomHandler implements RomHandler { if (pkmn == null) {
continue;
}
- pkmn.growthCurve = pkmn.isStrongLegendary() ? ExpCurve.SLOW : ExpCurve.MEDIUM_FAST;
+ pkmn.growthCurve = pkmn.isStrongLegendary() ? ExpCurve.SLOW : expCurve;
}
break;
case ALL:
@@ -4406,7 +4406,7 @@ public abstract class AbstractRomHandler implements RomHandler { if (pkmn == null) {
continue;
}
- pkmn.growthCurve = ExpCurve.MEDIUM_FAST;
+ pkmn.growthCurve = expCurve;
}
break;
}
diff --git a/src/com/dabomstew/pkrandom/romhandlers/RomHandler.java b/src/com/dabomstew/pkrandom/romhandlers/RomHandler.java index f0d0346..d70c935 100755 --- a/src/com/dabomstew/pkrandom/romhandlers/RomHandler.java +++ b/src/com/dabomstew/pkrandom/romhandlers/RomHandler.java @@ -479,7 +479,7 @@ public interface RomHandler { // stats stuff
void minimumCatchRate(int rateNonLegendary, int rateLegendary);
- void standardizeEXPCurves(Settings.ExpCurveMod mod);
+ void standardizeEXPCurves(Settings.ExpCurveMod mod, ExpCurve expCurve);
// (Mostly) unchanging lists of moves
|