Ban 2 jokers, rework how money is handed out
This commit is contained in:
parent
de1c151802
commit
46107b7d72
2 changed files with 18 additions and 9 deletions
25
lovely.toml
25
lovely.toml
|
|
@ -24,8 +24,7 @@ match_indent = true
|
||||||
[patches.copy]
|
[patches.copy]
|
||||||
target = '=[SMODS Multiplayer "rulesets/experimental/experimental.lua"]'
|
target = '=[SMODS Multiplayer "rulesets/experimental/experimental.lua"]'
|
||||||
position = "prepend"
|
position = "prepend"
|
||||||
payload = """
|
payload = """sendInfoMessage("Attempting to register the Walled Garden ruleset...", "WalledGarden");
|
||||||
sendInfoMessage("Attempting to register the Walled Garden ruleset...", "WalledGarden");
|
|
||||||
|
|
||||||
(function()
|
(function()
|
||||||
local banned = {
|
local banned = {
|
||||||
|
|
@ -52,6 +51,8 @@ sendInfoMessage("Attempting to register the Walled Garden ruleset...", "WalledGa
|
||||||
"c_mp_asteroid",
|
"c_mp_asteroid",
|
||||||
},
|
},
|
||||||
jokers = {
|
jokers = {
|
||||||
|
-- See `j_mr_bones`
|
||||||
|
"j_Bakery_Wearywolf",
|
||||||
-- See below.
|
-- See below.
|
||||||
"j_Roland_idle",
|
"j_Roland_idle",
|
||||||
-- Banned because of the existence of `j_Roland_idle` and `j_Bakery_Wherewolf`.
|
-- 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",
|
"j_chicot",
|
||||||
-- See `j_chicot`.
|
-- See `j_chicot`.
|
||||||
"j_luchador",
|
"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.
|
-- Trivializes Spacious deck because it gives a free Joker slot and is a Common.
|
||||||
"j_ExtraCredit_forklift",
|
"j_ExtraCredit_forklift",
|
||||||
-- Cards do not get debuffed in PvP blinds.
|
-- Cards do not get debuffed in PvP blinds.
|
||||||
|
|
@ -105,7 +110,7 @@ match_indent = true
|
||||||
[[patches]]
|
[[patches]]
|
||||||
[patches.pattern]
|
[patches.pattern]
|
||||||
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
|
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
|
||||||
pattern = 'local parsedAction = json.decode(msg)'
|
pattern = "local parsedAction = json.decode(msg)"
|
||||||
position = "at"
|
position = "at"
|
||||||
payload = """local garden, parsedAction = pcall(function()
|
payload = """local garden, parsedAction = pcall(function()
|
||||||
return json.decode(msg)
|
return json.decode(msg)
|
||||||
|
|
@ -125,11 +130,15 @@ match_indent = true
|
||||||
[[patches]]
|
[[patches]]
|
||||||
[patches.pattern]
|
[patches.pattern]
|
||||||
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
|
target = '=[SMODS Multiplayer "networking/action_handlers.lua"]'
|
||||||
pattern = 'MP.GAME.end_pvp = true'
|
pattern = "MP.GAME.end_pvp = true"
|
||||||
position = "before"
|
position = "before"
|
||||||
payload = """G.GAME.current_round.hands_left =
|
payload = """(function()
|
||||||
MP.LOBBY.config.ruleset == 'ruleset_mp_walledgarden' and
|
return MP.LOBBY.config.ruleset == "ruleset_mp_walledgarden" and
|
||||||
G.GAME.round_resets.hands - 1 or
|
ease_dollars(
|
||||||
G.GAME.current_round.hands_left
|
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
|
match_indent = true
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"priority": 10000001,
|
"priority": 10000001,
|
||||||
"version": "1.0.8",
|
"version": "1.0.9",
|
||||||
"id": "WalledGarden",
|
"id": "WalledGarden",
|
||||||
"name": "WalledGarden",
|
"name": "WalledGarden",
|
||||||
"icon_path": "icon.png",
|
"icon_path": "icon.png",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue