diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-12 00:35:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-12 00:35:43 +0100 |
commit | 9eea52a1a3ef99d7cf5ac1ca2ea10ac2f1fed7e4 (patch) | |
tree | 15eb61db2bba056fddd5e3e93b5d27894f9645a2 | |
parent | 794b1b04833a8a5b1df5989e1d3f3d660880ab9c (diff) | |
download | maria-9eea52a1a3ef99d7cf5ac1ca2ea10ac2f1fed7e4.tar.gz |
fix bug with drawing card logging and prompts
-rw-r--r-- | rules.js | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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 ") + "." |