summaryrefslogtreecommitdiff
path: root/src/com/sneed/pkrandom
diff options
context:
space:
mode:
authortom-overton <tom.overton@outlook.com>2022-12-30 22:24:22 -0800
committerRafael Marçalo <raroma09@gmail.com>2023-01-03 14:55:08 +0000
commite3c249eba6830c46af44f4786969e24c2ce1d370 (patch)
tree93d8b071f170df9182c8b80552516c8196839766 /src/com/sneed/pkrandom
parent607a03188f864185c10ed74a7bdb8fe366aa809e (diff)
Fix issue where Update Base Stats didn't allow you to select Gen 9 in certain games
Diffstat (limited to 'src/com/sneed/pkrandom')
-rw-r--r--src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java b/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
index 0ab9245..882e485 100644
--- a/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
+++ b/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
@@ -2507,7 +2507,7 @@ public class NewRandomizerGUI {
pbsStandardizeEXPCurvesCheckBox.setEnabled(true);
pbsLegendariesSlowRadioButton.setSelected(true);
- pbsUpdateBaseStatsCheckBox.setEnabled(pokemonGeneration < 8);
+ pbsUpdateBaseStatsCheckBox.setEnabled(pokemonGeneration < GlobalConstants.HIGHEST_POKEMON_GEN);
pbsFollowMegaEvosCheckBox.setVisible(romHandler.hasMegaEvolutions());
pbsUpdateComboBox.setVisible(pokemonGeneration < 8);
ExpCurve[] expCurves = getEXPCurvesForGeneration(pokemonGeneration);
@@ -3553,8 +3553,8 @@ public class NewRandomizerGUI {
spComboBox3.setSelectedIndex(allPokes.indexOf(currentStarters.get(2)));
}
- String[] baseStatGenerationNumbers = new String[Math.min(3, GlobalConstants.HIGHEST_POKEMON_GEN - romHandler.generationOfPokemon())];
- int j = Math.max(6,romHandler.generationOfPokemon() + 1);
+ String[] baseStatGenerationNumbers = new String[Math.min(4, GlobalConstants.HIGHEST_POKEMON_GEN - romHandler.generationOfPokemon())];
+ int j = Math.max(6, romHandler.generationOfPokemon() + 1);
for (int i = 0; i < baseStatGenerationNumbers.length; i++) {
baseStatGenerationNumbers[i] = String.valueOf(j);
j++;