aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorneauoire <[email protected]>2020-10-31 13:14:22 -0700
committerneauoire <[email protected]>2020-10-31 13:14:22 -0700
commit923098f40e1ac74534d75aadacc60ea5aeaca5c4 (patch)
treed3b158c06e20b4429e7bc70d45ad97cbfeff5698
parent0050b537975c47204becdc9ad3208c08d30f3c56 (diff)
downloadOrca-923098f40e1ac74534d75aadacc60ea5aeaca5c4.tar.gz
Orca-923098f40e1ac74534d75aadacc60ea5aeaca5c4.zip
Cardinals now explode on collision with bang
-rw-r--r--desktop/sources/scripts/core/operator.js3
1 files changed, 1 insertions, 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