mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
allow siege units to go sleeping even when set up
This commit is contained in:
parent
ca05c10016
commit
d3f7a73cf3
@ -41,7 +41,7 @@ class UnitActions {
|
|||||||
|
|
||||||
val workingOnImprovement = unit.hasUnique("Can build improvements on tiles") && unit.currentTile.hasImprovementInProgress()
|
val workingOnImprovement = unit.hasUnique("Can build improvements on tiles") && unit.currentTile.hasImprovementInProgress()
|
||||||
if(!unit.isFortified() && (!unit.canFortify() || unit.health<100) && unit.currentMovement >0
|
if(!unit.isFortified() && (!unit.canFortify() || unit.health<100) && unit.currentMovement >0
|
||||||
&& unit.action!="Set Up" && !workingOnImprovement) {
|
&& !workingOnImprovement) {
|
||||||
val sleeping = unit.action == "Sleep"
|
val sleeping = unit.action == "Sleep"
|
||||||
actionList += UnitAction("Sleep", !sleeping, sleeping) {
|
actionList += UnitAction("Sleep", !sleeping, sleeping) {
|
||||||
unit.action = "Sleep"
|
unit.action = "Sleep"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user