summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-01 12:25:19 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commit48bd11062f644484cc3addeca0a10e6746653067 (patch)
tree246fa8e90f8b6330a27f789f172b6fb93a969d7b /rules.js
parent19df710678a3153147dbc7b9a5a266a717bc7537 (diff)
downloadjulius-caesar-48bd11062f644484cc3addeca0a10e6746653067.tar.gz
caesar: Tournament option as scenario choice.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index ad73689..cd8c8ce 100644
--- a/rules.js
+++ b/rules.js
@@ -2,6 +2,7 @@
exports.scenarios = [
"Historical",
+ "Tournament",
// TODO: Free Deployment
// TODO: Avalon Digital scenarios?
];
@@ -913,7 +914,7 @@ function reveal_cards() {
}
// Tournament rule: Caesar always goes first on the first turn of the game.
- if (game.year == 705 && game.turn == 1) {
+ if (game.year == 705 && game.turn == 1 && game.tournament) {
if (game.p1 != CAESAR) {
log("Tournament rule:\nCaesar is the first player on the very first turn of the game.");
game.p1 = CAESAR;
@@ -2233,6 +2234,7 @@ exports.setup = function (scenario, players) {
if (players.length != 2)
throw new Error("Invalid player count: " + players.length);
game = {
+ tournament: (scenario == "Tournament"),
state: null,
show_cards: false,
year: 705,