diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-28 12:08:39 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-28 12:08:39 +0100 |
commit | 6efd2c49f98baa9f860cc56f206896f76a84711e (patch) | |
tree | bffcfdb78f0d16cd1647d368f9083bca6aa77097 | |
parent | eea04258c47857eb61b5783e254157b313b5f56e (diff) | |
download | 1989-dawn-of-freedom-6efd2c49f98baa9f860cc56f206896f76a84711e.tar.gz |
Debugging Kremlin Coup
-rw-r--r-- | play.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]
|