diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-13 22:23:25 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-13 22:23:25 +0000 |
commit | f03c54096910c03e441ea3676f223bdabef753cc (patch) | |
tree | 55972a9657ee41f45f8f5043688a99e609f941eb | |
parent | a1f33e6a759cc3691b56999b5d1d23052a82c07c (diff) | |
download | 1989-dawn-of-freedom-f03c54096910c03e441ea3676f223bdabef753cc.tar.gz |
Tweak PS logging
-rw-r--r-- | play.css | 2 | ||||
-rw-r--r-- | rules.js | 22 |
2 files changed, 15 insertions, 9 deletions
@@ -33,7 +33,7 @@ body.Communist header.your_turn { background-color: hsl(355, 70%, 75%); } #log .h1 { font-weight: bold; padding-top:2px; padding-bottom:2px; text-align: center; } #log .h2 { padding-top:2px; padding-bottom:2px; text-align: center; } #log .h3 { text-align: center; } -#log .h4 { text-align: center; text-decoration: underline; } +#log .h4 { font-weight: bold; } #log .h5 { text-decoration: underline; } #log { background-color: floralwhite } @@ -2871,6 +2871,7 @@ function battlegrounds(country) { function take_power(country) { game.revolutions[find_country_index(country)] = true game.times_held[find_country_index(country)] = 1 + game.vp_retain = 0 } function retain_power(country) { @@ -2944,16 +2945,21 @@ function score_country(country) { } logi(`${com_vp} VP`) game.vp += dem_vp + com_vp - let final_vp = game.vp + game.vp_roll - if (final_vp > 0) - log(`C${scoring_cards[countries.indexOf(game.pwr_struggle_in)]}: +${final_vp} VP.`) - else - log(`C${scoring_cards[countries.indexOf(game.pwr_struggle_in)]}: ${final_vp} VP.`) if (game.state === 'final_scoring') { - if (game.vp > 0) - log_gap(`Score is +${game.vp} VP`) + if ((dem_vp + com_vp) > 0) + log_h4(`Total: +${dem_vp + com_vp} VP`) else - log_gap(`Score is ${game.vp} VP`) + log_h4(`Total: ${dem_vp + com_vp} VP`) + if (game.vp > 0) + log(`Score is +${game.vp} VP`) + else + log(`Score is ${game.vp} VP`) + } else { + let final_vp = dem_vp + com_vp + game.vp_roll + game.vp_retain + if (final_vp > 0) + log_h4(`Power Struggle total: +${final_vp} VP`) + else + log_h4(`Power Struggle total: ${final_vp} VP`) } } |