diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-14 20:10:03 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-14 20:10:03 +0000 |
commit | 5053e34e70289e795406f3043ba819dfe102f1f2 (patch) | |
tree | fb50a4736c789c3586e7e02458e58696a21cf660 /rules.js | |
parent | 7af20758e274ea7de56c3095c91f70feedcbf2e9 (diff) | |
download | 1989-dawn-of-freedom-5053e34e70289e795406f3043ba819dfe102f1f2.tar.gz |
Tweak Tyrant logging
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1771,7 +1771,6 @@ states.end_turn_4_5_4 = { if (!dem_has_scoring_card && !com_has_scoring_card) { log('No held scoring cards.') } - if (dem_has_scoring_card && com_has_scoring_card) { log('Both players have held scoring cards') goto_game_over('', `The game is tied due to held scoring cards!`) @@ -4040,9 +4039,10 @@ function check_ceausescu() { function check_tyrant() { if (game.the_tyrant_is_gone > 0 && check_dem_control(game.the_tyrant_is_gone)) { - log('+2 VP C' + C_THE_TYRANT_IS_GONE + '.') + game.tyrant_log = '+2 VP C' + C_THE_TYRANT_IS_GONE + '.' game.vp += 2 if (check_vp()) { + summary_flush() return } delete game.the_tyrant_is_gone @@ -4051,7 +4051,7 @@ 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 C' + C_THE_TYRANT_IS_GONE + '.') + log('+2 VP C' + C_THE_TYRANT_IS_GONE + '.') game.vp += 2 if (check_vp()) { return @@ -4229,6 +4229,10 @@ function summary_flush() { } else { logi("None") } + if (game.tyrant_log) { + log(`${game.tyrant_log}`) + delete game.tyrant_log + } } // ============ MAP AND SET FUNCTIONS =========== |