prevents energy from ticking up whilst AI is culled

This commit is contained in:
Llywelwyn 2023-08-15 21:18:28 +01:00
parent f2b58a3feb
commit 2887bb9736
6 changed files with 53 additions and 11 deletions

View file

@ -301,6 +301,10 @@ pub fn spawn_named_mob(
eb = eb.with(MoveMode { mode: Movement::Static });
has_move_mode = true;
}
"RANDOM_PATH" => {
eb = eb.with(MoveMode { mode: Movement::RandomWaypoint { path: None } });
has_move_mode = true;
}
"MINDLESS" => {
eb = eb.with(Faction { name: "mindless".to_string() });
has_faction = true;