summaryrefslogtreecommitdiff
path: root/src/com/sneed
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/sneed')
-rw-r--r--src/com/sneed/pkrandom/Randomizer.java1
-rw-r--r--src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java4
-rwxr-xr-xsrc/com/sneed/pkrandom/romhandlers/AbstractRomHandler.java1
3 files changed, 2 insertions, 4 deletions
diff --git a/src/com/sneed/pkrandom/Randomizer.java b/src/com/sneed/pkrandom/Randomizer.java
index 86462c1..a5622a3 100644
--- a/src/com/sneed/pkrandom/Randomizer.java
+++ b/src/com/sneed/pkrandom/Randomizer.java
@@ -479,6 +479,7 @@ public class Randomizer {
if (settings.isBetterTrainerMovesets()) {
romHandler.pickTrainerMovesets(settings);
+ trainersChanged = true;
trainerMovesetsChanged = true;
}
diff --git a/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java b/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
index 7e8a1d6..0ab9245 100644
--- a/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
+++ b/src/com/sneed/pkrandom/newgui/NewRandomizerGUI.java
@@ -2683,6 +2683,7 @@ public class NewRandomizerGUI {
tpNoEarlyWonderGuardCheckBox.setVisible(pokemonGeneration >= 3);
tpRandomShinyTrainerPokemonCheckBox.setVisible(pokemonGeneration >= 7);
tpBetterMovesetsCheckBox.setVisible(pokemonGeneration >= 3);
+ tpBetterMovesetsCheckBox.setEnabled(pokemonGeneration >= 3);
totpPanel.setVisible(pokemonGeneration == 7);
if (totpPanel.isVisible()) {
@@ -3129,8 +3130,6 @@ public class NewRandomizerGUI {
tpSwapMegaEvosCheckBox.setSelected(false);
tpRandomShinyTrainerPokemonCheckBox.setEnabled(false);
tpRandomShinyTrainerPokemonCheckBox.setSelected(false);
- tpBetterMovesetsCheckBox.setEnabled(false);
- tpBetterMovesetsCheckBox.setSelected(false);
tpDoubleBattleModeCheckBox.setEnabled(false);
tpDoubleBattleModeCheckBox.setSelected(false);
tpBossTrainersCheckBox.setEnabled(false);
@@ -3166,7 +3165,6 @@ public class NewRandomizerGUI {
tpSwapMegaEvosCheckBox.setSelected(false);
}
tpRandomShinyTrainerPokemonCheckBox.setEnabled(true);
- tpBetterMovesetsCheckBox.setEnabled(true);
tpDoubleBattleModeCheckBox.setEnabled(tpDoubleBattleModeCheckBox.isVisible());
tpBossTrainersCheckBox.setEnabled(tpBossTrainersCheckBox.isVisible());
tpImportantTrainersCheckBox.setEnabled(tpImportantTrainersCheckBox.isVisible());
diff --git a/src/com/sneed/pkrandom/romhandlers/AbstractRomHandler.java b/src/com/sneed/pkrandom/romhandlers/AbstractRomHandler.java
index 77223e9..d139998 100755
--- a/src/com/sneed/pkrandom/romhandlers/AbstractRomHandler.java
+++ b/src/com/sneed/pkrandom/romhandlers/AbstractRomHandler.java
@@ -1939,7 +1939,6 @@ public abstract class AbstractRomHandler implements RomHandler {
boolean giveToImportantPokemon = settings.isRandomizeHeldItemsForImportantTrainerPokemon();
boolean giveToRegularPokemon = settings.isRandomizeHeldItemsForRegularTrainerPokemon();
boolean highestLevelOnly = settings.isHighestLevelGetsItemsForTrainers();
- boolean betterMovesets = settings.isBetterTrainerMovesets();
List<Move> moves = this.getMoves();
Map<Integer, List<MoveLearnt>> movesets = this.getMovesLearnt();