add exploding pen from goldeneye (#14421)
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Content.Server.Explosion.Components
|
||||
public List<float>? DelayOptions = null;
|
||||
|
||||
/// <summary>
|
||||
/// If not null, this timer will periodically play this sound wile active.
|
||||
/// If not null, this timer will periodically play this sound while active.
|
||||
/// </summary>
|
||||
[DataField("beepSound")]
|
||||
public SoundSpecifier? BeepSound;
|
||||
@@ -44,5 +44,11 @@ namespace Content.Server.Explosion.Components
|
||||
/// </summary>
|
||||
[DataField("canToggleStartOnStick")]
|
||||
public bool AllowToggleStartOnStick;
|
||||
|
||||
/// <summary>
|
||||
/// Whether you can examine the item to see its timer or not.
|
||||
/// </summary>
|
||||
[DataField("examinable")]
|
||||
public bool Examinable = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public sealed partial class TriggerSystem
|
||||
|
||||
private void OnExamined(EntityUid uid, OnUseTimerTriggerComponent component, ExaminedEvent args)
|
||||
{
|
||||
if (args.IsInDetailsRange)
|
||||
if (args.IsInDetailsRange && component.Examinable)
|
||||
args.PushText(Loc.GetString("examine-trigger-timer", ("time", component.Delay)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user