Disabled booster set selection in Quest mode until it can be restricted somehow.

This commit is contained in:
RumbleBBU
2012-10-03 17:51:49 +00:00
parent f64c03d1dc
commit fdf707595d

View File

@@ -553,15 +553,21 @@ public class QuestWinLoseHandler extends ControlWinLose {
*/ */
private void awardBooster() { private void awardBooster() {
// Do not enable booster selection in this way...
final boolean allowSetSelection = false;
final List<String> boosterTypes = new ArrayList<String>(); final List<String> boosterTypes = new ArrayList<String>();
boosterTypes.add("Format"); boosterTypes.add("Format");
boosterTypes.add("Set"); boosterTypes.add("Set");
final String prompt = "Choose bonus booster type:"; final String prompt = "Choose bonus booster type:";
final Object o = GuiChoose.one(prompt, boosterTypes); final Object o = null;
if (allowSetSelection) {
GuiChoose.one(prompt, boosterTypes);
}
List<CardPrinted> cardsWon = null; List<CardPrinted> cardsWon = null;
if (o.toString().equals(boosterTypes.get(0))) { if (o == null || o.toString().equals(boosterTypes.get(0))) {
final List<GameFormat> formats = new ArrayList<GameFormat>(); final List<GameFormat> formats = new ArrayList<GameFormat>();
String prefferedFormat = Singletons.getModel().getQuestPreferences().getPreference(QPref.BOOSTER_FORMAT); String prefferedFormat = Singletons.getModel().getQuestPreferences().getPreference(QPref.BOOSTER_FORMAT);