diff --git a/Content.Client/Overlays/ShowSecurityIconsSystem.cs b/Content.Client/Overlays/ShowSecurityIconsSystem.cs index 7a4abd05e005..87e066026e88 100644 --- a/Content.Client/Overlays/ShowSecurityIconsSystem.cs +++ b/Content.Client/Overlays/ShowSecurityIconsSystem.cs @@ -4,6 +4,7 @@ using Content.Shared.Overlays; using Content.Shared.PDA; using Content.Shared.Security.Components; +using Content.Shared.Silicons.Borgs.Components; using Content.Shared.StatusIcon; using Content.Shared.StatusIcon.Components; using Robust.Shared.Prototypes; @@ -64,6 +65,11 @@ private IReadOnlyList DecideSecurityIcon(EntityUid uid) } } + if (TryComp(uid, out var borgComp) && !HasComp(uid)) + { + jobIconToGet = borgComp.BorgJobIcon; + } + if (_prototypeMan.TryIndex(jobIconToGet, out var jobIcon)) result.Add(jobIcon); else diff --git a/Content.Shared/Silicons/Borgs/Components/BorgChassisComponent.cs b/Content.Shared/Silicons/Borgs/Components/BorgChassisComponent.cs index 71d3a7bd166c..b83d9c6bf3ea 100644 --- a/Content.Shared/Silicons/Borgs/Components/BorgChassisComponent.cs +++ b/Content.Shared/Silicons/Borgs/Components/BorgChassisComponent.cs @@ -1,6 +1,8 @@ using Content.Shared.Whitelist; +using Content.Shared.StatusIcon; using Robust.Shared.Containers; using Robust.Shared.GameStates; +using Robust.Shared.Prototypes; using Robust.Shared.Serialization; namespace Content.Shared.Silicons.Borgs.Components; @@ -75,6 +77,9 @@ public sealed partial class BorgChassisComponent : Component [DataField("noMindState")] public string NoMindState = string.Empty; + + [DataField("borgJobIcon"), ViewVariables(VVAccess.ReadWrite)] + public ProtoId BorgJobIcon = "JobIconBorg"; #endregion } diff --git a/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml b/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml index dc6e718290b7..25a1cd9df387 100644 --- a/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml +++ b/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml @@ -205,6 +205,7 @@ - ShoesRequiredStepTriggerImmune - DoorBumpOpener - CanPilot + - Unimplantable - type: Emoting - type: GuideHelp guides: