Improved way of setting dungeon visibility