diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -285,7 +285,7 @@ let ui = { function on_update() {
//console.log('on_update called')
//console.log('view.valid_spaces: ', view.valid_spaces)
- console.log('view.actions: ', view.actions)
+ //console.log('view.actions: ', view.actions)
//console.log('view.power_cards:', view.power_cards)
document.querySelectorAll('[id^="space_"].selected').forEach(spaceElement => {spaceElement.classList.remove('selected');});
document.getElementById("power_hand")?.querySelectorAll('.selected').forEach(cardElement => {cardElement.classList.remove('selected');});
@@ -301,7 +301,7 @@ function on_update() { //Check influence values
//const pieces = view.pieces
- for (let i = 1; spaces.length; i ++) {
+ for (let i = 1; i < spaces.length; i ++) {
const space = spaces[i]
const demInfl = view.demInfl[i]
@@ -313,7 +313,7 @@ function on_update() { const com_marker = document.getElementById(`${space.name_unique}_comInfl`);
const com_number = document.getElementById(`${space.name_unique}_comInflValue`);
- dem_number.innerText=piece.demInfl
+ dem_number.innerText=demInfl
if (demInfl > 0) {
dem_marker.style.display = 'block';
dem_number.style.display = 'block';
@@ -331,7 +331,7 @@ function on_update() { dem_marker.style.display = 'none';
dem_number.style.display = 'none';
}
- com_number.innerText=piece.comInfl
+ com_number.innerText=comInfl
if (comInfl > 0) {
com_marker.style.display = 'block';
com_number.style.display = 'block';
@@ -621,7 +621,7 @@ if (view.persistent_events['the_tyrant_is_gone'] > 0) { action_button("done", "Done")
action_button("undo", "Undo")
- //console.log('view.action', view.action)
+console.log('view.persistent_events', view.persistent_events)
}
// =========================== LOG FUNCTIONS ==============================================
|