Skip to content

Commit a89f6c6

Browse files
Convert Lovely Patches + Semicolon Fix
- Fixed semicolon text showing "Saved by Mr. Bones"
1 parent f826070 commit a89f6c6

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

lib/modifiers.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ G.FUNCS.evaluate_round = function()
407407
G.GAME.interest_cap = cry_best_interest_cap() -- blehhhhhh
408408
--Semicolon Stuff
409409
if G.GAME.current_round.semicolon then
410+
G.GAME.saved_text = ";"
410411
add_round_eval_row({ dollars = 0, name = "blind1", pitch = 0.95, saved = true })
411412
G.E_MANAGER:add_event(Event({
412413
trigger = "before",

lib/overrides.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,8 @@ function new_round()
12131213
-- I don't remember exactly what this patch was for, perhaps issues with syncing hand size with jokers like Effarcire?
12141214
G.hand:change_size(0)
12151215
nr()
1216+
-- Reset Semicolon
1217+
G.GAME.current_round.semicolon = false
12161218
-- Force losses if Rush hour is played with clock and lavender loop disabled
12171219
if G.GAME.modifiers.cry_rush_hour then
12181220
if not (Cryptid.enabled("bl_cry_clock") == true) or not (Cryptid.enabled("bl_cry_lavender_loop") == true) then

lovely/code.toml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,6 @@ if G.GAME.current_round.semicolon then
8080
end
8181
'''
8282

83-
# Semicolon - end screen text
84-
[[patches]]
85-
[patches.regex]
86-
target = "functions/common_events.lua"
87-
pattern = '''localize\(type\(SMODS.saved\) == 'string' and SMODS.saved or 'ph_mr_bones'\)..' '\}, colours = \{G.C.FILTER'''
88-
position = 'at'
89-
# match_indent = true
90-
line_prepend = ''
91-
payload = '''(G.GAME.current_round.semicolon and ";" or localize(type(SMODS.saved) == 'string' and SMODS.saved or 'ph_mr_bones'))..' '}, colours = {(G.GAME.current_round.semicolon and G.C.SET.Code or G.C.FILTER)'''
92-
9383
# Semicolon - polished UI
9484
[[patches]]
9585
[patches.pattern]
@@ -117,17 +107,6 @@ position = "at"
117107
payload = '''{n=G.UIT.R, config={id = 'cash_out_button', align = "cm", padding = 0.1, minw = 7, r = 0.15, colour = G.GAME.current_round.semicolon and G.C.SET.Code or G.C.ORANGE, shadow = true, hover = true, one_press = true, button = 'cash_out', focus_args = {snap_to = true}}, nodes={'''
118108
match_indent = true
119109

120-
# Semicolon - reset value at start of round
121-
[[patches]]
122-
[patches.pattern]
123-
target = "functions/state_events.lua"
124-
pattern = "G.GAME.blind:set_blind(G.GAME.round_resets.blind)"
125-
position = "after"
126-
payload = '''
127-
G.GAME.current_round.semicolon = false
128-
'''
129-
match_indent = true
130-
131110
# Delete - placeholder booster, in the case that all are deleted
132111
[[patches]]
133112
[patches.regex]

0 commit comments

Comments
 (0)