From 9f968838f3a80a21543c03afe9ced9f6725dcf51 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 18 Apr 2023 17:42:10 +0200 Subject: Fix typo. --- play.css | 4 ++-- play.js | 2 +- rules.js | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/play.css b/play.css index 2c1c0c3..244d0d5 100644 --- a/play.css +++ b/play.css @@ -10,8 +10,7 @@ main { background-color: #777; } #role_AUC_\+_Cartels { background-image: linear-gradient(150deg, khaki 40%, darkseagreen 60%) } #log { background-color: whitesmoke; } -#log .h1 { background-color: silver; font-weight: bold; padding-top:4px; padding-bottom:4px; text-align: center; } -#log .h1 { background-image: linear-gradient(60deg, skyblue, khaki, lightcoral, darkseagreen) } +#log .h1 { background-color: silver; font-weight: bold; padding-top:4px; padding-bottom:4px; margin: 8px 0; text-align: center; } #log .h2 { background-color: gainsboro; padding-top:2px; padding-bottom:2px; text-align: center; } #log .h2.govt { background-color: #c6d1eb } #log .h2.farc { background-color: #ebc9be } @@ -25,6 +24,7 @@ main { background-color: #777; } #log div { padding-left: 20px; text-indent: -12px; } #log div.indent { padding-left: 32px; text-indent: -12px; } +#log .h1 { background-image: linear-gradient(60deg, skyblue, khaki, lightcoral, darkseagreen); text-shadow: 0 0 4px white; } #log { font-variant-numeric: tabular-nums; } diff --git a/play.js b/play.js index e1b987e..9b6ed9f 100644 --- a/play.js +++ b/play.js @@ -1365,7 +1365,7 @@ function on_click_space_tip(s) { function sub_card(match, p1) { let x = p1 | 0 let n = data.card_title[x] - return `${n}` + return `${n}` } function sub_space(match, p1) { diff --git a/rules.js b/rules.js index fcd99d4..2a992be 100644 --- a/rules.js +++ b/rules.js @@ -321,11 +321,9 @@ exports.setup = function (seed, scenario, options) { if (scenario === "Test") { game.deck = [] for (let i = 1; i < PROPAGANDA; ++i) - if (i !== 1 && i !== 2 && i !== 3 && i !== 7 && i !== 9 && i !== 10 && i !== 11 && i !== 13) - game.deck.push(i) + game.deck.push(i) } - game.deck[0] = 73 log("DEBUG DECK " + game.deck.join(", ")) update_control() @@ -5572,7 +5570,7 @@ function calc_support() { let n = 0 for (let s = first_pop; s <= last_pop; ++s) if (game.support[s] > 0) - n += data.spaces[s].pop * view.support[s] + n += data.spaces[s].pop * game.support[s] return n } -- cgit v1.2.3