Predict InjectorSystem (#39976)

* predict injectors

* hide verbs if no options
This commit is contained in:
slarticodefast
2025-09-01 17:24:37 +02:00
committed by GitHub
parent feb0fac20f
commit 86e77f05ce
11 changed files with 512 additions and 503 deletions

View File

@@ -307,6 +307,8 @@ namespace Content.Server.Forensics
component.Fingerprints.Add(fingerprint.Fingerprint ?? "");
}
// TODO: Delete this. A lot of systems are manually raising this method event instead of calling the identical <see cref="TransferDna"/> method.
// According to our code conventions we should not use method events.
private void OnTransferDnaEvent(EntityUid uid, DnaComponent component, ref TransferDnaEvent args)
{
if (component.DNA == null)
@@ -339,13 +341,7 @@ namespace Content.Server.Forensics
Dirty(ent);
}
/// <summary>
/// Transfer DNA from one entity onto the forensics of another
/// </summary>
/// <param name="recipient">The entity receiving the DNA</param>
/// <param name="donor">The entity applying its DNA</param>
/// <param name="canDnaBeCleaned">If this DNA be cleaned off of the recipient. e.g. cleaning a knife vs cleaning a puddle of blood</param>
public void TransferDna(EntityUid recipient, EntityUid donor, bool canDnaBeCleaned = true)
public override void TransferDna(EntityUid recipient, EntityUid donor, bool canDnaBeCleaned = true)
{
if (TryComp<DnaComponent>(donor, out var donorComp) && donorComp.DNA != null)
{