summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-08 23:57:27 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-09 00:00:50 +0100
commit4d665cde4571c4621c6a0779e8b83f9bd10abb05 (patch)
tree0d4cb9ff498249b17dd8bb7c7c4eef3df0b4632b /play.js
parentf15dd0c0842cb3944ebc006da5b135cea6eed7b2 (diff)
downloadmaria-4d665cde4571c4621c6a0779e8b83f9bd10abb05.tar.gz
log deals
Diffstat (limited to 'play.js')
-rw-r--r--play.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/play.js b/play.js
index 80acf4f..9ad4ede 100644
--- a/play.js
+++ b/play.js
@@ -1716,6 +1716,14 @@ function on_log(text) {
p.className = "q"
text = political_cards[text.substring(1)].flavor
}
+ else if (text.startsWith("{")) {
+ p.className = "deal"
+ text = text.substring(1)
+ }
+ else if (text.startsWith("}")) {
+ p.className = "deal rejected"
+ text = text.substring(1)
+ }
p.innerHTML = text
return p