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:
17
Content.Server/Objectives/Components/CodeConditionSystem.cs
Normal file
17
Content.Server/Objectives/Components/CodeConditionSystem.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Content.Server.Objectives.Systems;
|
||||
|
||||
namespace Content.Server.Objectives.Components;
|
||||
|
||||
/// <summary>
|
||||
/// An objective that is set to complete by code in another system.
|
||||
/// Use <see cref="CodeConditionSystem"/> to check and set this.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(CodeConditionSystem))]
|
||||
public sealed partial class CodeConditionComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the objective is complete or not.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool Completed;
|
||||
}
|
||||
Reference in New Issue
Block a user