haltode/Pacification

Adapt pathfinding to limit the amount of moves per turn

Closed this issue · 1 comments

Each travelled tile must increase the Unit.currMVT counter.
Once the counter is equal to the value of Unit.mvtSPD, the unit must not be able to move anymore:
-If currently travelling, the move action must stop immediately.
-If the unit is stopped, either the pathfinding must be disabled until next turn for that specific unit, or the move action must not start.
-Idealy (but optional), the pathfinding must either stop or change color beyond the move limit, so the player does not expect to be able to move further than he actualy can.

Each new turn resets the unit's counter.
The counter and it's reset are already done.