]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make borgs shown in logprobe (#27788)
authorlzk <124214523+lzk228@users.noreply.github.com>
Mon, 3 Jun 2024 18:48:44 +0000 (20:48 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 18:48:44 +0000 (14:48 -0400)
Content.Shared/Access/Systems/AccessReaderSystem.cs

index 3670e24bd32a1b17f7ffd1295d342b2d32dd34e5..efdbff3bb88a6b378fc53464ed26b6f02a8020b1 100644 (file)
@@ -6,7 +6,9 @@ using Content.Shared.Emag.Components;
 using Content.Shared.Emag.Systems;
 using Content.Shared.Hands.EntitySystems;
 using Content.Shared.Inventory;
+using Content.Shared.NameIdentifier;
 using Content.Shared.PDA;
+using Content.Shared.Silicons.Borgs.Components;
 using Content.Shared.StationRecords;
 using Robust.Shared.Containers;
 using Robust.Shared.GameStates;
@@ -393,6 +395,9 @@ public sealed class AccessReaderSystem : EntitySystem
             ent.Comp.AccessLog.Dequeue();
 
         string? name = null;
+        if (TryComp<NameIdentifierComponent>(accessor, out var nameIdentifier))
+            name = nameIdentifier.FullIdentifier;
+
         // TODO pass the ID card on IsAllowed() instead of using this expensive method
         // Set name if the accessor has a card and that card has a name and allows itself to be recorded
         if (_idCardSystem.TryFindIdCard(accessor, out var idCard)