Add support for custom controls in the character menu (#19567)

This commit is contained in:
Nemanja
2023-08-27 04:24:24 -04:00
committed by GitHub
parent 70e0520a2c
commit 3e93e963b5
4 changed files with 35 additions and 9 deletions

View File

@@ -2,7 +2,6 @@
using Content.Server.Roles;
using Content.Shared.CharacterInfo;
using Content.Shared.Objectives;
using Robust.Shared.Player;
namespace Content.Server.CharacterInfo;
@@ -25,8 +24,8 @@ 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 a bug
if (EntityManager.TryGetComponent(entity, out MindContainerComponent? mindContainerComponent) && mindContainerComponent.Mind != null)
var briefing = "!!ERROR: No Briefing!!"; //should never show on the UI unless there's an issue
if (TryComp<MindContainerComponent>(entity, out var mindContainerComponent) && mindContainerComponent.Mind != null)
{
var mind = mindContainerComponent.Mind;