diff --git a/register_nodes.lua b/register_nodes.lua index 3990ad8..cf6d1d0 100755 --- a/register_nodes.lua +++ b/register_nodes.lua @@ -84,6 +84,10 @@ for i, v in ipairs(eggwars.arena[1].cs) do match.player[attacker].eggs = eggs msg = victim .. "'s egg was destroyed by " .. attacker eggwars.add_tmp_image(victim, 'eggwars_destroyed.png', 5) + minetest.sound_play("eggwars_crack", { + to_player = victim, + gain = 1.0, + }) eggwars.chat_send_match(key, msg) eggwars.update_hud(key, match.player[victim].id) eggwars.match[key] = match