Add fallback joker

This commit is contained in:
Emik 2026-05-25 22:13:41 +02:00
parent c644cd9178
commit eae059c37b
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 5 additions and 4 deletions

View file

@ -6,7 +6,7 @@
"author": [ "author": [
"Emik" "Emik"
], ],
"version": "2.7.0", "version": "2.7.1",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"main_file": "src/main.lua", "main_file": "src/main.lua",
"badge_text_colour": "44475A", "badge_text_colour": "44475A",

View file

@ -247,7 +247,9 @@ SMODS.Challenge {
q(function() q(function()
if not G.P_CENTERS.j_Bakery_Spinner then if not G.P_CENTERS.j_Bakery_Spinner then
spin_to_win.jokers = nil f(spin_to_win.jokers):each(function(v)
v.id = "j_joker"
end)
end end
f { f {

View file

@ -68,14 +68,13 @@ function G.FUNCS.use_card(e, ...)
area = e.config.ref_table.from_area, area = e.config.ref_table.from_area,
} }
local normal = e.config.ref_table.area ~= G.pack_cards local normal = G.GAME.pack_choices and e.config.ref_table.area ~= G.pack_cards
e.config.ref_table:remove() e.config.ref_table:remove()
if normal then if normal then
return return
end end
e.config.ref_table:remove()
G.GAME.pack_choices = G.GAME.pack_choices - 1 G.GAME.pack_choices = G.GAME.pack_choices - 1
local _ = G.GAME.pack_choices <= 0 and G.FUNCS.end_consumeable() local _ = G.GAME.pack_choices <= 0 and G.FUNCS.end_consumeable()
end end