Browse Source

Play gold sound effect when depositing in stash

This adds a bit of audible feedback to help the player know that the action had an impact (along with the cursor changing and the count increasing).
pull/4304/head
Andrew James 4 years ago committed by Anders Jenbo
parent
commit
08052fdf74
  1. 1
      Source/qol/stash.cpp

1
Source/qol/stash.cpp

@ -88,6 +88,7 @@ void CheckStashPaste(Point cursorPosition)
if (player.HoldItem._itype == ItemType::Gold) {
Stash.gold += player.HoldItem._ivalue;
PlaySFX(IS_GOLD);
Stash.dirty = true;
if (!IsHardwareCursor()) {
// To make software cursors behave like hardware cursors we need to adjust the hand cursor position manually

Loading…
Cancel
Save