decouple briefing from traitor (#19668)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -29,7 +29,7 @@ public sealed class CharacterInfoSystem : EntitySystem
|
||||
|
||||
var conditions = new Dictionary<string, List<ConditionInfo>>();
|
||||
var jobTitle = "No Profession";
|
||||
var briefing = "!!ERROR: No Briefing!!"; //should never show on the UI unless there's an issue
|
||||
string? briefing = null;
|
||||
if (_minds.TryGetMind(entity, out var mindId, out var mind))
|
||||
{
|
||||
// Get objectives
|
||||
@@ -48,7 +48,7 @@ public sealed class CharacterInfoSystem : EntitySystem
|
||||
jobTitle = jobName;
|
||||
|
||||
// Get briefing
|
||||
briefing = _roles.MindGetBriefing(mindId) ?? string.Empty;
|
||||
briefing = _roles.MindGetBriefing(mindId);
|
||||
}
|
||||
|
||||
RaiseNetworkEvent(new CharacterInfoEvent(entity, jobTitle, conditions, briefing), args.SenderSession);
|
||||
|
||||
Reference in New Issue
Block a user