54 lines
2.1 KiB
TOML
54 lines
2.1 KiB
TOML
[manifest]
|
|
version = "1.0.0"
|
|
dump_lua = true
|
|
priority = -1
|
|
|
|
# The Tax effect
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "functions/state_events.lua"
|
|
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)"
|
|
position = "at"
|
|
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)"
|
|
match_indent = true
|
|
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "functions/state_events.lua"
|
|
pattern = "ease_to = G.GAME.chips + math.floor(hand_chips*mult),"
|
|
position = "at"
|
|
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)),"
|
|
match_indent = true
|
|
|
|
# Bunco (Magenta Dagger) and Cryptid (The Tax) compat
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = 'functions/state_events.lua'
|
|
pattern = "ease_to = G.GAME.chips + math.floor(hand_chips * mult) * (e and e.antiscore and -1 or 1),"
|
|
position = 'at'
|
|
match_indent = true
|
|
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),'''
|
|
|
|
# Fix a crash related to undebuffing Jokers at end of round
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "card.lua"
|
|
pattern = "if not G.P_CENTERS['e_'..(self.edition.type)].discovered then"
|
|
position = "at"
|
|
payload = "if self.edition.type and G.P_CENTERS['e_'..(self.edition.type)] and not G.P_CENTERS['e_'..(self.edition.type)].discovered then"
|
|
match_indent = true
|
|
|
|
# Blocks hands with more than 5 cards with Psychic
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "blind.lua"
|
|
pattern = "if self.debuff.h_size_ge and #cards < self.debuff.h_size_ge then"
|
|
position = "before"
|
|
payload = '''
|
|
if self.name == "The Psychic" and #cards > 5 then
|
|
self.triggered = true
|
|
return true
|
|
end
|
|
'''
|
|
match_indent = true
|