Select pet must use an English string to store pet selection

This commit is contained in:
friarsol
2023-04-20 18:10:35 -04:00
parent 5defd50ccb
commit 7d5c1bed3c
3 changed files with 5 additions and 3 deletions

View File

@@ -88,8 +88,8 @@ public enum CSubmenuChallenges implements ICDoc {
view.getCbPlant().addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent arg0) {
final Localizer localizer = Localizer.getInstance();
quest.selectPet(0, view.getCbPlant().isSelected() ? localizer.getMessage("lblPlant") : null);
// This can't be translated. As the English string "Plant" is used to find the Plant pet.
quest.selectPet(0, view.getCbPlant().isSelected() ? "Plant" : null);
quest.save();
}
});

View File

@@ -88,6 +88,7 @@ public enum CSubmenuDuels implements ICDoc {
view.getCbPlant().addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent arg0) {
// This can't be translated. As the English string "Plant" is used to find the Plant pet.
quest.selectPet(0, view.getCbPlant().isSelected() ? "Plant" : null);
quest.save();
}