summaryrefslogtreecommitdiff
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
parentd8b6a685d2cc63160d32c184c4a24a515132f9ee (diff)
download1989-dawn-of-freedom-31d55d0b90e3fa555edb2e3668208b0c41a02d8c.tar.gz
Remove debugging steps
-rw-r--r--play.js6
-rw-r--r--rules.js3
2 files changed, 0 insertions, 9 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
diff --git a/rules.js b/rules.js
index d0ed717..d03770f 100644
--- a/rules.js
+++ b/rules.js
@@ -4210,10 +4210,8 @@ function log_event(n) {
}
function log_br() {
- console.log('log_br_called')
if (game.log.length > 0 && game.log[game.log.length - 1] !== "") {
game.log.push("")
- console.log('space added')
}
}
@@ -4786,7 +4784,6 @@ function vm_add_infl_free() {
function vm_add_x_infl() {
game.vm_available_ops = vm_operand(1)
- console.log('game.vm_event', game.vm_event, 'game.vm.prompt',game.vm.prompt, event_prompt())
if (!(game.vm_event === C_PUBLIC_AGAINST_VIOLENCE &&
event_prompt() === 'Presov'))
log('Placed SP:')