Add multi-job exclusion support to objectives, and add more appropriate job restrictions to certain thief objectives. (#40065)

* multi exclusion!

* quick correction

* migrate all job: fields to jobs fields to avoid test fails. breaking change!!!
This commit is contained in:
Super
2025-10-31 09:26:25 +00:00
committed by GitHub
parent c30321d886
commit dd61991b1c
4 changed files with 49 additions and 47 deletions

View File

@@ -25,7 +25,7 @@ public sealed class NotJobRequirementSystem : EntitySystem
_jobs.MindTryGetJob(args.MindId, out var proto);
// if player has no job then don't care
if (proto is not null && proto.ID == comp.Job)
if (proto is not null && comp.Jobs.Contains(proto.ID))
args.Cancelled = true;
}
}