diff --git a/manifest.json b/manifest.json index b5ba8fa..e4cf995 100644 --- a/manifest.json +++ b/manifest.json @@ -12,5 +12,5 @@ "Bakery (>=0.1.26~*)" ], "conflicts": ["Jen"], - "version": "0.2.0" + "version": "0.2.1" } \ No newline at end of file diff --git a/src/joker.lua b/src/joker.lua index 802ebd7..07f5eb0 100644 --- a/src/joker.lua +++ b/src/joker.lua @@ -176,18 +176,6 @@ SMODS.Joker { soul_pos = {x = 1, y = 0}, cost = 8, rarity = 3, - add_to_deck = function(_, _, _) - local honey = SMODS.find_card("j_jane_honey") - - for _, v in ipairs(honey) do - if not v.ability.extra.is_corrupted and v ~= honey[#honey] then - v.sell_cost = v.sell_cost + honey[#honey].sell_cost - v.ability.extra.is_corrupted = true - honey[#honey]:start_dissolve() - honey[#honey] = nil - end - end - end, loc_vars = function(_, _, card) local is_corrupted = card.ability.extra.is_corrupted diff --git a/src/main.lua b/src/main.lua index aaf3292..e9df530 100644 --- a/src/main.lua +++ b/src/main.lua @@ -329,6 +329,17 @@ function Game:update(dt) G.P_BLINDS["bl_jane_wee"].mult = 22 / blind G.P_BLINDS["bl_jane_descending"].mult = math.floor(8 * math.sqrt(blind)) / blind + local honey = SMODS.find_card("j_jane_honey") + + for _, v in ipairs(honey) do + if not v.ability.extra.is_corrupted and v ~= honey[#honey] then + v.sell_cost = v.sell_cost + honey[#honey].sell_cost + v.ability.extra.is_corrupted = true + honey[#honey]:start_dissolve() + honey[#honey] = nil + end + end + if not Jane.bans_done then delete_hardbans() Jane.bans_done = true