aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-20 06:39:46 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-20 06:45:22 +0100
commit716bd0618308d6100556d1231b0b156f48c64778 (patch)
tree9ba09552391330c9bcee2b71d42928234b3ec6ea /src/shared
parent0165c47ea6c002c4eb177289ced5412b73273a25 (diff)
feat: scale spear damage
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ability.rs1
-rw-r--r--src/shared/projectile.rs1
2 files changed, 2 insertions, 0 deletions
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)]