From 63961029da82cd6a1e2300b8d89c9b6f335f59cd Mon Sep 17 00:00:00 2001 From: itanasi <44038014+itanasi@users.noreply.github.com> Date: Fri, 5 Aug 2022 22:12:37 -0700 Subject: [PATCH] Update to -[amount] HP for battle notifications Update Unseen Interceptor Notification --- core/src/com/unciv/logic/battle/Battle.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/unciv/logic/battle/Battle.kt b/core/src/com/unciv/logic/battle/Battle.kt index cd9cc54781..24e37e0b74 100644 --- a/core/src/com/unciv/logic/battle/Battle.kt +++ b/core/src/com/unciv/logic/battle/Battle.kt @@ -403,9 +403,9 @@ object Battle { if (defender.isDefeated() && attacker.isRanged()) " the defence of [" + defender.getName() + "]" else " [" + defender.getName() + "]" else " our [" + defender.getName() + "]" - val attackerDealtString = if (damageDealt != null) " ([-${damageDealt.attackerDealt}] HP)" else "" - val defenderDealtString = if (damageDealt != null) " ([-${damageDealt.defenderDealt}] HP)" else "" - val notificationString = attackerString + defenderDealtString + whatHappenedString + defenderString + attackerDealtString + val attackerHurtString = if (damageDealt != null) " ([-${damageDealt.defenderDealt}] HP)" else "" + val defenderHurtString = if (damageDealt != null) " ([-${damageDealt.attackerDealt}] HP)" else "" + val notificationString = attackerString + attackerHurtString + whatHappenedString + defenderString + defenderHurtString val attackerIcon = if (attacker is CityCombatant) NotificationIcon.City else attacker.getName() val defenderIcon = if (defender is CityCombatant) NotificationIcon.City else defender.getName() val locations = LocationAction(attackedTile.position, attackerTile?.position)