diff --git a/Content.Server/GameTicking/Rules/ThiefRuleSystem.cs b/Content.Server/GameTicking/Rules/ThiefRuleSystem.cs index 3273303a6f9..b00ed386363 100644 --- a/Content.Server/GameTicking/Rules/ThiefRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/ThiefRuleSystem.cs @@ -2,7 +2,6 @@ using Content.Server.GameTicking.Rules.Components; using Content.Server.Roles; using Content.Shared.Humanoid; -using Content.Shared.Roles; namespace Content.Server.GameTicking.Rules; @@ -23,7 +22,7 @@ public override void Initialize() private void AfterAntagSelected(Entity mindId, ref AfterAntagEntitySelectedEvent args) { var ent = args.EntityUid; - _antag.SendBriefing(ent, MakeBriefing(ent, args.Def.PrefRoles.Contains("Api")), null, null); // Corvax-Next-Api + _antag.SendBriefing(ent, MakeBriefing(ent), null, null); } // Character screen briefing @@ -33,26 +32,11 @@ private void OnGetBriefing(Entity role, ref GetBriefingEvent if (ent is null) return; - - // Corvax-Next-Api-Start - var api = false; - - foreach (var id in args.Mind.Comp.MindRoles) - if (TryComp(id, out var mindRole)) - if (mindRole.AntagPrototype == "Api") - api = true; - - args.Append(MakeBriefing(ent.Value, api)); - // Corvax-Next-Api-End + args.Append(MakeBriefing(ent.Value)); } - private string MakeBriefing(EntityUid ent, bool api) // Corvax-Next-Api + private string MakeBriefing(EntityUid ent) { - // Corvax-Next-Api-Start - if (api) - return Loc.GetString("api-role-greeting"); - // Corvax-Next-Api-End - var isHuman = HasComp(ent); var briefing = isHuman ? Loc.GetString("thief-role-greeting-human")