From e630e3ea8a7db1345f81b9cd2f24a4375ce0fe81 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 28 Mar 2025 23:42:06 +0100 Subject: Log more medallion uses. --- rules.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 3709972..f08657f 100644 --- a/rules.js +++ b/rules.js @@ -481,6 +481,7 @@ function setup(seed, _scenario, options) { function draw_hand_cards(faction_id, count, indent = true) { const deck = list_deck(faction_id); if (game.medallions[faction_id].includes(data_1.INTELLIGENCE_MEDALLION_ID)) { + log(">M" + data_1.INTELLIGENCE_MEDALLION_ID); count++; } let drawn_cards = 0; @@ -983,7 +984,7 @@ states.play_card = { game.played_card = game.selected_cards[faction][game.selected_cards[faction].length - 1]; const args = get_active_node_args(); if (args && args.src === 'momentum') { - log_header("~ Momentum ~\nC" + game.played_card, faction); + log_header("~ M" + data_1.MOMENTUM_MEDALLION_ID + " ~\nC" + game.played_card, faction); } else { log_header("~ Play Card ~\nC" + game.played_card, faction); @@ -1735,7 +1736,7 @@ states.remove_blank_marker_archives = { blank_marker(b) { const faction = get_active_faction(); pay_hero_points(faction, 1); - log(`>M${data_1.ARCHIVES_MEDALLION_ID}`); + log(">M" + data_1.ARCHIVES_MEDALLION_ID); remove_blank_marker(b); game.used_medallions.push(data_1.ARCHIVES_MEDALLION_ID); resolve_active_and_proceed(); @@ -2109,6 +2110,7 @@ states.use_strategy_medallion = { this.yes(); }, yes() { + log(">M" + data_1.STRATEGY_MEDALLION_ID); game.used_medallions.push(data_1.STRATEGY_MEDALLION_ID); const { f } = get_active_node_args(); const faction = get_active_faction(); @@ -2427,6 +2429,7 @@ function resolve_fascist_test() { ? 2 : 0; if (can_use_medallion(data_1.PROPAGANDA_MEDALLION_ID, faction)) { + log(">M" + data_1.PROPAGANDA_MEDALLION_ID); hero_points_gain += 2; } if (hero_points_gain > 0) { -- cgit v1.2.3