mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
* ONLY SKYRAT CHANGES * ACTUALLY SKYRAT CHANGES * yolo, revert later * Update alternate_byond_versions.txt Co-authored-by: AnturK <AnturK@users.noreply.github.com>
28 lines
836 B
Plaintext
28 lines
836 B
Plaintext
/obj/item/implant/mortis
|
|
name = "MORTIS implant"
|
|
|
|
/obj/item/implant/mortis/get_data()
|
|
var/dat = {"<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> God Co. MORTIS Implant<BR>
|
|
<b>Life:</b> Activates upon death.<BR>
|
|
"}
|
|
return dat
|
|
|
|
/obj/item/implant/mortis/implant(mob/living/target, mob/user, silent = FALSE, force = FALSE)
|
|
. = ..()
|
|
if(.)
|
|
RegisterSignal(target, COMSIG_MOB_EMOTED("deathgasp"), PROC_REF(on_deathgasp))
|
|
|
|
/obj/item/implant/mortis/removed(mob/target, silent = FALSE, special = FALSE)
|
|
. = ..()
|
|
if(.)
|
|
UnregisterSignal(target, COMSIG_MOB_EMOTED("deathgasp"))
|
|
|
|
/obj/item/implant/mortis/proc/on_deathgasp(mob/source)
|
|
SIGNAL_HANDLER
|
|
playsound(source.loc, 'modular_skyrat/modules/chaplain/sound/mortis.ogg', 50, 0)
|
|
|
|
/obj/item/implanter/mortis
|
|
name = "implanter (MORTIS)"
|
|
imp_type = /obj/item/implant/mortis
|