Files
32 lines
1018 B
C#
32 lines
1018 B
C#
using Content.Shared.CriminalRecords.Systems;
|
|||
using Content.Shared.Dataset;
|
|||
using Robust.Shared.GameStates;
|
|||
using Robust.Shared.Prototypes;
|
|||
|
|||
namespace Content.Shared.CriminalRecords.Components;
|
|||
|
|||
/// <summary>
|
|||
/// Lets the user hack a criminal records console, once.
|
|||
/// Everyone is set to wanted with a randomly picked reason.
|
|||
/// </summary>
|
|||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedCriminalRecordsHackerSystem))]
|
|||
public sealed partial class CriminalRecordsHackerComponent : Component
|
|||
{
|
|||
/// <summary>
|
|||
/// How long the doafter is for hacking it.
|
|||
/// </summary>
|
|||
public TimeSpan Delay = TimeSpan.FromSeconds(20);
|
|||
|
|||
/// <summary>
|
|||
/// Dataset of random reasons to use.
|
|||
/// </summary>
|
|||
[DataField]
|
|||
public ProtoId<DatasetPrototype> Reasons = "CriminalRecordsWantedReasonPlaceholders";
|
|||
|
|||
/// <summary>
|
|||
/// Announcement made after the console is hacked.
|
|||
/// </summary>
|
|||
[DataField]
|
|||
public LocId Announcement = "ninja-criminal-records-hack-announcement";
|
|||
}
|