make global cyclers immune to cycling too
This commit is contained in:
parent
19354bf5cf
commit
7c306e2234
@ -1659,7 +1659,7 @@ const TILE_TYPES = {
|
|||||||
//learn about surrounding tiles
|
//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.
|
//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(
|
let cells = [level.cell(
|
||||||
me.cell.x + 0,
|
me.cell.x + 0,
|
||||||
me.cell.y - 1),
|
me.cell.y - 1),
|
||||||
level.cell(
|
level.cell(
|
||||||
me.cell.x + 1,
|
me.cell.x + 1,
|
||||||
@ -1685,6 +1685,9 @@ const TILE_TYPES = {
|
|||||||
{
|
{
|
||||||
let target_safe = [level.cell(
|
let target_safe = [level.cell(
|
||||||
i + 0,
|
i + 0,
|
||||||
|
j + 0),
|
||||||
|
level.cell(
|
||||||
|
i + 0,
|
||||||
j - 1),
|
j - 1),
|
||||||
level.cell(
|
level.cell(
|
||||||
i + 1,
|
i + 1,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user