add block force multiplier to SwordBlockState
parent
7929053cb3
commit
7535d9f28d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue