cash sound

This commit is contained in:
GNU Hacker 2021-12-16 20:19:08 +01:00
parent 36e7cc8a9e
commit b5d774e73e
3 changed files with 15 additions and 0 deletions

@ -100,6 +100,12 @@ local function get_stonks(pos, player)
local owner = meta:get_string("owner")
local stonks = meta:get_int("stonks")
if name == owner and stonks > 0 then
core.sound_play("cash", {
to_player = name,
gain = 1.0,
fade = 0.0,
pitch = 1.0,
})
emeraldbank.add_emeralds(player, stonks)
meta:set_int("stonks", 0)
core.chat_send_player(name, S("You've earned @1 Emeralds with this shop.", stonks) )

BIN
sounds/cash.ogg Normal file

Binary file not shown.

9
sounds/license.txt Normal file

@ -0,0 +1,9 @@
EmeraldBank Mod Souds License
Sounds from https://freesound.org
- cash.ogg:
File original name: cash_register.wav
License: CC-0 (Public Domain)