From 622686c6d5ea0acb1fd0b41b1d99856f214036a8 Mon Sep 17 00:00:00 2001 From: Emik Date: Sun, 7 Jun 2026 20:33:00 +0200 Subject: [PATCH] Add hand economy for all PvP blinds --- lovely.toml | 15 ++++++++++++++- manifest.json | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lovely.toml b/lovely.toml index a330237..8d7ac88 100644 --- a/lovely.toml +++ b/lovely.toml @@ -96,5 +96,18 @@ if not garden or type(parsedAction) ~= "table" then ": " .. tostring(parsedAction), "MULTIPLAYER" ) -end""" +end +""" +match_indent = true + +[[patches]] +[patches.pattern] +target = '=[SMODS Multiplayer "networking/action_handlers.lua"]' +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 +""" match_indent = true diff --git a/manifest.json b/manifest.json index 47ee7a6..66414e4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "priority": 10000001, - "version": "1.0.3", + "version": "1.0.4", "id": "WalledGarden", "name": "WalledGarden", "icon_path": "icon.png",