Dry agent and dry galoshes (#7845)

This commit is contained in:
Guti
2024-03-01 18:15:56 +01:00
committed by GitHub
parent 7bcb620e87
commit 1424b5b2cb
8 changed files with 78 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
/datum/component/dry
var/turf/simulated/T
var/obj/effect/decal/cleanable/blood/B
/datum/component/dry/Initialize()
if(!isatom(parent))
return COMPONENT_INCOMPATIBLE
if(istype(parent, /obj/item/clothing/shoes))
RegisterSignal(parent, COMSIG_SHOES_STEP_ACTION, PROC_REF(step_dry))
/datum/component/dry/proc/step_dry(obj/item/clothing/shoes/source)
SIGNAL_HANDLER
T = get_turf(parent)
B = locate(/obj/effect/decal/cleanable/blood) in T
T.wet_floor_finish()
if(B)
B.dry()