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
Copy file name to clipboardExpand all lines: lovely/misprint.toml
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -40,23 +40,22 @@ match_indent = true
40
40
[[patches]]
41
41
[patches.pattern]
42
42
target = "card.lua"
43
-
pattern = "G.GAME.pack_choices = self.ability.choose or self.config.center.config.choose or 1"
43
+
pattern = "G.GAME.pack_choices = math.min((self.ability.choose or self.config.center.config.choose or 1) + (G.GAME.modifiers.booster_choice_mod or 0), self.ability.extra and math.max(1, self.ability.extra + (G.GAME.modifiers.booster_size_mod or 0)) or self.config.center.extra and math.max(1, self.config.center.extra + (G.GAME.modifiers.booster_size_mod or 0)) or 1)"
44
44
position = "after"
45
45
payload = '''
46
46
G.GAME.pack_choices = ((self.ability.choose and self.ability.extra) and math.min(math.floor(self.ability.extra), self.ability.choose)) or 1
47
47
if G.GAME.modifiers.cry_misprint_min then
48
48
G.GAME.pack_size = self.ability.extra
49
-
if to_big(G.GAME.pack_size) < to_big(1) then G.GAME.pack_size = 1 end
49
+
if G.GAME.pack_size < 1 then G.GAME.pack_size = 1 end
0 commit comments