mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
24 lines
690 B
C#
24 lines
690 B
C#
using Content.Shared.Clothing.EntitySystems;
|
|
using Content.Shared.Ninja.Components;
|
|
using Content.Shared.Ninja.Systems;
|
|
|
|
namespace Content.Client.Ninja.Systems;
|
|
|
|
/// <summary>
|
|
/// Disables cloak prediction since client has no knowledge of battery power.
|
|
/// Cloak will still be enabled after server tells it.
|
|
/// </summary>
|
|
public sealed class NinjaSuitSystem : SharedNinjaSuitSystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<NinjaSuitComponent, AttemptStealthEvent>(OnAttemptStealth);
|
|
}
|
|
|
|
private void OnAttemptStealth(EntityUid uid, NinjaSuitComponent comp, AttemptStealthEvent args)
|
|
{
|
|
args.Cancel();
|
|
}
|
|
}
|