Hyposprays can now have different sounds

This commit is contained in:
Anewbe
2018-09-28 19:08:20 -05:00
parent f81f27ff4f
commit b0b3ad6039

View File

@@ -17,6 +17,7 @@
preserve_item = 1
var/filled = 0
var/list/filled_reagents = list()
var/hyposound // What sound do we play on use?
/obj/item/weapon/reagent_containers/hypospray/New()
..()
@@ -55,8 +56,9 @@
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
to_chat(user, "<span class='notice'>You inject [M] with \the [src].</span>")
to_chat(M, "<span class='notice'>You feel a tiny prick!</span>")
playsound(src, 'sound/effects/hypospray.ogg',25)
if(hyposound)
playsound(src, hyposound,25)
if(M.reagents)
var/contained = reagentlist()
@@ -126,6 +128,7 @@
filled = 1
filled_reagents = list("inaprovaline" = 5)
preserve_item = 0
hyposound = 'sound/effects/hypospray.ogg'
/obj/item/weapon/reagent_containers/hypospray/autoinjector/on_reagent_change()
..()