Thieving component and Thieving Gloves (#9158)
* Thieving component and gloves * Fixes popup issue * Forgot to add it for hands * Adds a bool datafield * Comments * Requested changes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.DragDrop;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Inventory;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Strip.Components
|
||||
@@ -77,4 +78,23 @@ namespace Content.Shared.Strip.Components
|
||||
Handcuffs = handcuffs;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Used to modify strip times.
|
||||
/// </summary>
|
||||
[NetSerializable, Serializable]
|
||||
public sealed class BeforeStripEvent : EntityEventArgs, IInventoryRelayEvent
|
||||
{
|
||||
public readonly float InitialTime;
|
||||
public float Time;
|
||||
public float Additive = 0;
|
||||
public bool Stealth;
|
||||
|
||||
public SlotFlags TargetSlots { get; } = SlotFlags.GLOVES;
|
||||
|
||||
public BeforeStripEvent(float initialTime)
|
||||
{
|
||||
InitialTime = Time = initialTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user