mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Merge pull request #431 from ninjatao/fix_city_defeated_info
Fix city defeated info.
This commit is contained in:
commit
1a6089ead1
@ -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