summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-30 23:59:41 +0200
committerTor Andersson <tor@ccxvii.net>2025-03-31 10:56:04 +0200
commitbce11c1a2d05321b1e1a26b171822e384e16bfb1 (patch)
tree230a92f3de8c51f5b99102b38892730992bcae15
parent6fefa6972325c161273a3ce8497ea9ee93c828db (diff)
downloadland-and-freedom-bce11c1a2d05321b1e1a26b171822e384e16bfb1.tar.gz
Auto-resolve confirmation during fascist event.
Should be a rare or impossible case.
-rw-r--r--rules.js5
-rw-r--r--rules.ts6
2 files changed, 11 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index e608c52..a3cdfb2 100644
--- a/rules.js
+++ b/rules.js
@@ -1145,6 +1145,11 @@ states.choose_medallion = {
};
states.confirm_turn = {
inactive: 'confirm their move',
+ auto_resolve() {
+ if (game.fascist === 1)
+ return true;
+ return false;
+ },
prompt() {
if (game.fascist === 2)
view.prompt = 'Fascist Test: Done.';
diff --git a/rules.ts b/rules.ts
index 04641c6..17f8a46 100644
--- a/rules.ts
+++ b/rules.ts
@@ -1443,6 +1443,12 @@ states.choose_medallion = {
states.confirm_turn = {
inactive: 'confirm their move',
+ auto_resolve() {
+ // don't pause to confirm actions during fascist event
+ if (game.fascist === 1)
+ return true
+ return false
+ },
prompt() {
if (game.fascist === 2)
view.prompt = 'Fascist Test: Done.'