Closed MistakeNot4892 closed 1 week ago
Got walk_to()
and walk()
functionally replaced, will work on walk_away()
in the morning.
Current big issue, automove ends after one step. No runtimes, just stops moving and sits there like a lemon.
Main thing missing from this implementation versus walk() is that the mob will only ever move in the direction away from you, they won't try to skirt around obstacles at all. I have logic in place that should also try diagonal moves if the cardinal move fails, but it does not work for reasons that escape me. :(
Added a movement delay reset function that has resolved the issue, all seems more or less equivalent now.
Description of changes
SSautomove
to replacewalk_*()
inbuilts (and eventually the direct unmanagedAStar()
calls that bots are using).speed
tobase_movement_delay
andturns_per_move
toturns_per_wander
) for clarity.TODO
Add movement intents to bots.why did I put this on the todowalk_away()
.step()
in case it can be tied to this system.Maybe get bots using this system as well. Probably something for another PR.Get meteors working.walk_to()
.Why and what will this PR improve
Condenses various movement values for simple animals and makes them use movement intents properly.
Authorship
Myself, with some reference to how /tg/ handles their automovement for ideas.
Changelog
Nothing player-facing.