From 622742ae4ed14c7d523f06e467997d6918581dea Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 27 Dec 2024 16:25:57 +0000 Subject: Update to support loss and scoring log --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index b2cc2db..a9fc4f2 100644 --- a/rules.js +++ b/rules.js @@ -1643,7 +1643,10 @@ states.support_loss = { remove_infl(space, 'available_ops') }, done() { - do_log_summary() + if (game.summary.length > 0) + do_log_summary() + else + logi('None') change_player() log_h5('Victory Point') game.phase = 0 @@ -1699,7 +1702,6 @@ states.vp_roll = { }, scoring() { push_undo() - log_h2('Scoring') score_country(game.pwr_struggle_in) resolve_tyrant() }, @@ -4311,7 +4313,6 @@ function check_tyrant() { function check_tyrant_sc() { if (game.the_tyrant_is_gone > 0 && check_dem_control(game.the_tyrant_is_gone)) { logi('+2 VP from C' + C_THE_TYRANT_IS_GONE + '.') - console.log('game.summary',game.summary) game.vp += 2 if (check_vp()) { return @@ -4521,7 +4522,6 @@ function pop_summary_i() { } */ function pop_summary_i() { - console.log('pop summary', game.summary) if (game.summary.length > 0) { // Create a map to group by space and track totals and details let grouped_summary = new Map(); -- cgit v1.2.3