summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-06 00:13:55 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-06 00:13:55 +0200
commit7f032c11b0c6e99f730cdfb54368f0443c9e95c4 (patch)
treee422fd48de1b52b90b6235c6c69d9904007eb089 /rules.ts
parente98bb8c60faad9138d7bf21402412b02c31a8a4e (diff)
downloadland-and-freedom-7f032c11b0c6e99f730cdfb54368f0443c9e95c4.tar.gz
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.
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules.ts b/rules.ts
index a2982e4..1158bd4 100644
--- a/rules.ts
+++ b/rules.ts
@@ -2537,6 +2537,11 @@ states.use_organization_medallion = {
states.use_strategy_medallion = {
inactive: 'choose to use Strategy Medallion',
+ auto_resolve() {
+ if (game.used_medallions.includes(STRATEGY_MEDALLION_ID))
+ return true
+ return false
+ },
prompt() {
// gen_spend_hero_points(); // confusing when available during this question
const { f } = get_active_node_args();