Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made Sec Hud Show Borg Job Icons + Made Borgs Unimplantable #26004

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Content.Client/Overlays/ShowSecurityIconsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -64,6 +65,11 @@ private IReadOnlyList<StatusIconPrototype> DecideSecurityIcon(EntityUid uid)
}
}

if (TryComp<BorgChassisComponent>(uid, out var borgComp) && !HasComp<ShowSyndicateIconsComponent>(uid))
{
jobIconToGet = borgComp.BorgJobIcon;
}

if (_prototypeMan.TryIndex<StatusIconPrototype>(jobIconToGet, out var jobIcon))
result.Add(jobIcon);
else
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -75,6 +77,9 @@ public sealed partial class BorgChassisComponent : Component

[DataField("noMindState")]
public string NoMindState = string.Empty;

[DataField("borgJobIcon"), ViewVariables(VVAccess.ReadWrite)]
public ProtoId<StatusIconPrototype> BorgJobIcon = "JobIconBorg";
#endregion
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
- ShoesRequiredStepTriggerImmune
- DoorBumpOpener
- CanPilot
- Unimplantable
- type: Emoting
- type: GuideHelp
guides:
Expand Down
Loading