mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -04:00
Resolved #839 - Set up takes 1 movement point
This commit is contained in:
parent
cf37122304
commit
09079bd76f
@ -128,12 +128,7 @@ class UnitActions {
|
|||||||
val setUp = unit.action == "Set Up"
|
val setUp = unit.action == "Set Up"
|
||||||
actionList+=UnitAction("Set up", unit.currentMovement >0 && !setUp, currentAction = setUp ) {
|
actionList+=UnitAction("Set up", unit.currentMovement >0 && !setUp, currentAction = setUp ) {
|
||||||
unit.action="Set Up"
|
unit.action="Set Up"
|
||||||
// setting up uses up all movement points
|
unit.useMovementPoints(1f)
|
||||||
// this is to avoid problems with the idle state:
|
|
||||||
// - unit should not be idle when setting up right now
|
|
||||||
// - unit should be idle when set up in the past
|
|
||||||
unit.currentMovement=0f
|
|
||||||
unitTable.selectedUnit = null
|
|
||||||
}.sound("setup")
|
}.sound("setup")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user