Skip to content

Commit

Permalink
FIX: Name cyborg's in radio (#2627)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeZer2 authored Feb 23, 2025
1 parent 2656326 commit c60533a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Content.Server/Chat/Systems/ChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using Content.Shared.Players;
using Content.Shared.Players.RateLimiting;
using Content.Shared.Radio;
using Content.Shared.Silicons.Borgs.Components;
using Content.Shared.SS220.Telepathy;
using Content.Shared.Whitelist;
using Robust.Server.Player;
Expand Down Expand Up @@ -968,6 +969,10 @@ public string BuildGibberishString(IReadOnlyList<char> charOptions, int length)
//ss220 add identity concealment for chat and radio messages start
public string GetRadioName(EntityUid entity)
{
// for borgs(chassis) and ai(brain)
if (HasComp<BorgChassisComponent>(entity) || HasComp<BorgBrainComponent>(entity))
return Name(entity);

return GetIdCardName(entity) ?? Loc.GetString("comp-pda-ui-unknown");
}

Expand Down

0 comments on commit c60533a

Please sign in to comment.