mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
* One commit ops * Please the maintainer gods * More requested changes * review * actually this is probably a good idea --------- Co-authored-by: ScarKy0 <scarky0@onet.eu>
26 lines
810 B
C#
26 lines
810 B
C#
using Content.Shared.Lock.BypassLock.Systems;
|
|
using Content.Shared.Tools;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Lock.BypassLock.Components;
|
|
|
|
/// <summary>
|
|
/// This component lets the lock on this entity be pried open when the entity is in critical or dead state.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(BypassLockSystem))]
|
|
public sealed partial class BypassLockComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The tool quality needed to bypass the lock.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<ToolQualityPrototype> BypassingTool = "Prying";
|
|
|
|
/// <summary>
|
|
/// Amount of time in seconds it takes to bypass
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan BypassDelay = TimeSpan.FromSeconds(5f);
|
|
}
|