mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-04 14:44:10 +07:00
Resolved #3464 - units only advance improvements when they have movement points left
This commit is contained in:
parent
100d6f9512
commit
98685ad7c0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user