From 24d47bb04eb1716921f77776c2f8e3b6e0a1525c Mon Sep 17 00:00:00 2001 From: Emik Date: Wed, 26 Mar 2025 18:47:18 +0100 Subject: [PATCH] Add debugger --- manifest.json | 2 +- src/joker.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index cc63ea3..5b0b652 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/src/joker.lua b/src/joker.lua index ab27f97..f1b25bf 100644 --- a/src/joker.lua +++ b/src/joker.lua @@ -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