From 50d35bbb4a29beff8eb815439d75d04436687902 Mon Sep 17 00:00:00 2001 From: Emik Date: Sun, 12 Jul 2026 23:29:36 +0200 Subject: [PATCH] Add compatibility patches --- lovely.toml | 24 ++++++++++++++++++++++++ manifest.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/lovely.toml b/lovely.toml index 7e38eb5..5a36942 100644 --- a/lovely.toml +++ b/lovely.toml @@ -65,6 +65,7 @@ position = "at" payload = "elseif G.GAME.blind_on_deck == 'Big' then" match_indent = true +# Misfortune Cookie [[patches]] [patches.pattern] target = "card.lua" @@ -108,6 +109,7 @@ payload = """if next(SMODS.find_card "j_Roland_misfortune") then end""" match_indent = true +# Frozen [[patches]] [patches.pattern] target = "card.lua" @@ -153,3 +155,25 @@ pattern = "math\\.floor\\(\\(G\\.GAME\\.dollars \\+ \\(G\\.GAME\\.dollar_buffer position = "at" payload = "SMODS.Mods.Roland.bootstraps_mult(self)" match_indent = true + +[[patches]] +[patches.regex] +target = "card.lua" +pattern = "if self\\.ability\\.h_size ~= 0 then" +position = "at" +payload = "if self.ability.h_size and self.ability.h_size ~= 0 then" + +[[patches]] +[patches.regex] +target = "card.lua" +pattern = "if self\\.ability\\.d_size > 0 then" +position = "at" +payload = "if self.ability.d_size and self.ability.d_size > 0 then" + +[[patches]] +[patches.pattern] +target = '=[SMODS _ "src/utils.lua"]' +pattern = "value = value + card.ability[property]" +position = "at" +payload = "value = value + (card.ability[property] or 0)" +match_indent = true diff --git a/manifest.json b/manifest.json index 1223e86..793ecb7 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "Roland", "name": "Roland", "prefix": "Roland", - "version": "2.9.47", + "version": "2.9.48", "badge_colour": "8BE9FD", "display_name": "Roland", "main_file": "src/main.lua",