This commit is contained in:
ckcz123 2017-12-17 22:18:26 +08:00
parent 1c4d53456c
commit a6b50c17ab

View File

@ -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) { core.prototype.noPassExists = function (x, y, floorId) {
var block = core.getBlock(x,y,floorId); var block = core.getBlock(x,y,floorId);
if (block==null) return false; if (block==null) return false;