Teach AI how to interact in this evil world

This commit is contained in:
juliancoffee 2021-07-14 19:14:30 +03:00
parent b6460f6c61
commit d42c7be141
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ use vek::*;
use super::dialogue::Subject;
pub const DEFAULT_INTERACTION_TIME: f32 = 3.0;
pub const DEFAULT_INTERACTION_TIME: f32 = 1.0;
pub const TRADE_INTERACTION_TIME: f32 = 300.0;
pub const MAX_LISTEN_DIST: f32 = 100.0;

View File

@ -1248,8 +1248,8 @@ impl<'a> AgentData<'a> {
},
_ => {
if can_speak(agent) {
// No new events, continue looking towards the last interacting player for some
// time
// No new events, continue looking towards the last
// interacting player for some time
if let Some(Target { target, .. }) = &agent.target {
self.look_toward(controller, read_data, target);
} else {