Ban 2 jokers, rework how money is handed out

This commit is contained in:
Emik 2026-06-11 13:24:23 +02:00
parent de1c151802
commit 46107b7d72
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 18 additions and 9 deletions

View file

@ -24,8 +24,7 @@ match_indent = true
[patches.copy]
target = '=[SMODS Multiplayer "rulesets/experimental/experimental.lua"]'
position = "prepend"
payload = """
sendInfoMessage("Attempting to register the Walled Garden ruleset...", "WalledGarden");
payload = """sendInfoMessage("Attempting to register the Walled Garden ruleset...", "WalledGarden");
(function()
local banned = {
@ -52,6 +51,8 @@ sendInfoMessage("Attempting to register the Walled Garden ruleset...", "WalledGa
"c_mp_asteroid",
},
jokers = {
-- See `j_mr_bones`
"j_Bakery_Wearywolf",
-- See below.
"j_Roland_idle",
-- Banned because of the existence of `j_Roland_idle` and `j_Bakery_Wherewolf`.
@ -63,6 +64,10 @@ sendInfoMessage("Attempting to register the Walled Garden ruleset...", "WalledGa
"j_chicot",
-- See `j_chicot`.
"j_luchador",
-- The first ante is the only time this would trigger.
"j_matador",
-- Preventing Death doesn't do anything in PvP blinds.
"j_mr_bones",
-- Trivializes Spacious deck because it gives a free Joker slot and is a Common.
"j_ExtraCredit_forklift",
-- Cards do not get debuffed in PvP blinds.
@ -105,7 +110,7 @@ match_indent = true
[[patches]]
[patches.pattern]
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
pattern = 'local parsedAction = json.decode(msg)'
pattern = "local parsedAction = json.decode(msg)"
position = "at"
payload = """local garden, parsedAction = pcall(function()
return json.decode(msg)
@ -125,11 +130,15 @@ match_indent = true
[[patches]]
[patches.pattern]
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
pattern = 'MP.GAME.end_pvp = true'
pattern = "MP.GAME.end_pvp = true"
position = "before"
payload = """G.GAME.current_round.hands_left =
MP.LOBBY.config.ruleset == 'ruleset_mp_walledgarden' and
G.GAME.round_resets.hands - 1 or
G.GAME.current_round.hands_left
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,
"version": "1.0.8",
"version": "1.0.9",
"id": "WalledGarden",
"name": "WalledGarden",
"icon_path": "icon.png",