From 7535d9f28dad4db77e05128b2c66bf3da4accc9e Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Sat, 30 Mar 2024 01:59:45 -0700 Subject: [PATCH] add block force multiplier to SwordBlockState --- State/Weapon/SwordBlockState.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/State/Weapon/SwordBlockState.cs b/State/Weapon/SwordBlockState.cs index 0f9eab0..1f9c010 100644 --- a/State/Weapon/SwordBlockState.cs +++ b/State/Weapon/SwordBlockState.cs @@ -17,6 +17,9 @@ public partial class SwordBlockState : WeaponState [Export] public string BlockAnimKey { get; set; } + [Export] + public float BlockForceMultiplier { get; set; } = 4; + public bool HasBlocked { get; set; } private double _attackDuration = 0; @@ -31,7 +34,7 @@ public partial class SwordBlockState : WeaponState { Sword.EnableParry(ulong.MaxValue); _oldBlockForce = Sword.BlockForce; - Sword.BlockForce *= 4; + Sword.BlockForce *= BlockForceMultiplier; _useDuration = Sword.UseAltTime; _attackDuration = Sword.AttackAltTime;