make global cyclers immune to cycling too
This commit is contained in:
1 parent
19354bf5cf
commit
7c306e2234
1 file changed
+4
-1
+4
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user