summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-28 12:08:39 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-28 12:08:39 +0100
commit6efd2c49f98baa9f860cc56f206896f76a84711e (patch)
treebffcfdb78f0d16cd1647d368f9083bca6aa77097
parenteea04258c47857eb61b5783e254157b313b5f56e (diff)
download1989-dawn-of-freedom-6efd2c49f98baa9f860cc56f206896f76a84711e.tar.gz
Debugging Kremlin Coup
-rw-r--r--play.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/play.js b/play.js
index d0c2ee6..a9d21ae 100644
--- a/play.js
+++ b/play.js
@@ -200,7 +200,7 @@ function is_action(action) {
function on_log(text) { // eslint-disable-line no-unused-vars
- console.log('on_log called')
+
let p = document.createElement("div")
@@ -313,7 +313,7 @@ function on_update() {
if (piece.demInfl > 0) {
dem_marker.style.display = 'block';
dem_number.style.display = 'block';
- console.log('piece', piece, 'space', space)
+
if(check_dem_control(piece, space)){
dem_marker.classList.add('controlled')
dem_number.classList.add('outlined_text')
@@ -362,7 +362,7 @@ function on_update() {
marker.style.display = 'block'
times_held.classList.add('outlined_text')
} else if (view.times_held[country] > 0 ) {
- console.log('setting ', country)
+ //console.log('setting ', country)
marker.classList.add('held')
marker.style.display = 'block'
times_held.innerHTML = view.times_held[country]