if (
                structure.structureType === STRUCTURE_RAMPART
                && structure.room.roomPlanner
                && structure.room.roomPlanner.isPlannedLocation(structure.pos, 'rampart.ramp')
            ) {