* Thieving component and gloves * Fixes popup issue * Forgot to add it for hands * Adds a bool datafield * Comments * Requested changes
22 lines
522 B
C#
22 lines
522 B
C#
using Content.Shared.Inventory;
|
|
using Content.Shared.Strip.Components;
|
|
|
|
namespace Content.Shared.Strip;
|
|
|
|
public sealed class ThievingSystem : EntitySystem
|
|
{
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<ThievingComponent, BeforeStripEvent>(OnBeforeStrip);
|
|
}
|
|
|
|
private void OnBeforeStrip(EntityUid uid, ThievingComponent component, BeforeStripEvent args)
|
|
{
|
|
args.Stealth = component.Stealthy;
|
|
args.Additive -= component.StealTime;
|
|
}
|
|
}
|