silphius/resources/watering-can/projection-check.js
2024-09-17 01:25:39 -05:00

12 lines
198 B
JavaScript

const layer = ecs.get(1).TileLayers.layer(1)
const filtered = []
for (const position of projected) {
if ([7].includes(layer.tile(position))) {
filtered.push(position)
}
}
return filtered