From d385ebd10bdcc9a5a0987a89a1f350034c202110 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 11 Jul 2018 19:10:18 +0300 Subject: [PATCH] XP and promotions are retained when upgrading units (thanks Noam!) --- core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt index 8f03ac57c2..a1ec8707e3 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt @@ -69,6 +69,7 @@ class UnitActions { unit.removeFromTile() val newunit = unit.civInfo.placeUnitNearTile(unitTile.position, upgradedUnit.name) newunit.health = unit.health + newunit.promotions = unit.promotions newunit.currentMovement=0f }, unit.civInfo.gold >= goldCostOfUpgrade