mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-22 20:49:36 +07:00
Resolved #613 - policy choice & city conquer collision
This commit is contained in:
parent
38f732b461
commit
b0830ba487
@ -219,6 +219,9 @@ class WorldScreen : CameraStageBaseScreen() {
|
||||
private fun createNextTurnButton(): TextButton {
|
||||
val nextTurnButton = TextButton("Next turn".tr(), CameraStageBaseScreen.skin)
|
||||
nextTurnButton.onClick {
|
||||
if(currentPlayerCiv.policies.shouldOpenPolicyPicker && !currentPlayerCiv.policies.canAdoptPolicy())
|
||||
currentPlayerCiv.policies.shouldOpenPolicyPicker = false // something has chanhed and we can no longer adopt the policy, e.g. we conquered another city
|
||||
|
||||
if (currentPlayerCiv.tech.freeTechs != 0) {
|
||||
game.screen = TechPickerScreen(true, currentPlayerCiv)
|
||||
return@onClick
|
||||
|
Loading…
Reference in New Issue
Block a user