From 81fd712adc87435da9a4b0b2ad4413c82d7bd566 Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Fri, 5 Feb 2021 15:49:42 +1100 Subject: [PATCH] global cyclers don't cycle their surrounding tiles, just everythng else --- js/tiletypes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/tiletypes.js b/js/tiletypes.js index 92d680f..857542c 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -1659,6 +1659,10 @@ const TILE_TYPES = { { for (var j = 0; j < level.height; ++j) { + if (Math.abs(me.cell.x - i) + Math.abs(me.cell.y - j) <= 1) + { + continue; + } let thing = level.cell(i, j).get_terrain(); let things = terrains; for (var k = 0; k < things.length; ++k) @@ -1681,6 +1685,10 @@ const TILE_TYPES = { { for (var j = 0; j < level.height; ++j) { + if (Math.abs(me.cell.x - i) + Math.abs(me.cell.y - j) <= 1) + { + continue; + } let thing = level.cell(i, j).get_item(); let things = items; if (thing == null)