From 89b072cb455a746c1ad036d7169c029637aaa600 Mon Sep 17 00:00:00 2001 From: Emik Date: Tue, 29 Apr 2025 13:21:52 +0200 Subject: [PATCH] Include other spectrals --- lovely.toml | 8 ++++++++ manifest.json | 2 +- src/slugcat.lua | 12 +++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/lovely.toml b/lovely.toml index 78aa5f5..255c604 100644 --- a/lovely.toml +++ b/lovely.toml @@ -123,6 +123,14 @@ position = "at" payload = "Jane.get_chipmult_sum(hand_chips, mult))" match_indent = true +[[patches]] +[patches.pattern] +target = '=[SMODS Cryptid "items/spectral.lua"]' +pattern = "local _first_dissolve = nil" +position = "after" +payload = 'deletable_jokers = next(SMODS.find_card("j_jane_saint")) and {} or deletable_jokers' +match_indent = true + [[patches]] [patches.pattern] target = '=[SMODS Cryptid "items/exotic.lua"]' diff --git a/manifest.json b/manifest.json index 16d338d..58bb7d0 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.5.5" + "version": "1.5.6" } \ No newline at end of file diff --git a/src/slugcat.lua b/src/slugcat.lua index c13d1c2..b261784 100644 --- a/src/slugcat.lua +++ b/src/slugcat.lua @@ -478,7 +478,8 @@ SMODS.Joker { loc_txt = { name = "The Saint{C:jane_RGB}#1#", text = Cryptid and { - "{C:spectral}Ankh and Gateway {}will {C:attention}not destroy Jokers", + "{C:spectral}Analog{}, {C:spectral}Ankh{}, {C:spectral}Gateway{}, and", + "{C:spectral,s:0.95}Summoning {s:0.95}will {C:attention,s:0.95}not destroy Jokers", "{C:jane_RGB}#2#{}#3#{X:black,C:jane_RGB,s:1.5}#4#{C:spectral}#5#{C:chips}#6#{}#7#{C:mult}#8#", "{C:inactive,s:1.25}#9#{C:attention,s:1.25}#10#{C:inactive,s:1.25}#11#{C:inactive}#12#", } or { @@ -494,8 +495,17 @@ SMODS.Joker { rarity = 4, blueprint_compat = true, loc_vars = function(_, info_queue, card) + if Cryptid then + info_queue[#info_queue + 1] = G.P_CENTERS.c_cry_analog + end + info_queue[#info_queue + 1] = G.P_CENTERS.c_ankh info_queue[#info_queue + 1] = Cryptid and G.P_CENTERS.c_cry_gateway or G.P_CENTERS.c_soul + + if Cryptid then + info_queue[#info_queue + 1] = G.P_CENTERS.c_cry_summoning + end + local extra = card.ability.extra local karma = extra.karma local max_karma = extra.max_karma