Adds a quick ding sound when buying stuff, and a tiny bit of audio feedback when the card is registered.

This commit is contained in:
ArcaneMusic
2020-01-27 20:58:40 -05:00
parent d79311bd4d
commit 80ca6134cd
2 changed files with 3 additions and 0 deletions
@@ -398,6 +398,7 @@
var/obj/item/card/id/potential_acc = I
if(!payments_acc)
payments_acc = potential_acc.registered_account
playsound(src, 'sound/machines/click', 20, TRUE)
to_chat(user, "<span class='notice'>Vend-a-tray registered. Use a PDA with your ID to change the cost.</span>")
else if(payments_acc != potential_acc.registered_account)
to_chat(user, "<span class='warning'>This Vend-a-tray is already registered.</span>")
@@ -457,6 +458,7 @@
if(C.registered_account)
var/datum/bank_account/account = C.registered_account
if(!account.has_money(sale_price))
to_chat(user, "<span class='notice'>You do not possess the funds to purchase this.</span>")
return
else
@@ -465,6 +467,7 @@
payments_acc.adjust_money(sale_price)
customer.put_in_hands(showpiece)
to_chat(user, "<span class='notice'>You purchase [showpiece] for [sale_price] credits.</span>")
playsound(src, 'sound/effects/cashregister.ogg', 40, TRUE)
icon = 'icons/obj/stationobjs.dmi'
flick("laserbox_vend", src)
showpiece = null
Binary file not shown.