From c31cec6b6e463bdbad5fc6e02cd6a1b77c2c3faa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 28 Mar 2025 18:48:11 +0100 Subject: Don't spend Hero points for Archives when using event for effect. --- rules.js | 2 +- rules.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 4c90dcd..7655481 100644 --- a/rules.js +++ b/rules.js @@ -1697,13 +1697,13 @@ states.remove_blank_marker = { }, blank_marker(b) { const faction = get_active_faction(); - pay_hero_points(faction, 1); const track_id = Math.floor(b / 11); const space_id = b % 11; game.triggered_track_effects = game.triggered_track_effects.filter((id) => id !== b); if (get_active_node_args()?.src === 'medallion') { logi(`M${data_1.ARCHIVES_MEDALLION_ID} removed Blank from ${get_track_name(track_id)} ${space_id}`); game.used_medallions.push(data_1.ARCHIVES_MEDALLION_ID); + pay_hero_points(faction, 1); } else { logi(`Removed Blank from ${get_track_name(track_id)} ${space_id}`); diff --git a/rules.ts b/rules.ts index 9a648b5..2f09ea7 100644 --- a/rules.ts +++ b/rules.ts @@ -2071,8 +2071,6 @@ states.remove_blank_marker = { }, blank_marker(b: number) { const faction = get_active_faction(); - pay_hero_points(faction, 1); - const track_id = Math.floor(b / 11); const space_id = b % 11; @@ -2080,11 +2078,13 @@ states.remove_blank_marker = { (id) => id !== b ); - // Used medallion if (get_active_node_args()?.src === 'medallion') { + // Used Archives medallion logi(`M${ARCHIVES_MEDALLION_ID} removed Blank from ${get_track_name(track_id)} ${space_id}`); game.used_medallions.push(ARCHIVES_MEDALLION_ID); + pay_hero_points(faction, 1); } else { + // Used Event logi(`Removed Blank from ${get_track_name(track_id)} ${space_id}`); } -- cgit v1.2.3