Balance tweaks

This commit is contained in:
Sam 2023-02-11 20:58:43 -05:00
parent cbbbab6bff
commit e37e4016d6
7 changed files with 20 additions and 16 deletions

View File

@ -1,19 +1,19 @@
RapidMelee( RapidMelee(
buildup_duration: 0.2, buildup_duration: 0.2,
swing_duration: 0.1, swing_duration: 0.15,
recover_duration: 0.3, recover_duration: 0.3,
melee_constructor: ( melee_constructor: (
kind: Slash( kind: Slash(
damage: 3, damage: 2.5,
poise: 1, poise: 1,
knockback: 0, knockback: 0,
energy_regen: 2, energy_regen: 2,
), ),
range: 5.0, range: 4.0,
angle: 5.0, angle: 5.0,
), ),
energy_cost: 0, energy_cost: 0,
max_strikes: None, max_strikes: None,
move_modifier: 0.35, move_modifier: 0.3,
ori_modifier: 0.25, ori_modifier: 0.2,
) )

View File

@ -3,7 +3,7 @@ ChargedMelee(
energy_drain: 0, energy_drain: 0,
melee_constructor: ( melee_constructor: (
kind: Slash( kind: Slash(
damage: 10, damage: 5,
poise: 0, poise: 0,
knockback: 0, knockback: 0,
energy_regen: 0, energy_regen: 0,

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -814,9 +814,13 @@ impl<'a> AgentData<'a> {
> agent.action_state.counters[FloatCounters::GuardedTimer as usize] > agent.action_state.counters[FloatCounters::GuardedTimer as usize]
{ {
agent.action_state.timers[Timers::GuardedCycle as usize] = 0.0; agent.action_state.timers[Timers::GuardedCycle as usize] = 0.0;
agent.action_state.counters[FloatCounters::GuardedTimer as usize] =
rng.gen_range(3.0..6.0);
agent.action_state.conditions[Conditions::GuardedDefend as usize] ^= true; agent.action_state.conditions[Conditions::GuardedDefend as usize] ^= true;
agent.action_state.counters[FloatCounters::GuardedTimer as usize] =
if agent.action_state.conditions[Conditions::GuardedDefend as usize] {
rng.gen_range(3.0..6.0)
} else {
rng.gen_range(6.0..10.0)
};
} }
if let Some(pos) = agent.action_state.positions[Positions::GuardedCover as usize] { if let Some(pos) = agent.action_state.positions[Positions::GuardedCover as usize] {
if pos.distance_squared(self.pos.0) < 3_f32.powi(2) { if pos.distance_squared(self.pos.0) < 3_f32.powi(2) {