From 9181610c086caf49c1addaff73801342e9ea766b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 2 Dec 2024 10:42:34 +0100 Subject: Show placed Reserve TC on politics display as value 16. --- rules.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index a022fff..0931f74 100644 --- a/rules.js +++ b/rules.js @@ -906,7 +906,9 @@ function format_card(c) { return (to_deck(c)+1) + "^" + format_card_prompt(c) } -function format_card_list(list) { +function format_card_list(list, res) { + if (res) + return list.map(c => is_reserve(c) ? format_reserve(c, res) : format_card(c)).join(", ") return list.map(format_card).join(", ") } @@ -4690,7 +4692,7 @@ function goto_determine_order_of_influence() { if (game.face_down[pow].length > 0) log(">" + power_name[pow] + " " + format_card_list(game.face_down[pow]) + " (bluff)") if (game.face_up[pow].length > 0) - log(">" + power_name[pow] + " " + format_card_list(game.face_up[pow])) + log(">" + power_name[pow] + " " + format_card_list(game.face_up[pow], 16)) } log_br() -- cgit v1.2.3