combat: tweaked roshwalr melee detection and range

This commit is contained in:
Eternalisime 2022-11-12 13:51:27 +01:00
parent 13980861f8
commit ed25a84c72
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ ComboMelee(
poise_damage_increase: 0,
knockback: 3.0,
range: 3,
angle: 30.0,
angle: 75.0,
base_buildup_duration: 1.2,
base_swing_duration: 0.07,
hit_timing: 0.5,
@ -24,7 +24,7 @@ ComboMelee(
poise_damage_increase: 0,
knockback: 3.0,
range: 3,
angle: 30.0,
angle: 75.0,
base_buildup_duration: 0.2,
base_swing_duration: 0.07,
hit_timing: 0.5,

View File

@ -3542,7 +3542,7 @@ impl<'a> AgentData<'a> {
agent.action_state.counters
[ActionStateFCounters::FCounterRoshwalrAttack as usize] = 0.0;
}
} else if attack_data.dist_sqrd < MELEE_RANGE.powi(2) && attack_data.angle < 90.0{
} else if attack_data.dist_sqrd < MELEE_RANGE.powi(2) && attack_data.angle < 135.0{
// Basic attack if in melee range
controller.push_basic_input(InputKind::Primary);
}