From e3c249eba6830c46af44f4786969e24c2ce1d370 Mon Sep 17 00:00:00 2001 From: tom-overton Date: Fri, 30 Dec 2022 22:24:22 -0800 Subject: Fix issue where Update Base Stats didn't allow you to select Gen 9 in certain games --- src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java | 6 +++--- 1 file 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++; -- cgit v1.2.3