mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 09:31:13 +00:00
Causes remains to crumble when touched by a robot or pulled by anyone. (#8669)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user