From 9eea52a1a3ef99d7cf5ac1ca2ea10ac2f1fed7e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 12 Nov 2024 00:35:43 +0100 Subject: fix bug with drawing card logging and prompts --- rules.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 2190dd3..194a38c 100644 --- a/rules.js +++ b/rules.js @@ -1852,7 +1852,7 @@ function draw_tactical_cards() { log(`${power_name[game.power]} ${base} TC.`) if (sub > 0) { - log(">" + (base - mod - sub) + " to " + power_name[game.power]) + log(">" + (base + mod - sub) + " to " + power_name[game.power]) draw_tc(game.draw, base + mod - sub) for (let other of all_powers) { let contract = map_get(game.contracts[game.power], other, 0) @@ -1891,13 +1891,7 @@ states.tactical_cards_draw = { let mod = tc_per_turn_modifier() let sub = count_subsidies(game.power) - let str = "Draw " + base + " " - if (mod < 0) - str += "\u2212" + (-mod) + " " - else if (mod > 0) - str += "+" + (mod) + " " - str += "TC." - + let str = "Draw " + (base + mod) + " TC." if (sub > 0) str += " Give " + sub + " TC to " + list_subsidies(game.power).join(" and ") + "." -- cgit v1.2.3