Add fallback joker
This commit is contained in:
parent
c644cd9178
commit
02181d6435
3 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"author": [
|
||||
"Emik"
|
||||
],
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"badge_colour": "8BE9FD",
|
||||
"main_file": "src/main.lua",
|
||||
"badge_text_colour": "44475A",
|
||||
|
|
|
|||
|
|
@ -247,7 +247,9 @@ SMODS.Challenge {
|
|||
|
||||
q(function()
|
||||
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
|
||||
|
||||
f {
|
||||
|
|
|
|||
|
|
@ -68,14 +68,13 @@ function G.FUNCS.use_card(e, ...)
|
|||
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()
|
||||
|
||||
if normal then
|
||||
return
|
||||
end
|
||||
|
||||
e.config.ref_table:remove()
|
||||
G.GAME.pack_choices = G.GAME.pack_choices - 1
|
||||
local _ = G.GAME.pack_choices <= 0 and G.FUNCS.end_consumeable()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue