From 4d665cde4571c4621c6a0779e8b83f9bd10abb05 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 8 Nov 2024 23:57:27 +0100 Subject: log deals --- play.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'play.js') 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 -- cgit v1.2.3