From d2e2c00eb09ccc4b80190f8df70168baad087e15 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 7 Nov 2021 18:47:37 +0100 Subject: Add options to game setup. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 84cd9a7..31d5d59 100644 --- a/rules.js +++ b/rules.js @@ -2827,11 +2827,11 @@ function make_battle_view() { return battle; } -exports.ready = function (scenario, players) { +exports.ready = function (scenario, options, players) { return players.length === 2; } -exports.setup = function (seed, scenario) { +exports.setup = function (seed, scenario, options) { game = { seed: seed, attacker: {}, -- cgit v1.2.3