C7-Game / Prototype

An early-stage, open-source 4X strategy game
https://c7-game.github.io/
MIT License
34 stars 9 forks source link

You can fortify a unit before its animation finishes #324

Open QuintillusCFC opened 2 years ago

QuintillusCFC commented 2 years ago

If you are moving a unit, and you press "F" to fortify while its animation is running, it'll fortify even if it should have been out of moves.

It shouldn't be possible to fortify if it would be out of movement points on the tile it winds up at.

WildWeazel commented 2 years ago

The deceptively simple answer is "deduct the movement points when the order is given" but there are cases, specifically when entering FoW, that the unit won't make all of the ordered moves. We could still calculate that outcome immediately though, and block input while the result is animated.