mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-11 03:11:14 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
18 lines
563 B
C#
18 lines
563 B
C#
using Content.Client.Weapons.Ranged.Systems;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Weapons.Ranged.Commands;
|
|
|
|
public sealed partial class ShowSpreadCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private 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)));
|
|
}
|
|
}
|