Skip to content

Commit 7ce601f

Browse files
Merge pull request SpectralPack#669 from crazybot27/main
make debuffed negative playing cards not take up space
2 parents 4e0164a + b3c33a9 commit 7ce601f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

lovely/misc.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,4 +621,21 @@ position = "before"
621621
payload = """
622622
if not eligible_card then return true end
623623
"""
624-
match_indent = true
624+
match_indent = true
625+
626+
#Make negative playing cards not take up space even when debuffed
627+
[[patches]]
628+
[patches.pattern]
629+
target = "cardarea.lua"
630+
pattern = """if not card.debuff and card.edition and card.edition.card_limit and (self == G.hand) then"""
631+
position = "at"
632+
payload = """if card.edition and card.edition.card_limit and (self == G.hand) then"""
633+
match_indent = true
634+
635+
[[patches]]
636+
[patches.pattern]
637+
target = "functions/state_events.lua"
638+
pattern = """limit = limit - 1 + (not card.debuff and card.edition and card.edition.card_limit or 0)"""
639+
position = "at"
640+
payload = """limit = limit - 1 + (card.edition and card.edition.card_limit or 0)"""
641+
match_indent = true

0 commit comments

Comments
 (0)