summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@macbookpro.home>2025-03-20 07:43:51 +0100
committerFrans Bongers <fransbongers@macbookpro.home>2025-03-20 07:43:51 +0100
commitb8238aacafd983b0fd0c2bad4f5a497ad924b753 (patch)
treeccd8c92ae1f62d1d57e17e91f47d649f53823f1f /rules.ts
parent1543df45147d7cbc2a0c63753fd0f433f1f73d55 (diff)
downloadland-and-freedom-b8238aacafd983b0fd0c2bad4f5a497ad924b753.tar.gz
fix remove_blank_markers state when no blank markers on tracks
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules.ts b/rules.ts
index aa555cc..04cd494 100644
--- a/rules.ts
+++ b/rules.ts
@@ -1991,6 +1991,10 @@ states.remove_blank_marker = {
for (const b of game.triggered_track_effects) {
gen_action_blank_marker(b);
}
+ if (game.triggered_track_effects.length === 0) {
+ view.prompt = 'No Blank marker to remove.';
+ gen_action('skip');
+ }
},
spend_hp() {
resolve_spend_hp();
@@ -2008,6 +2012,9 @@ states.remove_blank_marker = {
game.used_medallions.push(ARCHIVES_MEDALLION_ID);
resolve_active_and_proceed();
},
+ skip() {
+ resolve_active_and_proceed();
+ },
};
/**
@@ -2151,6 +2158,9 @@ states.spend_hero_points = {
gen_action('draw_card');
if (can_use_medallion(ARCHIVES_MEDALLION_ID, faction)) {
gen_action('remove_blank_marker');
+ if (game.triggered_track_effects.length === 0) {
+ view.actions['remove_blank_marker'] = 0;
+ }
}
if (can_use_medallion(VOLUNTEERS_MEDALLION_ID, faction)) {
gen_action('add_to_front');