diff --git a/libs/core.js b/libs/core.js index 9c69577f..217f8b5a 100644 --- a/libs/core.js +++ b/libs/core.js @@ -1698,6 +1698,12 @@ core.prototype.drawAutotileBlock = function (map, x, y, size, autotile, index) { } } +core.prototype.autotileExists = function (x, y, floorId) { + var block = core.getBlock(x,y,floorId); + if (block==null) return false; + return block.block.event.cls == 'autotile'; +} + core.prototype.noPassExists = function (x, y, floorId) { var block = core.getBlock(x,y,floorId); if (block==null) return false;