Renamed to random_walk since that's what it called. Closes #26.

This commit is contained in:
Zed A. Shaw 2025-06-28 11:38:06 -04:00
parent 769530b45c
commit 57d69015c2
3 changed files with 4 additions and 5 deletions

View file

@ -89,9 +89,9 @@ void System::enemy_pathing(GameLevel &level) {
Point out = position.location; // copy
if(enemy_ai.wants_to("find_enemy")) {
map.neighbors(out, motion.random, PATHING_TOWARD);
map.random_walk(out, motion.random, PATHING_TOWARD);
} else if(enemy_ai.wants_to("run_away")) {
map.neighbors(out, motion.random, PATHING_AWAY);
map.random_walk(out, motion.random, PATHING_AWAY);
}
motion = { int(out.x - position.location.x), int(out.y - position.location.y)};