diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-28 18:48:11 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-28 18:48:11 +0100 |
commit | c31cec6b6e463bdbad5fc6e02cd6a1b77c2c3faa (patch) | |
tree | a65bbc7edd6f4bca9687401a41fcef3a3fc60abf | |
parent | f7225462f73845be3e305a4c28cb57905ad45a34 (diff) | |
download | land-and-freedom-c31cec6b6e463bdbad5fc6e02cd6a1b77c2c3faa.tar.gz |
Don't spend Hero points for Archives when using event for effect.
-rw-r--r-- | rules.js | 2 | ||||
-rw-r--r-- | rules.ts | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -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}`); @@ -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}`); } |