Fix Traitor briefings not playing. (#46055)

frederick fastbear
This commit is contained in:
Princess Cheeseballs 2026-09-17 20:25:58 +00:00 • committed by GitHub
parent 5d498b530e
commit 2fcd036cf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,7 +91,7 @@ public abstract partial class TraitorRuleSystem : GameRuleSystem<TraitorRuleComp
if (rule.Comp.GiveBriefing)
{
_antag.SendBriefing(rule, GenerateBriefing(codewords, code, issuer), null, rule.Comp.GreetSoundNotification);
_antag.SendBriefing(traitor, GenerateBriefing(codewords, code, issuer), null, rule.Comp.GreetSoundNotification);
Log.Debug($"MakeTraitor {ToPrettyString(traitor)} - Sent the Briefing");
}
@ -121,7 +121,7 @@ public abstract partial class TraitorRuleSystem : GameRuleSystem<TraitorRuleComp
_roleCodewordSystem.SetRoleCodewords((mindId, codewordComp), "traitor", factionCodewords.ToList(), color);
// Change the faction
Log.Debug($"MakeTraitor {ToPrettyString(rule)} - Change faction");
Log.Debug($"MakeTraitor {ToPrettyString(traitor)} - Change faction");
_npcFaction.RemoveFaction(traitor, rule.Comp.NanoTrasenFaction, false);
_npcFaction.AddFaction(traitor, rule.Comp.SyndicateFaction);