diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-06 00:13:55 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-06 00:13:55 +0200 |
commit | 7f032c11b0c6e99f730cdfb54368f0443c9e95c4 (patch) | |
tree | e422fd48de1b52b90b6235c6c69d9904007eb089 /rules.ts | |
parent | e98bb8c60faad9138d7bf21402412b02c31a8a4e (diff) | |
download | land-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.ts | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |