summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts18
1 files changed, 15 insertions, 3 deletions
diff --git a/rules.ts b/rules.ts
index 840a412..7a9fef4 100644
--- a/rules.ts
+++ b/rules.ts
@@ -53,6 +53,7 @@ import data, {
TOWARDS_CENTER,
ARCHIVES_MEDALLION_ID,
INTELLIGENCE_MEDALLION_ID,
+ MOMENTUM_MEDALLION_ID,
ORGANIZATION_MEDALLION_ID,
STRATEGY_MEDALLION_ID,
PROPAGANDA_MEDALLION_ID,
@@ -1403,11 +1404,22 @@ states.choose_medallion = {
prompt() {
gen_spend_hero_points();
view.prompt = 'Claim a Medallion.';
+ const faction = get_active_faction();
+ var skip = true;
for (let m of game.medallions[POOL_ID]) {
- if (m !== null)
- gen_action_medallion(m);
+ if (m !== null) {
+ if (m === MOMENTUM_MEDALLION_ID) {
+ if (game.hands[faction].length > game.selected_cards[faction].length) {
+ gen_action_medallion(m);
+ skip = false;
+ }
+ } else {
+ gen_action_medallion(m);
+ skip = false;
+ }
+ }
}
- if (!game.medallions[POOL_ID].some((m) => m !== null)) {
+ if (skip) {
gen_action('skip');
}
},