Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Nov 28, 2023
1 parent a61061b commit 9483de0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion packs/macros/CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MANIFEST-001172
MANIFEST-001272
6 changes: 3 additions & 3 deletions packs/macros/LOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
2023/11/14-23:09:56.341 dc90 Recovering log #1171
2023/11/14-23:09:56.345 dc90 Delete type=0 #1171
2023/11/14-23:09:56.345 dc90 Delete type=3 #1170
2023/11/28-12:34:53.636 7094 Recovering log #1271
2023/11/28-12:34:53.639 7094 Delete type=0 #1271
2023/11/28-12:34:53.639 7094 Delete type=3 #1270
6 changes: 3 additions & 3 deletions packs/macros/LOG.old
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
2023/11/14-19:31:31.688 a5b8 Recovering log #1169
2023/11/14-19:31:31.692 a5b8 Delete type=0 #1169
2023/11/14-19:31:31.692 a5b8 Delete type=3 #1168
2023/11/28-02:28:20.806 dddc Recovering log #1269
2023/11/28-02:28:20.810 dddc Delete type=0 #1269
2023/11/28-02:28:20.810 dddc Delete type=3 #1268
Binary file removed packs/macros/MANIFEST-001172
Binary file not shown.
Binary file added packs/macros/MANIFEST-001272
Binary file not shown.
3 changes: 2 additions & 1 deletion scripts/patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,11 @@ export function registerWrappers() {
}

function isDoorVisible(wrapped, ...args) {
debugger;
const wall = this.wall;
const { advancedVision } = getSceneSettings(wall.scene);
const isUI = CONFIG.Levels?.UI?.rangeEnabled && !canvas?.tokens?.controlled[0];
const elevation = WallHeight.currentTokenElevation//isUI && !canvas.tokens.controlled[0] ? WallHeight.currentTokenElevation : WallHeight._token?.document?.elevation;
const elevation = WallHeight.currentTokenElevation ?? (isUI ? CONFIG.Levels?.UI?.currentRange?.bottom ?? null : null)
if (elevation == null || !advancedVision) return wrapped(...args);
const {top, bottom} = getWallBounds(wall);
let inRange = elevation >= bottom && elevation <= top;
Expand Down

0 comments on commit 9483de0

Please sign in to comment.