Balance tweaks

This commit is contained in:
Sam 2021-03-26 12:48:25 -04:00
parent 345b725478
commit b0b114a7f8
4 changed files with 12 additions and 10 deletions

View File

@ -1,10 +1,10 @@
BasicBeam( BasicBeam(
buildup_duration: 0.50, buildup_duration: 0.40,
recover_duration: 0.50, recover_duration: 0.50,
beam_duration: 1.0, beam_duration: 1.0,
damage: 350, damage: 350,
tick_rate: 0.9, tick_rate: 0.9,
range: 20.0, range: 22.0,
max_angle: 15.0, max_angle: 15.0,
damage_effect: Some(Buff(( damage_effect: Some(Buff((
kind: Cursed, kind: Cursed,

View File

@ -1,11 +1,11 @@
SpinMelee( SpinMelee(
buildup_duration: 0.6, buildup_duration: 0.5,
swing_duration: 0.2, swing_duration: 0.2,
recover_duration: 0.6, recover_duration: 0.6,
base_damage: 70.0, base_damage: 70.0,
base_poise_damage: 0.0, base_poise_damage: 0.0,
knockback: ( strength: 8.0, direction: Towards), knockback: ( strength: 8.0, direction: Towards),
range: 15.0, range: 17.5,
damage_effect: Some(Lifesteal(1.0)), damage_effect: Some(Lifesteal(1.0)),
energy_cost: 0.0, energy_cost: 0.0,
is_infinite: true, is_infinite: true,

View File

@ -9,7 +9,7 @@ BasicSummon(
body_type: Male, body_type: Male,
)), )),
scale: None, scale: None,
health_scaling: 30, health_scaling: 80,
loadout_config: Some(Husk), loadout_config: Some(Husk),
skillset_config: None, skillset_config: None,
), ),

View File

@ -2202,12 +2202,14 @@ impl<'a> AgentData<'a> {
} }
}, },
Tactic::Mindflayer => { Tactic::Mindflayer => {
const MINDFLAYER_ATTACK_DIST: f32 = 15.0; const MINDFLAYER_ATTACK_DIST: f32 = 17.5;
const MINION_SUMMON_THRESHOLD: f32 = 0.25; const MINION_SUMMON_THRESHOLD: f32 = 0.20;
let health_fraction = self.health.map_or(0.5, |h| h.fraction()); let health_fraction = self.health.map_or(0.5, |h| h.fraction());
// Extreme hack to set action_timer to 1 at start of combat // Extreme hack to set action_timer at start of combat
if agent.action_timer < 0.01 && health_fraction > 0.5 { if agent.action_timer < MINION_SUMMON_THRESHOLD
agent.action_timer = 1.0 - MINION_SUMMON_THRESHOLD; && health_fraction > MINION_SUMMON_THRESHOLD
{
agent.action_timer = health_fraction - MINION_SUMMON_THRESHOLD;
} }
let mindflayer_is_far = dist_sqrd > MINDFLAYER_ATTACK_DIST.powi(2); let mindflayer_is_far = dist_sqrd > MINDFLAYER_ATTACK_DIST.powi(2);
if agent.action_timer > health_fraction { if agent.action_timer > health_fraction {