From 2f323a42c1e0ccd4394c6b252ff6353f9bf5ffb3 Mon Sep 17 00:00:00 2001 From: holychowders Date: Tue, 25 May 2021 10:32:40 -0700 Subject: [PATCH] Guards investigate sounds whether alarm or not --- server/src/sys/agent.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/src/sys/agent.rs b/server/src/sys/agent.rs index ac371db2fd..ce314ac70e 100644 --- a/server/src/sys/agent.rs +++ b/server/src/sys/agent.rs @@ -3872,13 +3872,7 @@ impl<'a> AgentData<'a> { self.idle(agent, controller, &read_data); } } else if is_village_guard { - let sound_is_villager_alarm = matches!(sound.kind, SoundKind::VillagerAlarm); - - if sound_is_villager_alarm { - self.follow(agent, controller, &read_data.terrain, &sound_pos); - } else { - self.idle(agent, controller, &read_data); - } + self.follow(agent, controller, &read_data.terrain, &sound_pos); } else if is_neutral { let aggro = agent.psyche.aggro; let close_enough = dist_sqrd < 35.0_f32.powi(2);