mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Select pet must use an English string to store pet selection
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -115,7 +115,8 @@ public class QuestStatsScreen extends FScreen {
|
||||
cbPlant.setCommand(new FEventHandler() {
|
||||
@Override
|
||||
public void handleEvent(FEvent e) {
|
||||
FModel.getQuest().selectPet(0, cbPlant.isSelected() ? Forge.getLocalizer().getMessage("lblPlant") : null);
|
||||
// This can't be translated. As the English string "Plant" is used to find the Plant pet.
|
||||
FModel.getQuest().selectPet(0, cbPlant.isSelected() ? "Plant" : null);
|
||||
FModel.getQuest().save();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user