Removed ability to concede for AI in tournaments.

Rewrote booster configuration selection for tournaments.
Minor balance adjustments for tournaments.
This commit is contained in:
Krazy
2014-06-05 20:37:15 +00:00
parent 7fe6732684
commit 6e2a9be30d
3 changed files with 46 additions and 74 deletions

View File

@@ -21,6 +21,7 @@ public class QuestDraftUtils {
private static List<DraftMatchup> matchups = new ArrayList<DraftMatchup>();
public static boolean matchInProgress = false;
public static boolean aiMatchInProgress = false;
private static boolean waitForUserInput = false;
public static void continueMatch(Game lastGame) {
@@ -148,6 +149,9 @@ public class QuestDraftUtils {
public static void update() {
if (matchups.isEmpty()) {
if (!matchInProgress) {
aiMatchInProgress = false;
}
return;
}
@@ -176,8 +180,10 @@ public class QuestDraftUtils {
if (!nextMatch.hasHumanPlayer) {
GuiBase.getInterface().disableOverlay();
waitForUserInput = false;
aiMatchInProgress = true;
} else {
waitForUserInput = true;
aiMatchInProgress = false;
}
GuiBase.getInterface().startMatch(GameType.QuestDraft, nextMatch.matchStarter);

View File

@@ -44,6 +44,7 @@ import forge.item.InventoryItem;
import forge.menus.IMenuProvider;
import forge.model.FModel;
import forge.properties.ForgePreferences.FPref;
import forge.screens.home.quest.QuestDraftUtils;
import forge.screens.match.controllers.*;
import forge.screens.match.menus.CMatchUIMenus;
import forge.screens.match.views.*;
@@ -475,7 +476,7 @@ public enum CMatchUI implements ICDoc, IMenuProvider {
/** Concede game, bring up WinLose UI. */
public void concede() {
if (FOverlay.SINGLETON_INSTANCE.getPanel().isShowing()) {
if (FOverlay.SINGLETON_INSTANCE.getPanel().isShowing() || QuestDraftUtils.aiMatchInProgress) {
return;
}