Remove redundant duplicate hook
This commit is contained in:
parent
9af0495bf4
commit
a529b84ae6
2 changed files with 1 additions and 36 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"id": "Roland",
|
||||
"name": "Roland",
|
||||
"prefix": "Roland",
|
||||
"version": "2.9.5",
|
||||
"version": "2.9.6",
|
||||
"badge_colour": "8BE9FD",
|
||||
"display_name": "Roland",
|
||||
"main_file": "src/main.lua",
|
||||
|
|
|
|||
|
|
@ -119,38 +119,3 @@ function get_blind_amount(ante, ...)
|
|||
(ante / 2 >= loop and big:new {rem, ante / loop} or
|
||||
(big.constants and big.constants.TEN or big:new {10}):pow(rem)))
|
||||
end
|
||||
|
||||
q {
|
||||
blocking = false,
|
||||
no_delete = true,
|
||||
func = function()
|
||||
local orig_flip_double_sided = (Bakery_API or {}).flip_double_sided
|
||||
|
||||
if not orig_flip_double_sided then
|
||||
return false
|
||||
end
|
||||
|
||||
function Bakery_API.flip_double_sided(card, ...)
|
||||
if not card.edition or not card.edition.Roland_frozen then
|
||||
return orig_flip_double_sided(card, ...)
|
||||
end
|
||||
end
|
||||
|
||||
q(function()
|
||||
local scribe = G.P_CENTERS.c_Bakery_Scribe
|
||||
|
||||
if not scribe then
|
||||
return true
|
||||
end
|
||||
|
||||
local orig_can_use = scribe.can_use
|
||||
|
||||
function scribe.can_use(...)
|
||||
return orig_can_use(...) and
|
||||
(SMODS.Mods.Roland.config.scribable_basket or f(G.jokers.highlighted):all(function(v)
|
||||
return v.config.center.key ~= "j_Roland_basket"
|
||||
end))
|
||||
end
|
||||
end)
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue