mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 18:11:16 +00:00
## About The Pull Request I was messing a little bit with TGUI stuff and ended up turning the implant pad TGUI, so why not. On top of the new UI, I replaced the messages to chat with nice and consistent balloon alerts which will hopefully make it not seem like an ancient piece of shit. Video demonstration https://github.com/tgstation/tgstation/assets/53777086/a1ebe0d4-005b-4e29-a623-2c1b352cd017 I also removed ``INTERACT_MACHINE_SET_MACHINE`` from the prisoner console, because it was accidentally left in when the console was moved to TGUI ## Why It's Good For The Game I'm still going down the list of things that need to be TGUI, and I ended up doing this cause I just felt like it while messing with some other stuff. Rest of the list is visible here: https://hackmd.io/@sClqlHM0T4yZfn-qa5KnAg/S152Tl2hh ## Changelog 🆑 refactor: Implant pads now use TGUI /🆑
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
///A passive implant that plays sound/misc/sadtrombone.ogg when you deathgasp for any reason
|
|
/obj/item/implant/sad_trombone
|
|
name = "sad trombone implant"
|
|
actions_types = null
|
|
|
|
/obj/item/implant/sad_trombone/get_data()
|
|
return "<b>Implant Specifications:</b><BR> \
|
|
<b>Name:</b> Honk Co. Sad Trombone Implant<BR> \
|
|
<b>Life:</b> Activates upon death.<BR>"
|
|
|
|
/obj/item/implant/sad_trombone/implant(mob/living/target, mob/user, silent = FALSE, force = FALSE)
|
|
. = ..()
|
|
if(.)
|
|
RegisterSignal(target, COMSIG_MOB_EMOTED("deathgasp"), PROC_REF(on_deathgasp))
|
|
|
|
/obj/item/implant/sad_trombone/removed(mob/target, silent = FALSE, special = FALSE)
|
|
. = ..()
|
|
if(.)
|
|
UnregisterSignal(target, COMSIG_MOB_EMOTED("deathgasp"))
|
|
|
|
/obj/item/implant/sad_trombone/proc/on_deathgasp(mob/source)
|
|
SIGNAL_HANDLER
|
|
playsound(loc, 'sound/misc/sadtrombone.ogg', 50, FALSE)
|
|
|
|
///Implanter that spawns with a sad trombone implant, as well as an appropriate name
|
|
/obj/item/implanter/sad_trombone
|
|
name = "implanter (sad trombone)"
|
|
imp_type = /obj/item/implant/sad_trombone
|
|
|
|
///Implant case that spawns with a sad trombone implant, as well as an appropriate name and description
|
|
/obj/item/implantcase/sad_trombone
|
|
name = "implant case - 'Sad Trombone'"
|
|
desc = "A glass case containing a sad trombone implant."
|
|
imp_type = /obj/item/implant/sad_trombone
|