DNA scrambler examine fixes (#34920)

* Remove custom character description after using DNA scrambler

* Mark grammar as dirty when updating identity

* Update Content.Server/Implants/SubdermalImplantSystem.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
12rabbits
2025-02-06 11:09:59 -08:00
committed by GitHub
parent 64ebcb5277
commit b6ccbef147
2 changed files with 4 additions and 0 deletions

View File

@@ -103,6 +103,8 @@ public sealed class IdentitySystem : SharedIdentitySystem
// If presumed name is null and we're using that, we set proper noun to be false ("the old woman") // If presumed name is null and we're using that, we set proper noun to be false ("the old woman")
if (name != representation.TrueName && representation.PresumedName == null) if (name != representation.TrueName && representation.PresumedName == null)
identityGrammar.ProperNoun = false; identityGrammar.ProperNoun = false;
Dirty(ident, identityGrammar);
} }
if (name == Name(ident)) if (name == Name(ident))

View File

@@ -22,6 +22,7 @@ using System.Numerics;
using Content.Shared.Movement.Pulling.Components; using Content.Shared.Movement.Pulling.Components;
using Content.Shared.Movement.Pulling.Systems; using Content.Shared.Movement.Pulling.Systems;
using Content.Server.IdentityManagement; using Content.Server.IdentityManagement;
using Content.Server.DetailExaminable;
using Content.Shared.Store.Components; using Content.Shared.Store.Components;
using Robust.Shared.Collections; using Robust.Shared.Collections;
using Robust.Shared.Map.Components; using Robust.Shared.Map.Components;
@@ -225,6 +226,7 @@ public sealed class SubdermalImplantSystem : SharedSubdermalImplantSystem
{ {
fingerprint.Fingerprint = _forensicsSystem.GenerateFingerprint(); fingerprint.Fingerprint = _forensicsSystem.GenerateFingerprint();
} }
RemComp<DetailExaminableComponent>(ent); // remove MRP+ custom description if one exists
_identity.QueueIdentityUpdate(ent); // manually queue identity update since we don't raise the event _identity.QueueIdentityUpdate(ent); // manually queue identity update since we don't raise the event
_popup.PopupEntity(Loc.GetString("scramble-implant-activated-popup"), ent, ent); _popup.PopupEntity(Loc.GetString("scramble-implant-activated-popup"), ent, ent);
} }