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]
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;