Add fallback joker
This commit is contained in:
parent
c644cd9178
commit
eae059c37b
3 changed files with 5 additions and 4 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue