mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Teach AI how to interact in this evil world
This commit is contained in:
parent
b6460f6c61
commit
d42c7be141
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user