using Content.Client.Items; using Content.Shared._DV.Surgery; namespace Content.Client._DV.Surgery; /// /// This gets the examine tooltip and sanitize verb predicted on the client so there's no pop-in after latency /// public sealed class SurgeryCleanSystem : SharedSurgeryCleanSystem { public override void Initialize() { base.Initialize(); Subs.ItemStatus(ent => new SurgeryDirtinessItemStatus(ent, EntityManager)); } public override bool RequiresCleaning(EntityUid target) { // Predict that it can be cleaned if it has dirt on it return TryComp(target, out var dirtiness) && dirtiness.Dirtiness > 0; } }