mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07:00
XP and promotions are retained when upgrading units (thanks Noam!)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user