summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-28 18:48:11 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-28 18:48:11 +0100
commitc31cec6b6e463bdbad5fc6e02cd6a1b77c2c3faa (patch)
treea65bbc7edd6f4bca9687401a41fcef3a3fc60abf
parentf7225462f73845be3e305a4c28cb57905ad45a34 (diff)
downloadland-and-freedom-c31cec6b6e463bdbad5fc6e02cd6a1b77c2c3faa.tar.gz
Don't spend Hero points for Archives when using event for effect.
-rw-r--r--rules.js2
-rw-r--r--rules.ts6
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}`);
}