Better pathfinding and reworked villager AI
Pre-release
Pre-release
Added features:
- Minimap move commands are now available
- Actors now walk in the general direction of a command even though they might not be able to reach their goal
- When gathering or building actors only move if the can in fact reach their goal
- Reworked villager AI somewhat
- Dropoff points now allocate a drop of tile (preferably the closest) to an actor in need which should eliviate congestion
- if a resource becomes unreachable for a while vilager will instead start to gather from the closest similair resource
Bugs fixed
- Missing animation when a building is finished
- Villagers stop and become immovable and stop being able to do anything when pathfinding does not find a solution
- Wrong alignment and orientation when playing building animation
- Sped up things a bit by converting more vvarables passed by functions to references