summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-21 18:25:59 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitdcb1e0d3811d37b9ce511c11f248e15d37d96235 (patch)
treea2845979c7f8051c3328aab107f9261e2ce30288
parent62b46581ed460a0282fe1f6efc75ba59d86716fd (diff)
downloadwilderness-war-dcb1e0d3811d37b9ce511c11f248e15d37d96235.tar.gz
Remove intermediate 'markers' object in play.
-rw-r--r--rules.js36
1 files changed, 17 insertions, 19 deletions
diff --git a/rules.js b/rules.js
index 8e3fe9b..885c87d 100644
--- a/rules.js
+++ b/rules.js
@@ -8233,6 +8233,8 @@ exports.setup = function (seed, scenario, options) {
end_year: 1762,
season: 0,
vp: 0,
+ niagara: 1,
+ ohio_forks: 1,
pa: 0,
events: {},
last_card: 0,
@@ -8247,8 +8249,6 @@ exports.setup = function (seed, scenario, options) {
sieges: {},
amphib: [],
fieldworks: [],
- niagara: 1,
- ohio_forks: 1,
french: {
hand: [],
held: 0,
@@ -8429,7 +8429,7 @@ exports.action = function (state, current, action, arg) {
exports.view = function(state, current) {
load_game_state(state);
view = {
- tracks: { vp: game.vp, pa: game.pa, year: game.year, season: game.season },
+ vp: game.vp, pa: game.pa, year: game.year, season: game.season,
events: game.events,
pieces: game.pieces,
sieges: game.sieges,
@@ -8439,22 +8439,20 @@ exports.view = function(state, current) {
// deck: game.deck.length,
// discard: game.discard,
// removed: game.removed,
- markers: {
- France: {
- allied: game.french.allied,
- stockades: game.french.stockades,
- forts_uc: game.french.forts_uc,
- forts: game.french.forts,
- raids: game.french.raids,
- },
- Britain: {
- allied: game.british.allied,
- stockades: game.british.stockades,
- forts_uc: game.british.forts_uc,
- forts: game.british.forts,
- raids: game.british.raids,
- pool: game.british.pool,
- },
+ french: {
+ allied: game.french.allied,
+ stockades: game.french.stockades,
+ forts_uc: game.french.forts_uc,
+ forts: game.french.forts,
+ raids: game.french.raids,
+ },
+ british: {
+ allied: game.british.allied,
+ stockades: game.british.stockades,
+ forts_uc: game.british.forts_uc,
+ forts: game.british.forts,
+ raids: game.british.raids,
+ pool: game.british.pool,
},
active: game.active,
prompt: null,