From 716bd0618308d6100556d1231b0b156f48c64778 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Wed, 20 Mar 2024 06:39:46 +0100 Subject: feat: scale spear damage --- src/shared/ability.rs | 1 + src/shared/projectile.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src/shared') diff --git a/src/shared/ability.rs b/src/shared/ability.rs index 9502151..8decfc6 100644 --- a/src/shared/ability.rs +++ b/src/shared/ability.rs @@ -523,6 +523,7 @@ fn spear_activation(spear: Spear) -> DirectionalAbilityActivation { direction, starting_position: position.0, max_distance: spear.max_distance, + scale_damage: Some((0.75, 2.5)), }), source_player, damage: spear.damage, diff --git a/src/shared/projectile.rs b/src/shared/projectile.rs index bc0a505..f9fb592 100644 --- a/src/shared/projectile.rs +++ b/src/shared/projectile.rs @@ -40,6 +40,7 @@ pub struct FreeProjectile { pub direction: Vec2, pub starting_position: Vec2, pub max_distance: f32, + pub scale_damage: Option<(f32, f32)>, } #[derive(Component, Message, Serialize, Deserialize, Clone, Debug, PartialEq)] -- cgit v1.2.3