ninja criminal records hacking (#24982)
* more humour * spotted a troll * add TryFindObjective to MindSystem * replace copypaste bool conditions with CodeCondition * use CodeConditionSystem in ninja + add handling for criminal hack * add criminal records hacking * update objectives * :trollface: --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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";
|
||||
}
|
||||
Reference in New Issue
Block a user