Buffed staff firebomb a little.

This commit is contained in:
Sam 2021-10-27 17:19:29 -04:00
parent 696da74c94
commit f339793911
2 changed files with 9 additions and 2 deletions

View File

@ -5,7 +5,7 @@ BasicRanged(
projectile: Fireball(
damage: 9.0,
radius: 4.0,
energy_regen: 6.0,
energy_regen: 10.0,
min_falloff: 0.5,
),
projectile_body: Object(BoltFire),

View File

@ -151,6 +151,12 @@ impl ProjectileConstructor {
} => {
let energy = AttackEffect::new(None, CombatEffect::EnergyReward(energy_regen))
.with_requirement(CombatRequirement::AnyDamage);
let buff = CombatEffect::Buff(CombatBuff {
kind: BuffKind::Bleeding,
dur_secs: 5.0,
strength: CombatBuffStrength::DamageFraction(0.1 * buff_strength),
chance: 0.1,
});
let damage = AttackDamage::new(
Damage {
source: DamageSource::Explosion,
@ -158,7 +164,8 @@ impl ProjectileConstructor {
value: damage,
},
Some(GroupTarget::OutOfGroup),
);
)
.with_effect(buff);
let attack = Attack::default()
.with_damage(damage)
.with_crit(crit_chance, crit_mult)