protected override int GetNeighborValue(MiniMapTile _tile, int x, int y, ITileLayer <MiniMapTile> layer, int neighborValue) { if (x < 0 || y < 0 || x >= layer.Width || y >= layer.Height) { return(0); } if (layer.GetTileValue(x, y) < MiniMapTile.WALL_START) { return(0); } return(neighborValue); }
protected override int GetNeighborValue(DungeonTile _tile, int x, int y, ITileLayer <DungeonTile> layer, int neighborValue) { if (x < 0 || y < 0 || x >= layer.Width || y >= layer.Height) { return(0); } if (layer.GetTileValue(x, y) < DungeonTile.WALL_START || DungeonPlayer.Instance.CanSee(x, y) == FogOfWar.Full) { return(0); } return(neighborValue); }