From 7c306e223416d5f7a12d42f3a2e471bce6cc6ac2 Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Sun, 7 Feb 2021 10:52:18 +1100 Subject: [PATCH] make global cyclers immune to cycling too --- js/tiletypes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/tiletypes.js b/js/tiletypes.js index 8db0dda..aa96f37 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -1659,7 +1659,7 @@ const TILE_TYPES = { //learn about surrounding tiles //some logic: we ignore tiles with a 'no sign' on them. for items, we ignore itemless tiles. if the same terrain/item is twice in a row, it stays the same. tiles next to global cycles aren't touched. let cells = [level.cell( - me.cell.x + 0, + me.cell.x + 0, me.cell.y - 1), level.cell( me.cell.x + 1, @@ -1685,6 +1685,9 @@ const TILE_TYPES = { { let target_safe = [level.cell( i + 0, + j + 0), + level.cell( + i + 0, j - 1), level.cell( i + 1,