Play victory jingle if is tie
This commit is contained in:
parent
444cadb58b
commit
e56f399892
@ -86,7 +86,7 @@ arena_lib.on_celebration("block_league", function(arena, winners)
|
||||
end
|
||||
|
||||
-- se è pareggio, passa una stringa (no one)
|
||||
local is_tie = type(winners) == "string" and true or false
|
||||
local is_tie = type(winners) == "string" and true
|
||||
|
||||
if not is_tie then
|
||||
for pl_name, pl_stats in pairs(arena.players) do
|
||||
@ -99,7 +99,7 @@ arena_lib.on_celebration("block_league", function(arena, winners)
|
||||
|
||||
else
|
||||
for pl_name, pl_stats in pairs(arena.players) do
|
||||
minetest.sound_play("bl_jingle_defeat", {to_player = pl_name})
|
||||
minetest.sound_play("bl_jingle_victory", {to_player = pl_name})
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user