Skip to content

Commit aa5b4bd

Browse files
committed
a
1 parent c545303 commit aa5b4bd

14 files changed

+30
-26
lines changed

lang/en.json

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
"name": "Reveal token in fog",
6666
"hint": "If a token is visible, reveal the fog of war around that token"
6767
},
68+
"strictVisionCheck": {
69+
"name": "Strict Vision Check",
70+
"hint": "If disabled Darkness light sources will not block sight. If enabled, tokens outside of the vision polygon but visible to 3D sight calculations will be visible."
71+
},
6872
"migrateOnStartup": {
6973
"name": "Migrate settings on startup",
7074
"hint": "If enabled, the module will migrate the data from the V11 data structure to the V12 one on startup. You can use the macro 'CONFIG.Levels.helpers.migration.showManualMigrationDialog()' to manually migrate your settings."
File renamed without changes.

packs/levels-samples/CURRENT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MANIFEST-002618
1+
MANIFEST-002630

packs/levels-samples/LOG

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
2024/06/23-15:50:17.936 859c Recovering log #2616
2-
2024/06/23-15:50:17.940 859c Delete type=0 #2616
3-
2024/06/23-15:50:17.940 859c Delete type=3 #2614
1+
2024/06/23-17:17:16.925 8fd4 Recovering log #2628
2+
2024/06/23-17:17:16.928 8fd4 Delete type=0 #2628
3+
2024/06/23-17:17:16.928 8fd4 Delete type=3 #2626

packs/levels-samples/LOG.old

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
2024/06/23-15:29:50.316 604 Recovering log #2612
2-
2024/06/23-15:29:50.319 604 Delete type=0 #2612
3-
2024/06/23-15:29:50.319 604 Delete type=3 #2610
4-
2024/06/23-15:49:25.511 58cc Level-0 table #2617: started
5-
2024/06/23-15:49:25.511 58cc Level-0 table #2617: 0 bytes OK
6-
2024/06/23-15:49:25.512 58cc Delete type=0 #2615
7-
2024/06/23-15:49:25.512 58cc Manual compaction at level-0 from '!scenes!i1noRqT20RD5stIK' @ 72057594037927935 : 1 .. '!scenes.walls!zksLSgRdh6f8jiUO.z5ptMNOLPqAgK6MH' @ 0 : 0; will stop at (end)
8-
2024/06/23-15:49:25.512 58cc Manual compaction at level-1 from '!scenes!i1noRqT20RD5stIK' @ 72057594037927935 : 1 .. '!scenes.walls!zksLSgRdh6f8jiUO.z5ptMNOLPqAgK6MH' @ 0 : 0; will stop at (end)
1+
2024/06/23-17:06:07.406 3eb0 Recovering log #2624
2+
2024/06/23-17:06:07.409 3eb0 Delete type=0 #2624
3+
2024/06/23-17:06:07.409 3eb0 Delete type=3 #2622
4+
2024/06/23-17:14:02.610 3190 Level-0 table #2629: started
5+
2024/06/23-17:14:02.611 3190 Level-0 table #2629: 0 bytes OK
6+
2024/06/23-17:14:02.612 3190 Delete type=0 #2627
7+
2024/06/23-17:14:02.613 3190 Manual compaction at level-0 from '!scenes!i1noRqT20RD5stIK' @ 72057594037927935 : 1 .. '!scenes.walls!zksLSgRdh6f8jiUO.z5ptMNOLPqAgK6MH' @ 0 : 0; will stop at (end)
8+
2024/06/23-17:14:02.613 3190 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.

packs/macros/CURRENT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MANIFEST-002613
1+
MANIFEST-002625

packs/macros/LOG

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
2024/06/23-15:50:17.929 1694 Recovering log #2611
2-
2024/06/23-15:50:17.933 1694 Delete type=0 #2611
3-
2024/06/23-15:50:17.933 1694 Delete type=3 #2609
1+
2024/06/23-17:17:16.916 3eb0 Recovering log #2623
2+
2024/06/23-17:17:16.920 3eb0 Delete type=0 #2623
3+
2024/06/23-17:17:16.920 3eb0 Delete type=3 #2621

packs/macros/LOG.old

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
2024/06/23-15:29:50.310 6328 Recovering log #2607
2-
2024/06/23-15:29:50.313 6328 Delete type=0 #2607
3-
2024/06/23-15:29:50.313 6328 Delete type=3 #2605
4-
2024/06/23-15:49:25.506 58cc Level-0 table #2612: started
5-
2024/06/23-15:49:25.506 58cc Level-0 table #2612: 0 bytes OK
6-
2024/06/23-15:49:25.508 58cc Delete type=0 #2610
7-
2024/06/23-15:49:25.508 58cc Manual compaction at level-0 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
8-
2024/06/23-15:49:25.508 58cc Manual compaction at level-1 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
1+
2024/06/23-17:06:07.399 69a4 Recovering log #2619
2+
2024/06/23-17:06:07.403 69a4 Delete type=0 #2619
3+
2024/06/23-17:06:07.403 69a4 Delete type=3 #2617
4+
2024/06/23-17:14:02.605 3190 Level-0 table #2624: started
5+
2024/06/23-17:14:02.605 3190 Level-0 table #2624: 0 bytes OK
6+
2024/06/23-17:14:02.607 3190 Delete type=0 #2622
7+
2024/06/23-17:14:02.607 3190 Manual compaction at level-0 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
8+
2024/06/23-17:14:02.607 3190 Manual compaction at level-1 from '!macros!2LfY4Ky5rRDkK7h8' @ 72057594037927935 : 1 .. '!macros!yx7Eb76rfzjh0LEO' @ 0 : 0; will stop at (end)
Binary file not shown.

scripts/handlers/lightHandler.js

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export class LightHandler{
2828
}
2929

3030
static _isLightSourceDisabled(wrapped, ...args) {
31-
debugger
3231
const result = wrapped(...args);
3332
const isPreview = this.document?.id == null;
3433
if(isPreview) return result;

scripts/handlers/settingsHandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export class SettingsHandler{
22
constructor(){
3-
this.settingsKeys = ["tokenElevScale", "tokenElevScaleMultiSett", "fogHiding", "revealTokenInFog", "lockElevation", "hideElevation", "preciseTokenVisibility", "exactTokenVisibility", "enableTooltips"];
3+
this.settingsKeys = ["tokenElevScale","tokenElevScaleMultiSett", "fogHiding", "revealTokenInFog", "lockElevation", "hideElevation", "preciseTokenVisibility", "exactTokenVisibility", "enableTooltips"];
44
}
55

66
get(key){

scripts/handlers/sightHandler.js

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export class SightHandler {
265265
object: testTarget,
266266
};
267267
result = LevelsConfig.handlers.SightHandler.performLOSTest(this.config.source.object, point, this, this.config.type);
268+
if(canvas.effects.darknessSources.size) result = result && wrapped(...args);
268269
} else {
269270
result = wrapped(...args);
270271
}

0 commit comments

Comments
 (0)