You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (self.config.center.undiscovered and not self.config.center.undiscovered.no_overlay) or not( SMODS.UndiscoveredSprites[self.ability.set] and SMODS.UndiscoveredSprites[self.ability.set].no_overlay) then
# Determines whether to draw the base card's front or not
148
-
# Card:draw()
149
-
[[patches]]
150
-
[patches.pattern]
151
-
target = "card.lua"
152
-
pattern = "if self.children.front and self.ability.effect ~= 'Stone Card' then"
153
-
match_indent = true
154
-
position = "at"
155
-
payload = "if self.children.front and (self.ability.delayed or (self.ability.effect ~= 'Stone Card' and not self.config.center.replace_base_card)) then"
156
145
# Add the delayed property to sprites that are delayed
Copy file name to clipboardExpand all lines: lovely/fixes.toml
-25Lines changed: 0 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -465,31 +465,6 @@ pattern = "for _, v in pairs(G.I.SPRITE) do"
465
465
position = "at"
466
466
payload = 'for k, v in pairs(G.I.SPRITE) do'
467
467
468
-
##
469
-
## Card:draw() - improved mod compatibility
470
-
##
471
-
# Add option for sprites to not be drawn
472
-
[[patches]]
473
-
[patches.pattern]
474
-
target = "card.lua"
475
-
match_indent = true
476
-
pattern = '''
477
-
if k ~= 'focused_ui' and k ~= "front" and k ~= "back" and k ~= "soul_parts" and k ~= "center" and k ~= 'floating_sprite' and k~= "shadow" and k~= "use_button" and k ~= 'buy_button' and k ~= 'buy_and_use_button' and k~= "debuff" and k ~= 'price' and k~= 'particles' and k ~= 'h_popup' then v:draw() end'''
478
-
position = "at"
479
-
payload = '''
480
-
if not v.custom_draw and k ~= 'focused_ui' and k ~= "front" and k ~= "back" and k ~= "soul_parts" and k ~= "center" and k ~= 'floating_sprite' and k~= "shadow" and k~= "use_button" and k ~= 'buy_button' and k ~= 'buy_and_use_button' and k~= "debuff" and k ~= 'price' and k~= 'particles' and k ~= 'h_popup' then v:draw() end'''
481
-
482
-
# This check is not necessary?
483
-
[[patches]]
484
-
[patches.pattern]
485
-
target = "card.lua"
486
-
match_indent = true
487
-
pattern = '''
488
-
if self.edition or self.seal or self.ability.eternal or self.ability.rental or self.ability.perishable or self.sticker or ((self.sticker_run and self.sticker_run ~= 'NONE') and G.SETTINGS.run_stake_stickers) or (self.ability.set == 'Spectral') or self.debuff or self.greyed or (self.ability.name == 'The Soul') or (self.ability.set == 'Voucher') or (self.ability.set == 'Booster') or self.config.center.soul_pos or self.config.center.demo then'''
489
-
position = "at"
490
-
payload = '''
491
-
if true then'''
492
-
493
468
## Make vanilla enhancement jokers work with extra enhancements
Copy file name to clipboardExpand all lines: lovely/sticker.toml
-21Lines changed: 0 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -88,27 +88,6 @@ position = "at"
88
88
match_indent = true
89
89
payload = '''if G.GAME.modifiers.enable_rentals_in_shop and pseudorandom((area == G.pack_cards and 'packssjr' or 'ssjr')..G.GAME.round_resets.ante) > 0.7 and not SMODS.Stickers["rental"].should_apply then'''
90
90
91
-
# Card:draw()
92
-
[[patches]]
93
-
[patches.pattern]
94
-
target = "card.lua"
95
-
pattern = '''if self.ability.name == 'The Soul' and (self.config.center.discovered or self.bypass_discovery_center) then'''
96
-
match_indent = true
97
-
position = "before"
98
-
payload = '''
99
-
for k, v in pairs(SMODS.Stickers) do
100
-
if self.ability[v.key] then
101
-
if v and v.draw and type(v.draw) == 'function' then
0 commit comments