Skip to content

Commit 2595862

Browse files
Fix The Joke
1 parent 0e8846e commit 2595862

File tree

3 files changed

+20
-33
lines changed

3 files changed

+20
-33
lines changed

lib/overrides.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,3 +2197,15 @@ G.FUNCS.unlock_all = function(e)
21972197
unlock_allref(e)
21982198
G.PROFILES[G.SETTINGS.profile].cry_none = (Cryptid.enabled("set_cry_poker_hand_stuff") == true)
21992199
end
2200+
2201+
-- Calc ante gain for The Joke (Scuffed)
2202+
local smods_calc = SMODS.calculate_context
2203+
function SMODS.calculate_context(context, return_table, no_resolve)
2204+
local aaa = smods_calc(context, return_table, no_resolve)
2205+
if context.modify_ante and context.ante_end then
2206+
if G.GAME.blind then
2207+
aaa.modify = G.GAME.blind:cry_calc_ante_gain() - 1
2208+
end
2209+
end
2210+
return aaa
2211+
end

lovely/blind.toml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,6 @@ version = "1.0.0"
33
dump_lua = true
44
priority = -1
55

6-
# The Tax effect
7-
[[patches]]
8-
[patches.pattern]
9-
target = "functions/state_events.lua"
10-
pattern = "func = (function() update_hand_text({delay = 0, immediate = true}, {mult = 0, chips = 0, chip_total = math.floor(hand_chips*mult), level = '', handname = ''});play_sound('button', 0.9, 0.6);return true end)"
11-
position = "at"
12-
payload = "func = (function() update_hand_text({delay = 0, immediate = true}, {mult = 0, chips = 0, chip_total = G.GAME.blind.cry_cap_score and G.GAME.blind:cry_cap_score(math.floor(hand_chips*mult)) or math.floor(hand_chips*mult), level = '', handname = ''});play_sound('button', 0.9, 0.6);return true end)"
13-
match_indent = true
14-
15-
[[patches]]
16-
[patches.pattern]
17-
target = "functions/state_events.lua"
18-
pattern = "ease_to = G.GAME.chips + math.floor(hand_chips*mult),"
19-
position = "at"
20-
payload = "ease_to = G.GAME.chips + (G.GAME.blind.cry_cap_score and G.GAME.blind:cry_cap_score(math.floor(hand_chips*mult)) or math.floor(hand_chips*mult)),"
21-
match_indent = true
22-
23-
# Bunco (Magenta Dagger) and Cryptid (The Tax) compat
24-
[[patches]]
25-
[patches.pattern]
26-
target = 'functions/state_events.lua'
27-
pattern = "ease_to = G.GAME.chips + math.floor(hand_chips * mult) * (e and e.antiscore and -1 or 1),"
28-
position = 'at'
29-
match_indent = true
30-
payload = '''ease_to = G.GAME.chips + (G.GAME.blind.cry_cap_score and G.GAME.blind:cry_cap_score(math.floor(hand_chips*mult)) or math.floor(hand_chips*mult)) * (e and e.antiscore and -1 or 1),'''
31-
326
# Fix a crash related to undebuffing Jokers at end of round
337
[[patches]]
348
[patches.pattern]

lovely/stake.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,14 @@ match_indent = true
287287
# Sapphire Stake - ante tax
288288
# The Joke boss effect
289289
# Save game state for Revert
290-
[[patches]]
291-
[patches.pattern]
292-
target = "functions/state_events.lua"
293-
pattern = "delay(0.4); ease_ante(1); delay(0.4); check_for_unlock({type = 'ante_up', ante = G.GAME.round_resets.ante + 1})"
294-
position = "at"
295-
payload = "delay(0.4); ease_ante(G.GAME.blind and G.GAME.blind:cry_calc_ante_gain() or 1); Cryptid.apply_ante_tax(); delay(0.4); check_for_unlock({type = 'ante_up', ante = G.GAME.round_resets.ante + 1})"
296-
match_indent = true
290+
# this needs to be redone at a later point
291+
# [[patches]]
292+
#[patches.pattern]
293+
#target = "functions/state_events.lua"
294+
#pattern = "delay(0.4); ease_ante(1); delay(0.4); check_for_unlock({type = 'ante_up', ante = G.GAME.round_resets.ante + 1})"
295+
#position = "at"
296+
#payload = "delay(0.4); ease_ante(G.GAME.blind and G.GAME.blind:cry_calc_ante_gain() or 1); Cryptid.apply_ante_tax(); delay(0.4); check_for_unlock({type = 'ante_up', ante = G.GAME.round_resets.ante + 1})"
297+
#match_indent = true
297298

298299

299300
# Emerald Stake - Permanently flipped cards

0 commit comments

Comments
 (0)