From 9757cae0983cda1f09a9e8a3788d42e85de48082 Mon Sep 17 00:00:00 2001 From: Oskar Niesen Date: Wed, 29 May 2024 15:59:04 -0500 Subject: [PATCH] Removed espionage debug setting (#11658) --- core/src/com/unciv/models/metadata/GameSettings.kt | 2 -- core/src/com/unciv/ui/popups/options/DebugTab.kt | 3 --- .../src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt | 3 +-- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/core/src/com/unciv/models/metadata/GameSettings.kt b/core/src/com/unciv/models/metadata/GameSettings.kt index 5abeed1030b0c..a2864af862a40 100644 --- a/core/src/com/unciv/models/metadata/GameSettings.kt +++ b/core/src/com/unciv/models/metadata/GameSettings.kt @@ -96,8 +96,6 @@ class GameSettings { var autoPlay = GameSettingsAutoPlay() - var enableEspionageOption = false - // This is a string not an enum so if tabs change it won't screw up the json serialization var lastOverviewPage = EmpireOverviewCategories.Cities.name diff --git a/core/src/com/unciv/ui/popups/options/DebugTab.kt b/core/src/com/unciv/ui/popups/options/DebugTab.kt index 57b62bad1c317..7cc4ce1ab6ddc 100644 --- a/core/src/com/unciv/ui/popups/options/DebugTab.kt +++ b/core/src/com/unciv/ui/popups/options/DebugTab.kt @@ -64,9 +64,6 @@ fun debugTab( curGameInfo.gameParameters.godMode = it }).colspan(2).row() } - add("Enable espionage option".toCheckBox(game.settings.enableEspionageOption) { - game.settings.enableEspionageOption = it - }).colspan(2).row() add("Save games compressed".toCheckBox(UncivFiles.saveZipped) { UncivFiles.saveZipped = it diff --git a/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt b/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt index c378a6fd36203..e1543a86706cb 100644 --- a/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt +++ b/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt @@ -121,8 +121,7 @@ class GameOptionsTable( it.addRagingBarbariansCheckbox() it.addOneCityChallengeCheckbox() it.addNuclearWeaponsCheckbox() - if (UncivGame.Current.settings.enableEspionageOption) - it.addEnableEspionageCheckbox() + it.addEnableEspionageCheckbox() it.addNoStartBiasCheckbox() it.addRandomPlayersCheckbox() it.addRandomCityStatesCheckbox()