Files
Aurora.3/code/game/objects/effects/decals/cleanable.dm
0092c15aa2 Operating Table and Antifuel Grenade Bugfixes (#22915)
changes:
- bugfix: "Operating table less likely to get non-real occupant bug when
installed on a shuttle."
- bugfix: "Antifuel grenades now reliably neutralize spilled welding
fuel and napalm gel."
- bugfix: "Generic cleaning products/tools no longer remove spilled
welding fuel or napalm gel- requires antifuel reagent."

---------

Signed-off-by: Batrachophreno <Batrochophreno@gmail.com>
Co-authored-by: VMSolidus <evilexecutive@gmail.com>
2026-07-26 18:03:15 +00:00

43 lines
1.3 KiB
Plaintext

/obj/effect/decal/cleanable
mouse_opacity = MOUSE_OPACITY_ICON
var/list/random_icon_states
var/swept_away
var/cleanable_by_basic_cleaners = TRUE
/obj/effect/decal/cleanable/attack_hand(mob/user)
if(!swept_away && layer == DECAL_LAYER) // have to check layer otherwise more vars need to be added to determine whether it CAN be sweeped
if((locate(/obj/structure/machinery/atmospherics) in get_turf(src)) || (locate(/obj/structure/machinery/hologram/holopad) in get_turf(src)))
to_chat(user, SPAN_NOTICE("You brush \the [src] away with your hand."))
layer = TURF_DETAIL_LAYER
swept_away = TRUE
post_sweep(user)
/obj/effect/decal/cleanable/proc/post_sweep(var/mob/user)
return
/obj/effect/decal/cleanable/proc/clean_with_basic_cleaner()
if(!cleanable_by_basic_cleaners)
return FALSE
qdel(src)
return TRUE
/obj/effect/decal/cleanable/clean_blood(var/ignore = 0)
if(!ignore)
return clean_with_basic_cleaner()
..()
/obj/effect/decal/cleanable/Initialize(mapload)
if (LAZYLEN(random_icon_states))
icon_state = pick(src.random_icon_states)
. = ..()
if (!mapload && ROUND_IS_STARTED)
SSstatistics.IncrementSimpleStat("messes_made")
var/turf/T = get_turf(src)
if(T)
if(T.above?.is_open())
T.above.update_mimic()
if(T.is_space() || T.is_open())
animate(src, alpha = 0, time = 5 SECONDS)
QDEL_IN(src, 5 SECONDS)