mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
Fix city defeated info.
This commit is contained in:
parent
baed1e50cd
commit
a03482477d
@ -46,7 +46,7 @@ class Battle(val gameInfo:GameInfo) {
|
|||||||
|
|
||||||
if(attacker.getCivilization()!=defender.getCivilization()) { // If what happened was that a civilian unit was captures, that's dealt with in the CaptureCilvilianUnit function
|
if(attacker.getCivilization()!=defender.getCivilization()) { // If what happened was that a civilian unit was captures, that's dealt with in the CaptureCilvilianUnit function
|
||||||
val whatHappenedString =
|
val whatHappenedString =
|
||||||
if (attacker.isDefeated()) " {was destroyed while attacking}"
|
if (attacker !is CityCombatant && attacker.isDefeated()) " {was destroyed while attacking}"
|
||||||
else " has " + (if (defender.isDefeated()) "destroyed" else "attacked")
|
else " has " + (if (defender.isDefeated()) "destroyed" else "attacked")
|
||||||
val attackerString =
|
val attackerString =
|
||||||
if (attacker.getUnitType() == UnitType.City) "Enemy city [" + attacker.getName() + "]"
|
if (attacker.getUnitType() == UnitType.City) "Enemy city [" + attacker.getName() + "]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user