HTNTask.cs 404 B

123456789101112
  1. namespace Content.Server.NPC.HTN;
  2. [ImplicitDataDefinitionForInheritors]
  3. public abstract partial class HTNTask
  4. {
  5. /// <summary>
  6. /// Limit the amount of tasks the planner considers. Exceeding this value sleeps the NPC and throws an exception.
  7. /// The expected way to hit this limit is with badly written recursive tasks.
  8. /// </summary>
  9. [DataField]
  10. public int MaximumTasks = 1000;
  11. }