We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7b3952 commit 9a731cbCopy full SHA for 9a731cb
scripts/levels.js
@@ -51,6 +51,18 @@ class Levels {
51
return tiles;
52
}
53
54
+ getFloorsForPoint(point){
55
+ let cPoint = {center:{x:point.x,y:point.y}}
56
+ return findRoomsTiles(cPoint, this.levelsTiles)
57
+ }
58
+
59
+ findCurrentFloorForElevation(elevation,floors){
60
+ floors.forEach((floor)=>{
61
+ if(elevation<=floor.range[1] && elevation >= floor.range[0]) return floor.range
62
+ })
63
+ return false
64
65
66
findAllTiles() {
67
let tiles = [];
68
for (let tile of canvas.foreground.placeables) {
0 commit comments