From 7396ec25af56868562b876405066004358582940 Mon Sep 17 00:00:00 2001 From: Emik Date: Sat, 23 May 2026 16:57:43 +0200 Subject: [PATCH] Remove redundant hooks --- manifest.json | 2 +- src/tweaks.lua | 30 +----------------------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/manifest.json b/manifest.json index 568ac1f..2ec0cc5 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "author": [ "Emik" ], - "version": "2.5.7", + "version": "2.5.8", "badge_colour": "8BE9FD", "main_file": "src/main.lua", "badge_text_colour": "44475A", diff --git a/src/tweaks.lua b/src/tweaks.lua index 4548115..14e4a84 100644 --- a/src/tweaks.lua +++ b/src/tweaks.lua @@ -2,7 +2,6 @@ local f, q = unpack(... or require "lib.shared") SMODS.Joker:take_ownership("joker", {cost = 1}, true) local orig_set_debuff = Card.set_debuff -local orig_copy_card = copy_card function Card:set_debuff(...) if SMODS.get_enhancements(self).m_wild and SMODS.Mods.Roland.config.no_wild_debuff then @@ -46,29 +45,6 @@ function Card:use_consumeable(area, copier, ...) } end -function copy_card(other, new_card, ...) - local ret = orig_copy_card(other, new_card, ...) - - if new_card and new_card.edition and new_card.edition.key == "e_negative" then - --- Fixes an issue where using 'c_death' will make negative - --- cards do the inverse of what they're supposed to do. - local ability = new_card.ability - ability.card_limit = math.max(ability.card_limit, 1) - end - - return ret -end - -q(function() - local orig_can_highlight_area = Bakery_API.can_highlight_area - - function Bakery_API.can_highlight_area(area, ...) - return (area == G.consumeables and - SMODS.Mods.Roland.config.no_highlight_limit) or - orig_can_highlight_area(area, ...) - end -end) - local orig_create_card_for_shop = create_card_for_shop function create_card_for_shop(...) @@ -82,11 +58,7 @@ function create_card_for_shop(...) return ret end - local seal = SMODS.poll_seal { - type_key = "Roland_illusion_seal", - guaranteed = true, - } - + local seal = SMODS.poll_seal {type_key = "Roland_illusion_seal", guaranteed = true} ret:set_seal(seal, true, true) return ret end