summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hunger.lua1
-rw-r--r--sounds/hbhunger_eat_generic.oggbin0 -> 61040 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/hunger.lua b/hunger.lua
index 71488a2..b7ae7b6 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -26,6 +26,7 @@ function hbhunger.item_eat(hunger_change, replace_with_item, poisen, heal)
local name = user:get_player_name()
local h = tonumber(hbhunger.hunger[name])
local hp = user:get_hp()
+ minetest.sound_play({name = "hbhunger_eat_generic", gain = 1}, {pos=user:getpos(), max_hear_distance = 16})
-- Saturation
if h < 30 and hunger_change then
diff --git a/sounds/hbhunger_eat_generic.ogg b/sounds/hbhunger_eat_generic.ogg
new file mode 100644
index 0000000..b6acd07
--- /dev/null
+++ b/sounds/hbhunger_eat_generic.ogg
Binary files differ