XP and promotions are retained when upgrading units (thanks Noam!)

This commit is contained in:
Yair Morgenstern
2018-07-11 19:10:18 +03:00
parent 3425c117ff
commit d385ebd10b

View File

@ -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