Renamed to random_walk since that's what it called. Closes #26.
This commit is contained in:
parent
769530b45c
commit
57d69015c2
3 changed files with 4 additions and 5 deletions
|
@ -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)};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue