Add debugger

This commit is contained in:
Emik 2025-03-26 18:47:18 +01:00
parent e1bf9ef2b2
commit 24d47bb04e
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D
2 changed files with 6 additions and 1 deletions

View file

@ -4,7 +4,7 @@
"name": "Roland",
"prefix": "Roland",
"author": ["Emik"],
"version": "1.2.0",
"version": "1.2.1",
"badge_colour": "8BE9FD",
"main_file": "src/main.lua",
"badge_text_colour": "44475A",

View file

@ -70,6 +70,11 @@ SMODS.Joker {
scared[2] or "",
}}
end,
calculate = function (_, _, context)
if type(G.escapey_debugger) == "function" then
G.escapey_debugger(F.reduce(context, "", function (acc, _, next) return acc .. ", " .. next end, pairs):sub(2))
end
end,
Bakery_can_use = function(_, card)
return not card.debuff and can_use() and (
#G.GAME.tags ~= 0 or