Add setting for an overpowered strategy

This commit is contained in:
Emik 2026-04-16 20:01:52 +02:00
parent 5d096d5f58
commit 7da197900e
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
6 changed files with 21 additions and 3 deletions

View file

@ -6,4 +6,5 @@ return {
import_funky = false,
no_highlight_limit = true,
no_wild_debuff = true,
scribable_basket = false,
}

View file

@ -406,6 +406,7 @@ return {
b_Roland_fuse = "FUSE",
b_Roland_equinox_assist = "Assist: Only hide text (Equinox)",
b_Roland_fusable_escapey = "Fusable Escapey (overpowered)",
b_Roland_scribable_basket = "Scribable Basket (overpowered)",
b_Roland_harsh_ante_scaling = "Harsh ante scaling (Ante 40+)",
b_Roland_illusion_seal = "Allow seals from Illusion voucher",
b_Roland_import_funky = "Debug: Import funky.lua",

View file

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

View file

@ -441,7 +441,7 @@ end
---@param func F|fun(v: V, k: K): boolean
---@return boolean|V
---@nodiscard
---@overload fun(self: F|{ [K]: V }, func: string): boolean|V
---@overload fun(self: F|{ [K]: V }, func: string?): boolean|V
function f:any(func)
func = type(func) == "string" and f.index(func) or func
@ -459,7 +459,7 @@ end
---@param func F|fun(v: V, k: K): boolean
---@return boolean|V
---@nodiscard
---@overload fun(self: F|{ [K]: V }, func: string): boolean|V
---@overload fun(self: F|{ [K]: V }, func: string?): boolean|V
function f:all(func)
func = type(func) == "string" and f.index(func) or func

View file

@ -61,6 +61,7 @@ function SMODS.current_mod.config_tab()
toggle "no_highlight_limit",
_G["Talisman"] and toggle "harsh_ante_scaling",
toggle "fusable_escapey",
G.P_CENTERS.c_Bakery_Scribe and toggle "scribable_basket",
toggle "equinox_assist",
SMODS.Mods.DebugPlus and toggle "import_funky",
},

View file

@ -142,3 +142,18 @@ function get_blind_amount(ante, ...)
(ante / 2 >= loop and big:new {blind(rem), ante / loop} or
(big.constants and big.constants.TEN or big:new {10}):pow(blind(rem))))
end
q(function()
if not G.P_CENTERS.c_Bakery_Scribe then
return
end
local orig_can_use = G.P_CENTERS.c_Bakery_Scribe.can_use
function G.P_CENTERS.c_Bakery_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)