make global cyclers immune to cycling too

This commit is contained in:
Timothy Stiles 2021-02-07 10:52:18 +11:00
parent 19354bf5cf
commit 7c306e2234

View File

@ -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,