diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-20 21:34:52 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-20 21:34:52 +0100 |
commit | c734cbfa9fab6566c45c712f98df3734202573df (patch) | |
tree | ac5a46ee06b6c4e565627bf0aa6b07b5667674eb | |
parent | a68c15ccf06f35f7c650f02417898270566f1328 (diff) | |
download | land-and-freedom-c734cbfa9fab6566c45c712f98df3734202573df.tar.gz |
don't generate "null" medallion action
it confuses the fuzzer
-rw-r--r-- | rules.js | 3 | ||||
-rw-r--r-- | rules.ts | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -1075,7 +1075,8 @@ states.choose_medallion = { gen_spend_hero_points(); view.prompt = 'Earn a Medallion.'; for (let m of game.medallions[POOL_ID]) { - gen_action_medallion(m); + if (m !== null) + gen_action_medallion(m); } if (!game.medallions[POOL_ID].some((m) => m !== null)) { gen_action('skip'); @@ -1360,7 +1360,8 @@ states.choose_medallion = { gen_spend_hero_points(); view.prompt = 'Earn a Medallion.'; for (let m of game.medallions[POOL_ID]) { - gen_action_medallion(m); + if (m !== null) + gen_action_medallion(m); } if (!game.medallions[POOL_ID].some((m) => m !== null)) { gen_action('skip'); |