summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-12-05 17:42:50 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-12-05 17:42:50 +0000
commit31d55d0b90e3fa555edb2e3668208b0c41a02d8c (patch)
treebebac7a113c7dc6a644068cc5e485a308a3cdd2b /play.js
parentd8b6a685d2cc63160d32c184c4a24a515132f9ee (diff)
download1989-dawn-of-freedom-31d55d0b90e3fa555edb2e3668208b0c41a02d8c.tar.gz
Remove debugging steps
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/play.js b/play.js
index 2eefe26..ab569bc 100644
--- a/play.js
+++ b/play.js
@@ -871,13 +871,10 @@ const die = {
function on_log(text, ix) {
let p = document.createElement("div")
- console.log('text', text)
let event_string = text.match(/^C(\d+)/)
- console.log('event_string', event_string)
if (event_string)
event_n = parseInt(event_string[1])
- console.log('event_n', event_n)
if (text.match(/^>>/)) {
text = text.substring(2)
@@ -897,7 +894,6 @@ function on_log(text, ix) {
text = text.replace(/%(\d+)/g, sub_space_name)
text = text.replace(/D[1-6]/g, sub_die)
- console.log('text', text)
if (text.match(/^\.h1/)) {
text = text.substring(4)
p.className = "h1"
@@ -923,12 +919,10 @@ function on_log(text, ix) {
}
//Group events
-console.log('text', text, 'ix', ix, 'log_event', log_event, 'event_side', event_side)
// Reset group box counters (when log is rewound)
if (ix <= log_event) log_event = 0
if (!scoring_cards.includes(event_n)) {
- console.log('applying group')
if (text.match(/^.E:/)) {
p.classList.add("h2")
log_event = ix