Change consumables

This commit is contained in:
Emik 2026-06-17 21:26:50 +02:00
parent e2b66b1931
commit 717a690a9c
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 41 additions and 37 deletions

View file

@ -20,6 +20,42 @@ payload = """k_walledgarden = "Walled Garden",
k_walledgarden_description = "Personal ruleset for modded Balatro.",""" k_walledgarden_description = "Personal ruleset for modded Balatro.","""
match_indent = true match_indent = true
[[patches]]
[patches.pattern]
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
pattern = "local parsedAction = json.decode(msg)"
position = "at"
payload = """local garden, parsedAction = pcall(function()
return json.decode(msg)
end)
if not garden or type(parsedAction) ~= "table" then
return sendErrorMessage(
"# **DESYNC MAY HAVE OCCURED!!!** | We don't know how to parse this! " ..
tostring(garden) ..
": " ..
tostring(parsedAction), "MULTIPLAYER"
)
end
"""
match_indent = true
[[patches]]
[patches.pattern]
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
pattern = "MP.GAME.end_pvp = true"
position = "before"
payload = """(function()
return MP.LOBBY.config.ruleset == "ruleset_mp_walledgarden" and
ease_dollars(
MP.LOBBY.deck.back == "Green Deck" and
G.GAME.round_resets.hands * 2 + G.GAME.round_resets.discards or
G.GAME.round_resets.hands
)
end)()
"""
match_indent = true
[[patches]] [[patches]]
[patches.copy] [patches.copy]
target = '=[SMODS Multiplayer "rulesets/experimental/experimental.lua"]' target = '=[SMODS Multiplayer "rulesets/experimental/experimental.lua"]'
@ -39,6 +75,8 @@ payload = """sendInfoMessage("Attempting to register the Walled Garden ruleset..
"m_Bakery_TimeWalk", "m_Bakery_TimeWalk",
}, },
consumables = { consumables = {
-- Banned in favor of `c_mp_ouija_standard`.
"c_ouija",
-- Allows you to duplicate your strongest joker, -- Allows you to duplicate your strongest joker,
-- potentially even multiple times, for one hand. -- potentially even multiple times, for one hand.
-- Skipping on a Scribe almost guarantees a lost life. -- Skipping on a Scribe almost guarantees a lost life.
@ -47,6 +85,8 @@ payload = """sendInfoMessage("Attempting to register the Walled Garden ruleset..
"c_bongcloud_the_knight", "c_bongcloud_the_knight",
-- Immediately converges gameplay to Flush Five. -- Immediately converges gameplay to Flush Five.
"c_Roland_void", "c_Roland_void",
-- Why add more variance on something that's already volatile?
"c_mp_ectoplasm_standard",
-- Almost always better than any other planet card. -- Almost always better than any other planet card.
"c_mp_asteroid", "c_mp_asteroid",
}, },
@ -111,39 +151,3 @@ payload = """sendInfoMessage("Attempting to register the Walled Garden ruleset..
end)() end)()
""" """
match_indent = true match_indent = true
[[patches]]
[patches.pattern]
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
pattern = "local parsedAction = json.decode(msg)"
position = "at"
payload = """local garden, parsedAction = pcall(function()
return json.decode(msg)
end)
if not garden or type(parsedAction) ~= "table" then
return sendErrorMessage(
"# **DESYNC MAY HAVE OCCURED!!!** | We don't know how to parse this! " ..
tostring(garden) ..
": " ..
tostring(parsedAction), "MULTIPLAYER"
)
end
"""
match_indent = true
[[patches]]
[patches.pattern]
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
pattern = "MP.GAME.end_pvp = true"
position = "before"
payload = """(function()
return MP.LOBBY.config.ruleset == "ruleset_mp_walledgarden" and
ease_dollars(
MP.LOBBY.deck.back == "Green Deck" and
G.GAME.round_resets.hands * 2 + G.GAME.round_resets.discards or
G.GAME.round_resets.hands
)
end)()
"""
match_indent = true

View file

@ -1,6 +1,6 @@
{ {
"priority": 10000001, "priority": 10000001,
"version": "1.0.11", "version": "1.0.12",
"id": "WalledGarden", "id": "WalledGarden",
"name": "WalledGarden", "name": "WalledGarden",
"icon_path": "icon.png", "icon_path": "icon.png",