Skip to content

Commit 310415c

Browse files
committed
optimize select_music_track for high best hands
1 parent de917a1 commit 310415c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/content.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,13 @@ SMODS.Sound({
520520
key = "music_big",
521521
path = "music_big.ogg",
522522
select_music_track = function()
523-
return Cryptid_config.Cryptid
523+
if G.GAME.cry_music_big then return G.GAME.cry_music_big end
524+
if Cryptid_config.Cryptid
524525
and Cryptid_config.Cryptid.big_music
525-
and to_big(G.GAME.round_scores["hand"].amt) > to_big(10) ^ 1000000
526+
and to_big(G.GAME.round_scores["hand"].amt) > to_big(10) ^ 1000000 then
527+
G.GAME.cry_music_big = true
528+
return true
529+
end
526530
end,
527531
})
528532
SMODS.Sound({

0 commit comments

Comments
 (0)