mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
Fix next-turn not offering Policy Picker for free Policies (#9963)
This commit is contained in:
parent
cfd22621ee
commit
88449a819b
@ -54,7 +54,8 @@ enum class NextTurnAction(protected val text: String, val color: Color) {
|
||||
},
|
||||
PickPolicy("Pick a policy", Color.VIOLET) {
|
||||
override fun isChoice(worldScreen: WorldScreen) =
|
||||
worldScreen.viewingCiv.policies.shouldOpenPolicyPicker
|
||||
worldScreen.viewingCiv.policies.shouldOpenPolicyPicker ||
|
||||
worldScreen.viewingCiv.policies.freePolicies > 0 && worldScreen.viewingCiv.policies.canAdoptPolicy()
|
||||
override fun action(worldScreen: WorldScreen) {
|
||||
worldScreen.game.pushScreen(PolicyPickerScreen(worldScreen.selectedCiv, worldScreen.canChangeState))
|
||||
worldScreen.viewingCiv.policies.shouldOpenPolicyPicker = false
|
||||
|
Loading…
Reference in New Issue
Block a user