Rebalanced explosion strengths

This commit is contained in:
Sam 2021-03-15 00:36:07 -04:00
parent 26f5d40bff
commit 461ad6e339
6 changed files with 6 additions and 8 deletions

View File

@ -3,7 +3,7 @@ BasicRanged(
buildup_duration: 0.5,
recover_duration: 0.35,
projectile: Fireball(
damage: 100.0,
damage: 80.0,
radius: 5.0,
energy_regen: 50,
),

View File

@ -3,7 +3,7 @@ BasicRanged(
buildup_duration: 0.5,
recover_duration: 0.35,
projectile: Fireball(
damage: 100.0,
damage: 80.0,
radius: 5.0,
energy_regen: 50,
),

View File

@ -3,7 +3,7 @@ BasicRanged(
buildup_duration: 0.8,
recover_duration: 0.35,
projectile: Fireball(
damage: 100.0,
damage: 80.0,
radius: 5.0,
energy_regen: 0,
),

View File

@ -3,7 +3,7 @@ BasicRanged(
buildup_duration: 0.5,
recover_duration: 0.35,
projectile: Frostball(
damage: 100.0,
damage: 80.0,
radius: 5.0,
),
projectile_body: Object(BoltFire), // TODO: Get ice projectile model

View File

@ -616,9 +616,7 @@ pub fn handle_explosion(server: &Server, pos: Vec3<f32>, explosion: Explosion, o
// Compare both checks, take whichever gives weaker effect, sets minimum of 0 so
// that explosions reach a max strength on edge of entity
let strength = ((horiz_dist.max(vert_distance).max(0.0) / radius).min(1.0) - 1.0).powi(2);
dbg!(strength);
strength
((horiz_dist.max(vert_distance).max(0.0) / radius).min(1.0) - 1.0).powi(2)
}
for effect in explosion.effects {

View File

@ -56,7 +56,7 @@ impl<'a> System<'a> for Sys {
effects: vec![
RadiusEffect::Entity(Effect::Damage(Damage {
source: DamageSource::Explosion,
value: 500.0,
value: 400.0,
})),
RadiusEffect::Entity(Effect::PoiseChange(PoiseChange {
source: PoiseSource::Explosion,