diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-02-21 18:25:59 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | dcb1e0d3811d37b9ce511c11f248e15d37d96235 (patch) | |
tree | a2845979c7f8051c3328aab107f9261e2ce30288 /rules.js | |
parent | 62b46581ed460a0282fe1f6efc75ba59d86716fd (diff) | |
download | wilderness-war-dcb1e0d3811d37b9ce511c11f248e15d37d96235.tar.gz |
Remove intermediate 'markers' object in play.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 36 |
1 files changed, 17 insertions, 19 deletions
@@ -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, |