Skip to content

Commit 255250b

Browse files
committed
wtf
1 parent ef304de commit 255250b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lovely/misprint.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ payload = '''
4646
G.GAME.pack_choices = ((self.ability.choose and self.ability.extra) and math.min(math.floor(self.ability.extra), self.ability.choose)) or 1
4747
if G.GAME.modifiers.cry_misprint_min then
4848
G.GAME.pack_size = self.ability.extra
49-
if G.GAME.pack_size < 1 then G.GAME.pack_size = 1 end
49+
if to_big(G.GAME.pack_size) < to_big(1) then G.GAME.pack_size = 1 end
5050
self.ability.extra = G.GAME.pack_size
5151
G.GAME.pack_choices = math.min(math.floor(G.GAME.pack_size), self.ability.choose)
5252
--G.GAME.pack_choices = math.min(math.floor(G.GAME.pack_size),cry_format(G.GAME.pack_choices * Cryptid.log_random(pseudoseed('cry_misprint_p'..G.GAME.round_resets.ante),G.GAME.modifiers.cry_misprint_min,G.GAME.modifiers.cry_misprint_max),"%.2f"))
@@ -56,7 +56,7 @@ if G.GAME.cry_oboe then
5656
G.GAME.pack_choices = G.GAME.pack_choices + G.GAME.cry_oboe
5757
G.GAME.cry_oboe = nil
5858
end
59-
if G.GAME.boostertag and G.GAME.boostertag > 0 then
59+
if G.GAME.boostertag and to_big(G.GAME.boostertag) > to_big(0) then
6060
self.ability.extra = self.ability.extra * 2
6161
G.GAME.pack_choices = G.GAME.pack_choices * 2
6262
G.GAME.boostertag = math.max(0, G.GAME.boostertag - 1)
@@ -82,6 +82,8 @@ G.GAME.pack_size = self.ability.extra
8282
'''
8383
match_indent = true
8484

85+
#idk wtf is going on my head hurts
86+
#but this should fix it
8587
[[patches]]
8688
[patches.pattern]
8789
target = "card.lua"
@@ -91,7 +93,8 @@ if booster_obj and SMODS.Centers[booster_obj.key] then
9193
'''
9294
position = "before"
9395
payload = '''
94-
if self.ability.extra < 1 then self.ability.extra = 1 end
96+
self.ability.extra = to_number(self.ability.extra)
97+
if to_big(self.ability.extra) < to_big(1) then self.ability.extra = 1 end
9598
'''
9699
match_indent = true
97100

0 commit comments

Comments
 (0)