diff --git a/game/modules/tome/class/NicerTiles.lua b/game/modules/tome/class/NicerTiles.lua index 7022dcdfb35df3c99a8ce05912c106dafd02f9b1..e26db43ce4a559471f817b27f06af8557715650d 100644 --- a/game/modules/tome/class/NicerTiles.lua +++ b/game/modules/tome/class/NicerTiles.lua @@ -96,15 +96,15 @@ end --- Make walls have a pseudo 3D effect & rounded corners function _M:niceTileRoundwall3d(level, i, j, g, nt) - local s = level.map:checkEntity(i, j, Map.TERRAIN, "block_move") and true or false - local g8 = level.map:checkEntity(i, j-1, Map.TERRAIN, "block_move") and true or false - local g2 = level.map:checkEntity(i, j+1, Map.TERRAIN, "block_move") and true or false - local g4 = level.map:checkEntity(i-1, j, Map.TERRAIN, "block_move") and true or false - local g6 = level.map:checkEntity(i+1, j, Map.TERRAIN, "block_move") and true or false - local g1 = level.map:checkEntity(i-1, j+1, Map.TERRAIN, "block_move") and true or false - local g3 = level.map:checkEntity(i+1, j+1, Map.TERRAIN, "block_move") and true or false - local g7 = level.map:checkEntity(i-1, j-1, Map.TERRAIN, "block_move") and true or false - local g9 = level.map:checkEntity(i+1, j-1, Map.TERRAIN, "block_move") and true or false + local s = level.map:checkEntity(i, j, Map.TERRAIN, "type") or "wall" + local g8 = level.map:checkEntity(i, j-1, Map.TERRAIN, "type") or "wall" + local g2 = level.map:checkEntity(i, j+1, Map.TERRAIN, "type") or "wall" + local g4 = level.map:checkEntity(i-1, j, Map.TERRAIN, "type") or "wall" + local g6 = level.map:checkEntity(i+1, j, Map.TERRAIN, "type") or "wall" + local g1 = level.map:checkEntity(i-1, j+1, Map.TERRAIN, "type") or "wall" + local g3 = level.map:checkEntity(i+1, j+1, Map.TERRAIN, "type") or "wall" + local g7 = level.map:checkEntity(i-1, j-1, Map.TERRAIN, "type") or "wall" + local g9 = level.map:checkEntity(i+1, j-1, Map.TERRAIN, "type") or "wall" -- Full if g1==s and g2==s and g3==s and g4==s and g6==s and g7==s and g8==s and g9==s then self:replace(i, j, self:getTile(nt.inner)) diff --git a/game/modules/tome/data/rooms/forest_clearing.lua b/game/modules/tome/data/rooms/forest_clearing.lua index 1a095fd9a113b63f0e0ee025625be655c3f03f32..1b155e7afe685ef4fd48daae3307cddc7210e94b 100644 --- a/game/modules/tome/data/rooms/forest_clearing.lua +++ b/game/modules/tome/data/rooms/forest_clearing.lua @@ -92,7 +92,7 @@ return function(gen, id) end end else - return make_hmap(self, x, y, is_lit) end + return make_hmap(self, x, y, is_lit) end -- Materialize the map