Prevents final summon rune by being cleaned by normal methods (#16224)

* Prevents final summon rune by being cleaned by normal methods

* Makes it a proc

* Moves cleanable, makes it work with space cleaner
This commit is contained in:
Qwertytoforty
2021-07-08 22:20:32 +01:00
committed by GitHub
parent 3724eb3ef0
commit 8dcb2c1a0f
11 changed files with 29 additions and 15 deletions
@@ -57,10 +57,12 @@
taste_description = "floor cleaner"
/datum/reagent/space_cleaner/reaction_obj(obj/O, volume)
if(is_cleanable(O))
var/obj/effect/decal/cleanable/blood/B = O
if(!(istype(B) && B.off_floor))
qdel(O)
if(istype(O, /obj/effect))
var/obj/effect/E = O
if(E.is_cleanable())
var/obj/effect/decal/cleanable/blood/B = E
if(!(istype(B) && B.off_floor))
qdel(E)
else
if(O.simulated)
O.color = initial(O.color)