Delta-v/Content.Client/Weapons/Ranged/Commands/ShowSpreadCommand.cs

19 lines
564 B
C#

using Content.Client.Weapons.Ranged.Systems;
using Robust.Shared.Console;
namespace Content.Client.Weapons.Ranged.Commands;
public sealed class ShowSpreadCommand : LocalizedEntityCommands
{
[Dependency] private readonly GunSystem _gunSystem = default!;
public override string Command => "showgunspread";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_gunSystem.SpreadOverlay ^= true;
shell.WriteLine(Loc.GetString($"cmd-showgunspread-status", ("status", _gunSystem.SpreadOverlay)));
}
}