Resolved #3586 - Added 'Destroy' translation for capturing cities in one-city challenge

This commit is contained in:
Yair Morgenstern 2021-02-18 13:20:49 +02:00
parent fda3c1053d
commit 36949410a7
2 changed files with 11 additions and 11 deletions

View File

@ -721,6 +721,8 @@ Liberating a city returns it to its original owner, giving you a massive relatio
Raze =
Razing the city annexes it, and starts razing the city to the ground. =
The population will gradually dwindle until the city is destroyed. =
Destroy =
Destroying the city instantly razes the city to the ground. =
Remove your troops in our border immediately! =
Sorry. =
Never! =

View File

@ -75,8 +75,15 @@ class AlertPopup(val worldScreen: WorldScreen, val popupAlert: PopupAlert): Popu
addSeparator()
}
if (!conqueringCiv.isOneCityChallenger()) {
if (conqueringCiv.isOneCityChallenger()) {
add("Destroy".toTextButton().onClick {
city.puppetCity(conqueringCiv)
city.destroyCity()
worldScreen.shouldUpdate = true
close()
}).row()
addGoodSizedLabel("Destroying the city instantly razes the city to the ground.").row()
} else {
add("Annex".toTextButton().onClick {
city.puppetCity(conqueringCiv)
city.annexCity()
@ -111,15 +118,6 @@ class AlertPopup(val worldScreen: WorldScreen, val popupAlert: PopupAlert): Popu
}).row()
addGoodSizedLabel("Razing the city annexes it, and starts razing the city to the ground.").row()
addGoodSizedLabel("The population will gradually dwindle until the city is destroyed.").row()
} else {
add("Destroy".toTextButton().onClick {
city.puppetCity(conqueringCiv)
city.destroyCity()
worldScreen.shouldUpdate = true
close()
}).row()
addGoodSizedLabel("Destroying the city instantly razes the city to the ground.").row()
}
}
AlertType.BorderConflict -> {