mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 00:09:23 +07:00
Can upgrade unit if any movement is left, as per Civ V
This commit is contained in:
@ -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()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user