Add compatibility patches
This commit is contained in:
parent
a23810f05d
commit
14276eb64d
2 changed files with 25 additions and 1 deletions
24
lovely.toml
24
lovely.toml
|
|
@ -65,6 +65,7 @@ position = "at"
|
||||||
payload = "elseif G.GAME.blind_on_deck == 'Big' then"
|
payload = "elseif G.GAME.blind_on_deck == 'Big' then"
|
||||||
match_indent = true
|
match_indent = true
|
||||||
|
|
||||||
|
# Misfortune Cookie
|
||||||
[[patches]]
|
[[patches]]
|
||||||
[patches.pattern]
|
[patches.pattern]
|
||||||
target = "card.lua"
|
target = "card.lua"
|
||||||
|
|
@ -108,6 +109,7 @@ payload = """if next(SMODS.find_card "j_Roland_misfortune") then
|
||||||
end"""
|
end"""
|
||||||
match_indent = true
|
match_indent = true
|
||||||
|
|
||||||
|
# Frozen
|
||||||
[[patches]]
|
[[patches]]
|
||||||
[patches.pattern]
|
[patches.pattern]
|
||||||
target = "card.lua"
|
target = "card.lua"
|
||||||
|
|
@ -153,3 +155,25 @@ pattern = "math\\.floor\\(\\(G\\.GAME\\.dollars \\+ \\(G\\.GAME\\.dollar_buffer
|
||||||
position = "at"
|
position = "at"
|
||||||
payload = "SMODS.Mods.Roland.bootstraps_mult(self)"
|
payload = "SMODS.Mods.Roland.bootstraps_mult(self)"
|
||||||
match_indent = true
|
match_indent = true
|
||||||
|
|
||||||
|
[[patches]]
|
||||||
|
[patches.regex]
|
||||||
|
target = "card.lua"
|
||||||
|
pattern = "if self\\.ability\\.h_size ~= 0 then"
|
||||||
|
position = "at"
|
||||||
|
payload = "if self.ability.h_size and self.ability.h_size ~= 0 then"
|
||||||
|
|
||||||
|
[[patches]]
|
||||||
|
[patches.regex]
|
||||||
|
target = "card.lua"
|
||||||
|
pattern = "if self\\.ability\\.d_size > 0 then"
|
||||||
|
position = "at"
|
||||||
|
payload = "if self.ability.d_size and self.ability.d_size > 0 then"
|
||||||
|
|
||||||
|
[[patches]]
|
||||||
|
[patches.pattern]
|
||||||
|
target = '=[SMODS _ "src/utils.lua"]'
|
||||||
|
pattern = "value = value + card.ability[property]"
|
||||||
|
position = "at"
|
||||||
|
payload = "value = value + (card.ability[property] or 0)"
|
||||||
|
match_indent = true
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.47",
|
"version": "2.9.48",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue