From 7f032c11b0c6e99f730cdfb54368f0443c9e95c4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 6 Apr 2025 00:13:55 +0200 Subject: only trigger strategy medallion once per turn we can queue up the question multiple times due to event execution, but only one of the questions should be able to go through. auto-resolve the state if we've already used the medallion. --- rules.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index abaf9af..815669b 100644 --- a/rules.js +++ b/rules.js @@ -2103,6 +2103,11 @@ states.use_organization_medallion = { }; states.use_strategy_medallion = { inactive: 'choose to use Strategy Medallion', + auto_resolve() { + if (game.used_medallions.includes(data_1.STRATEGY_MEDALLION_ID)) + return true; + return false; + }, prompt() { const { f } = get_active_node_args(); view.prompt = `Strategy Medallion: Add 1 strength to ${front_names[f]}?`; -- cgit v1.2.3