Causes remains to crumble when touched by a robot or pulled by anyone. (#8669)

This commit is contained in:
Baa
2020-04-20 00:29:07 +01:00
committed by GitHub
parent 4a97612180
commit 5b95be0475
2 changed files with 26 additions and 4 deletions

View File

@@ -27,12 +27,29 @@
desc = "They look like the remains of a small reptile."
icon_state = "lizard"
/obj/effect/decal/remains/attack_hand(mob/user as mob)
to_chat(user, "<span class='notice'>[src] sinks together into a pile of ash.</span>")
//Target turns to ash.
/obj/effect/decal/remains/proc/crumble()
var/turf/simulated/floor/F = get_turf(src)
visible_message(SPAN_NOTICE("\The [src] sink together into a pile of ash."))
if (istype(F))
new /obj/effect/decal/cleanable/ash(F)
qdel(src)
/obj/effect/decal/remains/robot/attack_hand(mob/user as mob)
return
//Target turns to oil.
/obj/effect/decal/remains/robot/crumble()
var/turf/simulated/floor/F = get_turf(src)
visible_message(SPAN_NOTICE("\The [src] degrade into a pool of oil."))
if (istype(F))
new /obj/effect/decal/cleanable/blood/oil(F)
qdel(src)
/obj/effect/decal/remains/Move()
if(pulledby)
crumble()
/obj/effect/decal/remains/attack_hand(mob/user)
crumble()
/obj/effect/decal/remains/attack_ai(mob/user)
if(isrobot(user) && Adjacent(user)) // Remains crumble when robots touch, but not the AI.
crumble()