diff options
author | neauoire <[email protected]> | 2020-10-31 13:14:22 -0700 |
---|---|---|
committer | neauoire <[email protected]> | 2020-10-31 13:14:22 -0700 |
commit | 923098f40e1ac74534d75aadacc60ea5aeaca5c4 (patch) | |
tree | d3b158c06e20b4429e7bc70d45ad97cbfeff5698 /desktop | |
parent | 0050b537975c47204becdc9ad3208c08d30f3c56 (diff) | |
download | Orca-923098f40e1ac74534d75aadacc60ea5aeaca5c4.tar.gz Orca-923098f40e1ac74534d75aadacc60ea5aeaca5c4.zip |
Cardinals now explode on collision with bang
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/sources/scripts/core/operator.js | 3 |
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 |