From 923098f40e1ac74534d75aadacc60ea5aeaca5c4 Mon Sep 17 00:00:00 2001 From: neauoire Date: Sat, 31 Oct 2020 13:14:22 -0700 Subject: Cardinals now explode on collision with bang --- desktop/sources/scripts/core/operator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop/sources/scripts/core/operator.js b/desktop/sources/scripts/core/operator.js index ac61c9a..d5445ba 100644 --- a/desktop/sources/scripts/core/operator.js +++ b/desktop/sources/scripts/core/operator.js @@ -81,8 +81,7 @@ function Operator (orca, x, y, glyph = '.', passive = false) { this.move = function (x, y) { const offset = { x: this.x + x, y: this.y + y } if (!orca.inBounds(offset.x, offset.y)) { this.explode(); return } - const collider = orca.glyphAt(offset.x, offset.y) - if (collider !== '*' && collider !== '.') { this.explode(); return } + if (orca.glyphAt(offset.x, offset.y) !== '.') { this.explode(); return } this.erase() this.x += x this.y += y -- cgit v1.2.3