Resolved #3464 - units only advance improvements when they have movement points left

This commit is contained in:
Yair Morgenstern 2020-12-28 17:59:04 +02:00
parent 100d6f9512
commit 98685ad7c0

View File

@ -447,8 +447,10 @@ class MapUnit {
fun endTurn() {
doAction()
if (hasUnique(Constants.workerUnique) && getTile().improvementInProgress != null) workOnImprovement()
if (hasUnique("Can construct roads") && currentTile.improvementInProgress == "Road") workOnImprovement()
if (currentMovement > 0 && hasUnique(Constants.workerUnique)
&& getTile().improvementInProgress != null) workOnImprovement()
if (currentMovement > 0 && hasUnique("Can construct roads")
&& currentTile.improvementInProgress == "Road") workOnImprovement()
if (currentMovement == getMaxMovement().toFloat() && isFortified()) {
val currentTurnsFortified = getFortificationTurns()
if (currentTurnsFortified < 2)