Skeletons leave glove fiber evidence (#37077)

Fix skeleton forensics
This commit is contained in:
themias
2025-04-30 15:56:28 -04:00
committed by GitHub
parent 103225f554
commit ef10e4eb1c

View File

@@ -19,6 +19,7 @@ using Content.Shared.Weapons.Melee.Events;
using Robust.Shared.Random;
using Content.Shared.Verbs;
using Robust.Shared.Utility;
using Content.Shared.Hands.Components;
namespace Content.Server.Forensics
{
@@ -32,7 +33,7 @@ namespace Content.Server.Forensics
public override void Initialize()
{
SubscribeLocalEvent<FingerprintComponent, ContactInteractionEvent>(OnInteract);
SubscribeLocalEvent<HandsComponent, ContactInteractionEvent>(OnInteract);
SubscribeLocalEvent<FingerprintComponent, MapInitEvent>(OnFingerprintInit, after: new[] { typeof(BloodstreamSystem) });
// The solution entities are spawned on MapInit as well, so we have to wait for that to be able to set the DNA in the bloodstream correctly without ResolveSolution failing
SubscribeLocalEvent<DnaComponent, MapInitEvent>(OnDNAInit, after: new[] { typeof(BloodstreamSystem) });
@@ -60,7 +61,7 @@ namespace Content.Server.Forensics
}
}
private void OnInteract(EntityUid uid, FingerprintComponent component, ContactInteractionEvent args)
private void OnInteract(EntityUid uid, HandsComponent component, ContactInteractionEvent args)
{
ApplyEvidence(uid, args.Other);
}