summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-07 18:47:37 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit73abf5b81d7de43293acc9bdccdcb538504dbcf6 (patch)
tree9445a0c17015a6c5280ec97010a7263a380f81f7 /rules.js
parentb670c39aab380dfb7290cec760b3dfc4fcf77b1d (diff)
downloadrichard-iii-73abf5b81d7de43293acc9bdccdcb538504dbcf6.tar.gz
Add options to game setup.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index c79ab89..159d8d3 100644
--- a/rules.js
+++ b/rules.js
@@ -3338,11 +3338,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: {},