summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js8
-rw-r--r--rules.js13
2 files changed, 19 insertions, 2 deletions
diff --git a/play.js b/play.js
index 7d65c56..4bdf51b 100644
--- a/play.js
+++ b/play.js
@@ -1043,6 +1043,10 @@ function on_log(text, ix) {
text = text.replace(".S.d", "")
p.className = "h2 dem"
log_event = 0
+ } else if (text.match(/^\.P\.d/)) {
+ text = "passed"
+ p.className = "h2 dem"
+ log_event = 0
} else if (text.match(/^\.O\.c/)) {
text = "operations"
p.className = "h2 com"
@@ -1059,6 +1063,10 @@ function on_log(text, ix) {
text = text.replace(".S.c", "")
p.className = "h2 com"
log_event = 0
+ } else if (text.match(/^\.P\.c/)) {
+ text = "passed"
+ p.className = "h2 com"
+ log_event = 0
} else if (text.match(/\.c/)) {
text = text.replace(".c", "")
p.className = "h2 com"
diff --git a/rules.js b/rules.js
index a1dd071..f5a99de 100644
--- a/rules.js
+++ b/rules.js
@@ -600,7 +600,7 @@ states.choose_card = {
select_card(card)
},
pass() {
- log("Passed.")
+ log_pass_banner()
game.state = 'end_round'
},
}
@@ -2210,7 +2210,7 @@ states.stasi_play_card = {
}
},
pass() {
- log('No cards remaining. Passed.')
+ log_pass_banner()
game.state = 'end_round'
},
done() {
@@ -4232,6 +4232,15 @@ function log_ops_banner() {
finish_select_card()
}
+function log_pass_banner() {
+ log_br()
+ if (game.active === DEM)
+ log('.P.d')
+ else
+ log('.P.c')
+ log_br()
+}
+
function log_event_banner() {
log_br()
if (game.active === DEM)