Make borgs shown in logprobe (#27788)

This commit is contained in:
lzk 2024-06-03 20:48:44 +02:00 committed by null
parent bed7d4f3cf
commit a633095da1
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 5 additions and 0 deletions

View 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)