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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user