Function veloren_server::sys::agent::util::handle_attack_aggression
pub fn handle_attack_aggression(
agent_data: &AgentData<'_>,
agent: &mut Agent,
controller: &mut Controller,
attack_data: &AttackData,
tgt_data: &TargetData<'_>,
read_data: &ReadData<'_>,
rng: &mut impl Rng,
timer_pos_timeout_index: usize,
timer_guarded_cycle_index: usize,
fcounter_guarded_timer_index: usize,
icounter_action_mode_index: usize,
condition_guarded_defend_index: usize,
condition_rolling_breakthrough_index: usize,
position_guarded_cover_index: usize,
position_flee_index: usize,
) -> bool
Expand description
Handles whether an agent should attack and how the agent moves around. Returns whether the agent should attack (so that individual tactics can determine what specific attack to use)