From 59d8d3113f70de8ef50c346f9b6d36504553817c Mon Sep 17 00:00:00 2001 From: Emik Date: Tue, 28 Jul 2026 00:37:12 +0200 Subject: [PATCH] Allow Rot to appear multiple times --- manifest.json | 2 +- src/slugcat.lua | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 44f7353..db80ee9 100644 --- a/manifest.json +++ b/manifest.json @@ -18,5 +18,5 @@ "conflicts": [ "Jen" ], - "version": "1.11.15" + "version": "1.11.16" } \ No newline at end of file diff --git a/src/slugcat.lua b/src/slugcat.lua index 54a52f5..c11c89b 100644 --- a/src/slugcat.lua +++ b/src/slugcat.lua @@ -788,13 +788,15 @@ SMODS.Joker { cost = 1, rarity = "jane_junk", in_pool = function(_, _) - for _, v in pairs(SMODS.find_card("j_jane_honey")) do - if tonumber(v.ability.extra.level) == #Jane.rarity_ids - 1 then - return true - end + if next(SMODS.find_card("j_jane_rot")) then + return true, {allow_duplicates = true} end - return not not next(SMODS.find_card("j_jane_rot")) + for _, v in pairs(SMODS.find_card("j_jane_honey")) do + if tonumber(v.ability.extra.level) == #Jane.rarity_ids - 1 then + return true, {allow_duplicates = true} + end + end end, calculate = Jane.cry and function(_, card, context) local function has_room()