From 0ba112aec561ff79987dbcdd95caae4e8336f5a4 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Tue, 5 Jan 2021 21:04:09 -0700 Subject: [PATCH] Don't gripe about VFX erasing each other; that's a feature --- js/game.js | 4 +++- js/main.js | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/game.js b/js/game.js index 0033868..f4bbe9e 100644 --- a/js/game.js +++ b/js/game.js @@ -157,7 +157,9 @@ export class Cell extends Array { _add(tile) { let index = tile.type.layer; if (this[index]) { - console.error("ATTEMPTING TO ADD", tile, "TO CELL", this, "WHICH ERASES EXISTING TILE", this[index]); + if (index !== LAYERS.vfx) { + console.error("ATTEMPTING TO ADD", tile, "TO CELL", this, "WHICH ERASES EXISTING TILE", this[index]); + } this[index].cell = null; } this[index] = tile; diff --git a/js/main.js b/js/main.js index 9c0d5af..dfce4fd 100644 --- a/js/main.js +++ b/js/main.js @@ -2683,7 +2683,6 @@ class PackTestDialog extends DialogOverlay { try { stored_level = pack.load_level(i); - console.log(i + 1, stored_level.title); if (! stored_level.has_replay) { record_result('no-replay', "No replay"); continue;