From 4143e37f69f76043a63ba27c4969d414a29b658e Mon Sep 17 00:00:00 2001 From: normalcat Date: Tue, 19 Aug 2025 18:14:31 -0700 Subject: [PATCH 1/2] fix lovely patch to accomodate for talisman --- lovely.toml | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/lovely.toml b/lovely.toml index bef1dea..72125b0 100644 --- a/lovely.toml +++ b/lovely.toml @@ -18,33 +18,34 @@ assembled_string = assembled_string..(type(subpart) == 'string' and subpart or ( ''' match_indent = true +#i know its ugly but its to make sure it doesnt do stuff when talisman is installed [[patches]] [patches.pattern] target = "functions/common_events.lua" pattern = "elseif eval_type == 'dollars' then" position = "before" payload = ''' - elseif eval_type == 'x_chips' then - sound = 'cry_xchip' - amt = amt - text = 'X' .. number_format(amt) - colour = G.C.CHIPS - config.type = 'fade' - config.scale = 0.7 - elseif eval_type == 'e_chips' then - sound = 'cry_echips' - amt = amt - text = '^' .. number_format(amt) .. ' ' .. localize('k_chips') - colour = G.C.DARK_EDITION - config.type = 'fade' - config.scale = 0.7 - elseif eval_type == 'e_mult' then - sound = 'cry_emult' - amt = amt - text = '^' .. number_format(amt) .. ' ' .. localize('k_mult') - colour = G.C.DARK_EDITION - config.type = 'fade' - config.scale = 0.7 +elseif eval_type == 'x_chips' and not (SMODS.Mods["Talisman"] or {}).can_load then + sound = 'cryl_xchip' + amt = amt + text = 'X' .. number_format(amt) + colour = G.C.CHIPS + config.type = 'fade' + config.scale = 0.7 +elseif eval_type == 'e_chips' and not (SMODS.Mods["Talisman"] or {}).can_load then + sound = 'cryl_echips' + amt = amt + text = '^' .. number_format(amt) .. ' ' .. localize('k_chips') + colour = G.C.DARK_EDITION + config.type = 'fade' + config.scale = 0.7 +elseif eval_type == 'e_mult' and not (SMODS.Mods["Talisman"] or {}).can_load then + sound = 'cryl_emult' + amt = amt + text = '^' .. number_format(amt) .. ' ' .. localize('k_mult') + colour = G.C.DARK_EDITION + config.type = 'fade' + config.scale = 0.7 ''' match_indent = true From 837e1393e8f27f8090030c4bb7e630fc6b5a49ea Mon Sep 17 00:00:00 2001 From: normalcat Date: Tue, 19 Aug 2025 18:41:07 -0700 Subject: [PATCH 2/2] ^chult now procs but it still reverts --- talisman.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/talisman.lua b/talisman.lua index ffda86a..0998f51 100644 --- a/talisman.lua +++ b/talisman.lua @@ -107,8 +107,8 @@ if SMODS and SMODS.Mods and (not SMODS.Mods.Talisman or not SMODS.Mods.Talisman. end end for _, v in ipairs({ - "e_mult", - "e_chips", + "e_mult", "emult", "Emult_mod", + "e_chips", "echips", "Echips_mod", }) do table.insert(SMODS.scoring_parameter_keys, v) end