Cleanup forensic cleaning (#22715)

* Cleanup forensic cleaning

* move cleandelay to new component; buff syndiesoap

* updated based on feedback

* remove tag
This commit is contained in:
themias
2023-12-21 03:54:52 -05:00
committed by GitHub
parent 2f210df181
commit 59c8f23857
9 changed files with 44 additions and 22 deletions

View File

@@ -0,0 +1,14 @@
namespace Content.Server.Forensics;
/// <summary>
/// This component is for items that can clean up forensic evidence
/// </summary>
[RegisterComponent]
public sealed partial class CleansForensicsComponent : Component
{
/// <summary>
/// How long it takes to wipe prints/blood/etc. off of things using this entity
/// </summary>
[DataField]
public float CleanDelay = 12.0f;
}

View File

@@ -15,12 +15,6 @@ namespace Content.Server.Forensics
[DataField("residues")]
public HashSet<string> Residues = new();
/// <summary>
/// How long it takes to wipe the prints/blood/etc. off of this entity
/// </summary>
[DataField("cleanDelay")]
public float CleanDelay = 12.0f;
/// <summary>
/// How close you must be to wipe the prints/blood/etc. off of this entity
/// </summary>
@@ -29,7 +23,7 @@ namespace Content.Server.Forensics
/// <summary>
/// Can the DNA be cleaned off of this entity?
/// e.g. you can clean the DNA off of a knife, but not a puddle
/// e.g. you can wipe the DNA off of a knife, but not a cigarette
/// </summary>
[DataField("canDnaBeCleaned")]
public bool CanDnaBeCleaned = true;

View File

@@ -0,0 +1,7 @@
namespace Content.Server.Forensics.Components;
/// <summary>
/// This component is for entities we do not wish to track fingerprints/fibers, like puddles
/// </summary>
[RegisterComponent]
public sealed partial class IgnoresFingerprintsComponent : Component { }