Skip to content

Commit 580042a

Browse files
Fix Current Round interest cap streak
1 parent 5cf5a54 commit 580042a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

lovely.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,16 @@ position = "at"
573573
payload = '''self:change_size(to_big(self.config.last_poll_size - math.floor(G.GAME.dollars/G.GAME.modifiers.minus_hand_size_per_X_dollar)):to_number())'''
574574
match_indent = true
575575

576+
# Current Round Interest Cap Streak
577+
[[patches]]
578+
[patches.pattern]
579+
target = "functions/state_events.lua"
580+
pattern = '''if G.GAME.interest_amount*math.min(math.floor(G.GAME.dollars/5), G.GAME.interest_cap/5) == G.GAME.interest_amount*G.GAME.interest_cap/5 then'''
581+
position = "at"
582+
payload = '''
583+
if to_big(G.GAME.interest_amount*math.min(math.floor(G.GAME.dollars/5), G.GAME.interest_cap/5)) == to_big(G.GAME.interest_amount*G.GAME.interest_cap/5) then'''
584+
match_indent = true
585+
576586
# for now, I'm letting dollar eval ignore bignum, I'll patch it later
577587
[[patches]]
578588
[patches.pattern]
@@ -1518,4 +1528,4 @@ G.E_MANAGER:add_event(Event({
15181528
return true
15191529
end
15201530
}))
1521-
'''
1531+
'''

steamodded_metadata.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--- MOD_AUTHOR: [MathIsFun_, Mathguy24, jenwalter666, cg-223]
55
--- MOD_DESCRIPTION: A mod that increases Balatro's score limit and skips scoring animations.
66
--- PREFIX: talisman
7-
--- VERSION: 2.2.0b
7+
--- VERSION: 2.2.0c
88

99
----------------------------------------------
1010
------------MOD CODE -------------------------

0 commit comments

Comments
 (0)