Files
CHOMPStation2/modular_chomp/code/modules/artifice/deadringer.dm
Fluff 89b5a2e1ce Silver Watch
Makes it so the dead ringer doesn't allow you to negate every single encounter by thwacking yourself in the foot beforehand.
Hopefully deadringer is now an escape tool.
2023-02-05 08:31:44 -05:00

25 lines
809 B
Plaintext

/obj/item/weapon/deadringer/process()
if(activated)
if (ismob(src.loc))
var/mob/living/carbon/human/H = src.loc
watchowner = H
if(H.getBruteLoss() > bruteloss_prev || H.getFireLoss() > fireloss_prev)
deathprevent()
activated = 0
if(watchowner.isSynthetic())
to_chat(watchowner, "<font color='blue'>You fade into nothingness! [src]'s screen blinks, being unable to copy your synthetic body!</font>")
else
to_chat(watchowner, "<font color='blue'>You fade into nothingness, leaving behind a fake body!</font>")
icon_state = "deadringer_cd"
timer = 5
return
if(timer > 0)
timer--
if(timer == 2)
reveal()
if(corpse)
new /obj/effect/effect/smoke/chem(corpse.loc)
qdel(corpse)
if(timer == 0)
icon_state = "deadringer"
return