[MIRROR] Uplinks now play a unique 'kaching' sound when purchasing any items. (#27123)

* Uplinks now play a unique 'kaching' sound when purchasing any items. (#82317)

## About The Pull Request

Syndicate (and others) Uplinks now make a 'kaching' sound whenever the
user purchases an item. Only the user will hear the kaching noise as to
not give them away. Ever since playing SS14, having no auditory feedback
when purchasing ANYTHING over the uplink has perturbed me quite a bit.

Sound here:

https://github.com/tgstation/tgstation/assets/105099113/bbd518e2-882b-4a12-998d-2b9d00d855bb

## Why It's Good For The Game

Gives actual (auditory) feedback for whenever a purchase is made. Useful
if time dilation goes out-of-wack or if you misclicked on your open
uplink and dont know why your TC count dropped. (The latter once
happened to me. Don't ask.)

## Changelog

🆑
add: Added a 'kaching' sound to the game, and made uplinks play this
sound locally to the user whenever a purchase is made.
/🆑

* Uplinks now play a unique 'kaching' sound when purchasing any items.

---------

Co-authored-by: hyperjll <105099113+hyperjll@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-04-04 14:52:19 -04:00
committed by GitHub
co-authored by hyperjll
parent 15ac8f7d4f
commit 0dd9a4e429
2 changed files with 1 additions and 0 deletions
+1
View File
@@ -125,6 +125,7 @@
/datum/uplink_item/proc/purchase(mob/user, datum/uplink_handler/uplink_handler, atom/movable/source)
var/atom/spawned_item = spawn_item(item, user, uplink_handler, source)
log_uplink("[key_name(user)] purchased [src] for [cost] telecrystals from [source]'s uplink")
user.playsound_local(get_turf(user), 'sound/effects/kaching.ogg', 100, FALSE, pressure_affected = FALSE, use_reverb = FALSE)
if(purchase_log_vis && uplink_handler.purchase_log)
uplink_handler.purchase_log.LogPurchase(spawned_item, src, cost)
if(lock_other_purchases)
Binary file not shown.