Skip to content

Commit

Permalink
first attempt to fix ContrabandSystem.cs with centcomm and syndicate …
Browse files Browse the repository at this point in the history
…checks
  • Loading branch information
Coolsurf6 committed Feb 12, 2025
1 parent 79f8ea0 commit 0b2d709
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Content.Shared/Contraband/ContrabandSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,16 @@ private void OnExamined(Entity<ContrabandComponent> ent, ref ExaminedEvent args)
jobId = id.Comp.LocalizedJobTitle;
}
}
//

// for the jobs we compare the localized string in case you use an agent ID or custom job name that is not a prototype
if (departments.Intersect(ent.Comp.AllowedDepartments).Any()
|| localizedJobs.Contains(jobId))
if (departments.Contains("CentralCommand"))
{
args.PushMarkup(Loc.GetString("contraband-examine-text-in-the-clear"));
}
else if (severity.ID != "Syndicate" &&
departments.Intersect(ent.Comp.AllowedDepartments).Any()
|| localizedJobs.Contains(jobId))
{
// you are allowed to use this!
args.PushMarkup(Loc.GetString("contraband-examine-text-in-the-clear"));
Expand Down

0 comments on commit 0b2d709

Please sign in to comment.