- Quest Draft Tournaments always run in "Simulate AI vs. AI Results" mode on mobile Forge, since this is the only mode that works correctly on Mobile without hanging the game (temporarily removed the relevant setting from Mobile Forge preferences page not to confuse the player).

- If QDTs are improved to the degree where non-simulated matches can run correctly, this functionality can be restored.
This commit is contained in:
Agetian
2017-05-19 15:47:37 +00:00
parent bbd6b3d8ea
commit 306f797bf2
4 changed files with 6 additions and 5 deletions

View File

@@ -92,8 +92,9 @@ public class QuestPrefsScreen extends FScreen {
scroller.add(new PrefsOption("Playset Size: Any Number", QPref.PLAYSET_ANY_NUMBER_SIZE, PrefsGroup.SHOP));
//Quest Draft Tournament Preferences
scroller.add(new PrefsHeader("Quest Draft Tournaments", FSkinImage.QUEST_NOTES, PrefsGroup.DIFFICULTY_EXPERT));
scroller.add(new PrefsOption("Simulate AI vs. AI Results", QPref.SIMULATE_AI_VS_AI_RESULTS, PrefsGroup.DRAFT_TOURNAMENTS));
//NOTE: -- currently this setting is ignored since only the AI vs. AI Simulation mode can be used on mobile without hanging the game.
//scroller.add(new PrefsHeader("Quest Draft Tournaments", FSkinImage.QUEST_NOTES, PrefsGroup.DIFFICULTY_ALL));
//scroller.add(new PrefsOption("Simulate AI vs. AI Results", QPref.SIMULATE_AI_VS_AI_RESULTS, PrefsGroup.DRAFT_TOURNAMENTS));
//Difficulty Adjustments (All)
scroller.add(new PrefsHeader("Difficulty Adjustments (All)", FSkinImage.QUEST_NOTES, PrefsGroup.DIFFICULTY_ALL));

View File

@@ -251,7 +251,7 @@ public class QuestTournamentsScreen extends QuestLaunchScreen implements IQuestT
@Override
protected void startMatch() {
if (mode == Mode.TOURNAMENT_ACTIVE && FModel.getQuestPreferences().getPrefInt(QuestPreferences.QPref.SIMULATE_AI_VS_AI_RESULTS) == 1 && QuestDraftUtils.isNextMatchAIvsAI()) {
if (mode == Mode.TOURNAMENT_ACTIVE /*&& FModel.getQuestPreferences().getPrefInt(QuestPreferences.QPref.SIMULATE_AI_VS_AI_RESULTS) == 1*/ && QuestDraftUtils.isNextMatchAIvsAI()) {
// Special handling for simulating AI vs. AI match outcome - do not invoke in background thread (since the match is not played out)
// and instead revalidate right after the outcome is decided in order to refresh the tournament screen.
controller.startNextMatch();

View File

@@ -275,7 +275,7 @@ public class QuestDraftUtils {
if (nextMatch.hasHumanPlayer()) {
waitForUserInput = true;
} else {
if (FModel.getQuestPreferences().getPrefInt(QuestPreferences.QPref.SIMULATE_AI_VS_AI_RESULTS) == 1) {
if (FModel.getQuestPreferences().getPrefInt(QuestPreferences.QPref.SIMULATE_AI_VS_AI_RESULTS) == 1 || GuiBase.getInterface().isLibgdxPort()) {
return;
}
gui.disableOverlay();

View File

@@ -458,7 +458,7 @@ public class QuestTournamentController {
return;
}
if (FModel.getQuestPreferences().getPrefInt(QuestPreferences.QPref.SIMULATE_AI_VS_AI_RESULTS) == 1) {
if (FModel.getQuestPreferences().getPrefInt(QuestPreferences.QPref.SIMULATE_AI_VS_AI_RESULTS) == 1 || GuiBase.getInterface().isLibgdxPort()) {
if (!QuestDraftUtils.injectRandomMatchOutcome(false)) {
gui = GuiBase.getInterface().getNewGuiGame();
QuestDraftUtils.startNextMatch(gui);