Files
tbd-station-14/Content.Server/NPC/HTN/Preconditions/KeyNotExistsPrecondition.cs
Tornado Tech 31491775e5 Added new HTN operations and preconditions (#27486)
* Added new HTN operations & preconditions

* Ok I forgot about partial

* Namespace pierce the skies

* Some fixes, debug and new operators

* Bruh git eat my files
2024-05-08 12:18:03 +03:00

13 lines
309 B
C#

namespace Content.Server.NPC.HTN.Preconditions;
public sealed partial class KeyNotExistsPrecondition : HTNPrecondition
{
[DataField(required: true)]
public string Key = string.Empty;
public override bool IsMet(NPCBlackboard blackboard)
{
return !blackboard.ContainsKey(Key);
}
}