Fix missing DiplomaticVotePickerScreen link in NextTurnAction (#9931)

This commit is contained in:
SomeTroglodyte 2023-08-17 15:18:23 +02:00 committed by GitHub
parent e1a44b1076
commit 0e664d943b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ import com.unciv.ui.components.extensions.disable
import com.unciv.ui.components.extensions.enable
import com.unciv.ui.popups.ConfirmPopup
import com.unciv.ui.screens.cityscreen.CityScreen
import com.unciv.ui.screens.pickerscreens.DiplomaticVotePickerScreen
import com.unciv.ui.screens.pickerscreens.PantheonPickerScreen
import com.unciv.ui.screens.pickerscreens.PolicyPickerScreen
import com.unciv.ui.screens.pickerscreens.ReligiousBeliefsPickerScreen
@ -96,6 +97,8 @@ enum class NextTurnAction(protected val text: String, val color: Color) {
WorldCongressVote("Vote for World Leader", Color.MAROON) {
override fun isChoice(worldScreen: WorldScreen) =
worldScreen.viewingCiv.mayVoteForDiplomaticVictory()
override fun action(worldScreen: WorldScreen) =
worldScreen.game.pushScreen(DiplomaticVotePickerScreen(worldScreen.viewingCiv))
},
NextUnit("Next unit", Color.LIGHT_GRAY) {
override fun isChoice(worldScreen: WorldScreen) =