Can upgrade unit if any movement is left, as per Civ V

This commit is contained in:
yairm210
2021-11-03 10:10:43 +02:00
parent ad545e47da
commit 05b741b3e5

View File

@ -330,8 +330,9 @@ object UnitActions {
}.takeIf { }.takeIf {
isFree || isFree ||
( (
unit.civInfo.gold >= goldCostOfUpgrade && !unit.isEmbarked() unit.civInfo.gold >= goldCostOfUpgrade
&& unit.currentMovement == unit.getMaxMovement().toFloat() && unit.currentMovement > 0
&& !unit.isEmbarked()
) )
} }
) )