Make wide attacks optional for now (#8924)

This commit is contained in:
metalgearsloth
2022-06-17 15:52:09 +10:00
committed by GitHub
parent 08a4c7b835
commit 5a216be730
2 changed files with 3 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ namespace Content.Server.Weapon.Melee.Components
[ViewVariables(VVAccess.ReadWrite)]
[DataField("arc")]
public string Arc { get; set; } = "default";
public string? Arc { get; set; } = "default";
[ViewVariables(VVAccess.ReadWrite)]
[DataField("arcwidth")]

View File

@@ -124,6 +124,8 @@ namespace Content.Server.Weapon.Melee
private void OnWideAttack(EntityUid owner, MeleeWeaponComponent comp, WideAttackEvent args)
{
if (string.IsNullOrEmpty(comp.Arc)) return;
args.Handled = true;
var curTime = _gameTiming.CurTime;