add block force multiplier to SwordBlockState

issue-templates
John Montagu, the 4th Earl of Sandvich 2024-03-30 01:59:45 -07:00
parent 7929053cb3
commit 7535d9f28d
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,9 @@ public partial class SwordBlockState : WeaponState
[Export] [Export]
public string BlockAnimKey { get; set; } public string BlockAnimKey { get; set; }
[Export]
public float BlockForceMultiplier { get; set; } = 4;
public bool HasBlocked { get; set; } public bool HasBlocked { get; set; }
private double _attackDuration = 0; private double _attackDuration = 0;
@ -31,7 +34,7 @@ public partial class SwordBlockState : WeaponState
{ {
Sword.EnableParry(ulong.MaxValue); Sword.EnableParry(ulong.MaxValue);
_oldBlockForce = Sword.BlockForce; _oldBlockForce = Sword.BlockForce;
Sword.BlockForce *= 4; Sword.BlockForce *= BlockForceMultiplier;
_useDuration = Sword.UseAltTime; _useDuration = Sword.UseAltTime;
_attackDuration = Sword.AttackAltTime; _attackDuration = Sword.AttackAltTime;