Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Jul 20, 2024
1 parent c8a1c6e commit 0bce341
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 24 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion packs/levels-samples/CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MANIFEST-002804
MANIFEST-002836
6 changes: 3 additions & 3 deletions packs/levels-samples/LOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
2024/07/15-13:32:37.458 2574 Recovering log #2802
2024/07/15-13:32:37.461 2574 Delete type=0 #2802
2024/07/15-13:32:37.461 2574 Delete type=3 #2800
2024/07/20-16:36:10.901 5d98 Recovering log #2834
2024/07/20-16:36:10.905 5d98 Delete type=0 #2834
2024/07/20-16:36:10.905 5d98 Delete type=3 #2832
16 changes: 8 additions & 8 deletions packs/levels-samples/LOG.old
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
2024/07/13-02:12:43.307 760c Recovering log #2799
2024/07/13-02:12:43.310 760c Delete type=0 #2799
2024/07/13-02:12:43.310 760c Delete type=3 #2798
2024/07/13-02:12:55.511 2e50 Level-0 table #2803: started
2024/07/13-02:12:55.511 2e50 Level-0 table #2803: 0 bytes OK
2024/07/13-02:12:55.513 2e50 Delete type=0 #2801
2024/07/13-02:12:55.513 2e50 Manual compaction at level-0 from '!scenes!i1noRqT20RD5stIK' @ 72057594037927935 : 1 .. '!scenes.walls!zksLSgRdh6f8jiUO.z5ptMNOLPqAgK6MH' @ 0 : 0; will stop at (end)
2024/07/13-02:12:55.513 2e50 Manual compaction at level-1 from '!scenes!i1noRqT20RD5stIK' @ 72057594037927935 : 1 .. '!scenes.walls!zksLSgRdh6f8jiUO.z5ptMNOLPqAgK6MH' @ 0 : 0; will stop at (end)
2024/07/20-16:34:51.363 950 Recovering log #2830
2024/07/20-16:34:51.365 950 Delete type=0 #2830
2024/07/20-16:34:51.366 950 Delete type=3 #2828
2024/07/20-16:35:56.725 464c Level-0 table #2835: started
2024/07/20-16:35:56.725 464c Level-0 table #2835: 0 bytes OK
2024/07/20-16:35:56.726 464c Delete type=0 #2833
2024/07/20-16:35:56.726 464c Manual compaction at level-0 from '!scenes!i1noRqT20RD5stIK' @ 72057594037927935 : 1 .. '!scenes.walls!zksLSgRdh6f8jiUO.z5ptMNOLPqAgK6MH' @ 0 : 0; will stop at (end)
2024/07/20-16:35:56.726 464c Manual compaction at level-1 from '!scenes!i1noRqT20RD5stIK' @ 72057594037927935 : 1 .. '!scenes.walls!zksLSgRdh6f8jiUO.z5ptMNOLPqAgK6MH' @ 0 : 0; will stop at (end)
Binary file not shown.
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-002799
MANIFEST-002831
6 changes: 3 additions & 3 deletions packs/macros/LOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
2024/07/15-13:32:37.444 7478 Recovering log #2797
2024/07/15-13:32:37.448 7478 Delete type=0 #2797
2024/07/15-13:32:37.448 7478 Delete type=3 #2795
2024/07/20-16:36:10.894 950 Recovering log #2829
2024/07/20-16:36:10.898 950 Delete type=0 #2829
2024/07/20-16:36:10.898 950 Delete type=3 #2827
16 changes: 8 additions & 8 deletions packs/macros/LOG.old
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
2024/07/13-02:12:43.297 7404 Recovering log #2794
2024/07/13-02:12:43.301 7404 Delete type=0 #2794
2024/07/13-02:12:43.301 7404 Delete type=3 #2793
2024/07/13-02:12:55.507 2e50 Level-0 table #2798: started
2024/07/13-02:12:55.507 2e50 Level-0 table #2798: 0 bytes OK
2024/07/13-02:12:55.508 2e50 Delete type=0 #2796
2024/07/13-02:12:55.509 2e50 Manual compaction at level-0 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
2024/07/13-02:12:55.509 2e50 Manual compaction at level-1 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
2024/07/20-16:34:51.355 687c Recovering log #2825
2024/07/20-16:34:51.358 687c Delete type=0 #2825
2024/07/20-16:34:51.359 687c Delete type=3 #2823
2024/07/20-16:35:56.720 464c Level-0 table #2830: started
2024/07/20-16:35:56.720 464c Level-0 table #2830: 0 bytes OK
2024/07/20-16:35:56.722 464c Delete type=0 #2828
2024/07/20-16:35:56.722 464c Manual compaction at level-0 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
2024/07/20-16:35:56.722 464c Manual compaction at level-1 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
Binary file not shown.
2 changes: 2 additions & 0 deletions scripts/wrappers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export function registerWrappers() {
"CONFIG.Tile.objectClass.prototype.isVisible",
function (wrapped, ...args) {
const visible = LevelsConfig.handlers.TileHandler.isTileVisible(this);
const hasRestrictions = (this.document.restrictions.light || this.document.restrictions.weather) && !CONFIG.Levels.UI?.rangeEnabled;
if(hasRestrictions) return wrapped(...args);
let result = wrapped(...args);
if (CONFIG.Levels.currentToken || canvas.tokens.controlled.length) {
if ((CONFIG.Levels.currentToken ?? canvas.tokens.controlled[0]).losHeight < this.document.elevation) {
Expand Down

0 comments on commit 0bce341

Please sign in to comment.