mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 00:51:23 +00:00
About The Pull Request Converts every single usage of playsound's vary parameter to use the boolean define instead of 1 or 0. I'm tired of people copypasting the incorrect usage. Also changes a couple of places where a list was picked from instead of using get_sfx internal calls This was done via regex: (playsound\(.+,.+,.+, ?)1( ?\)| ?,.+\)) to match 1 (playsound\(.+,.+,.+, ?)0( ?\)| ?,.+\)) to match 0 full sed commands: /(playsound\(.+,.+,.+, ?)1( ?\)| ?,.+\))/\1TRUE\2/ 1 to TRUE /(playsound\(.+,.+,.+, ?)0( ?\)| ?,.+\))/\1FALSE\2/ 0 to FALSE I'm not very good with regex and these could probably be optimized, but they worked. Why It's Good For The Game Code usability
24 lines
713 B
Plaintext
24 lines
713 B
Plaintext
/obj/item/implant/sad_trombone
|
|
name = "sad trombone implant"
|
|
activated = 0
|
|
|
|
/obj/item/implant/sad_trombone/get_data()
|
|
var/dat = {"<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> Honk Co. Sad Trombone Implant<BR>
|
|
<b>Life:</b> Activates upon death.<BR>
|
|
"}
|
|
return dat
|
|
|
|
/obj/item/implant/sad_trombone/trigger(emote, mob/source)
|
|
if(emote == "deathgasp")
|
|
playsound(loc, 'sound/misc/sadtrombone.ogg', 50, FALSE)
|
|
|
|
/obj/item/implanter/sad_trombone
|
|
name = "implanter (sad trombone)"
|
|
imp_type = /obj/item/implant/sad_trombone
|
|
|
|
/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
|