diff --git a/modular_chomp/code/modules/artifice/deadringer.dm b/modular_chomp/code/modules/artifice/deadringer.dm new file mode 100644 index 0000000000..f861b52261 --- /dev/null +++ b/modular_chomp/code/modules/artifice/deadringer.dm @@ -0,0 +1,25 @@ +/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, "You fade into nothingness! [src]'s screen blinks, being unable to copy your synthetic body!") + else + to_chat(watchowner, "You fade into nothingness, leaving behind a fake body!") + 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 \ No newline at end of file diff --git a/vorestation.dme b/vorestation.dme index 3da50106a8..8652445cab 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -4525,6 +4525,7 @@ #include "modular_chomp\code\game\objects\structures\crate_lockers\largecrate.dm" #include "modular_chomp\code\game\turfs\simulated\outdoors\desert_planet.dm" #include "modular_chomp\code\modules\admin\functions\modify_traits.dm" +#include "modular_chomp\code\modules\artifice\deadringer.dm" #include "modular_chomp\code\modules\client\preferences.dm" #include "modular_chomp\code\modules\client\preferences_spawnpoints.dm" #include "modular_chomp\code\modules\client\preference_setup\general\03_body.dm"