Skip to content

Commit

Permalink
Uplinks now play a unique 'kaching' sound when purchasing any items. (t…
Browse files Browse the repository at this point in the history
…gstation#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

:cl:
add: Added a 'kaching' sound to the game, and made uplinks play this
sound locally to the user whenever a purchase is made.
/:cl:
  • Loading branch information
hyperjll authored Mar 31, 2024
1 parent 97f8740 commit 55df533
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/uplink/uplink_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file added sound/effects/kaching.ogg
Binary file not shown.

0 comments on commit 55df533

Please sign in to comment.