Skip to content

Commit a877f89

Browse files
committed
a
1 parent f5cd79e commit a877f89

18 files changed

+25
-63
lines changed

packs/levels-samples/002349.log

-894 KB
Binary file not shown.

packs/levels-samples/002351.ldb

728 KB
Binary file not shown.
File renamed without changes.

packs/levels-samples/CURRENT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MANIFEST-002348
1+
MANIFEST-002353

packs/levels-samples/LOG

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
2024/05/28-12:00:15.319 56f8 Recovering log #2347
2-
2024/05/28-12:00:15.323 56f8 Delete type=0 #2347
3-
2024/05/28-12:00:15.323 56f8 Delete type=3 #2346
1+
2024/05/28-13:40:46.069 545c Recovering log #2352
2+
2024/05/28-13:40:46.073 545c Delete type=0 #2352
3+
2024/05/28-13:40:46.073 545c Delete type=3 #2350

packs/levels-samples/LOG.old

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
2024/05/27-17:38:36.030 5de4 Recovering log #2344
2-
2024/05/27-17:38:36.033 5de4 Delete type=0 #2344
3-
2024/05/27-17:38:36.033 5de4 Delete type=3 #2342
1+
2024/05/28-13:24:04.518 4c4c Recovering log #2349
2+
2024/05/28-13:24:04.520 4c4c Level-0 table #2351: started
3+
2024/05/28-13:24:04.524 4c4c Level-0 table #2351: 745335 bytes OK
4+
2024/05/28-13:24:04.527 4c4c Delete type=0 #2349
5+
2024/05/28-13:24:04.527 4c4c Delete type=3 #2348

packs/levels-samples/MANIFEST-002348

-148 Bytes
Binary file not shown.

packs/levels-samples/MANIFEST-002353

244 Bytes
Binary file not shown.

packs/macros/002354.log

Whitespace-only changes.

packs/macros/CURRENT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MANIFEST-002349
1+
MANIFEST-002353

packs/macros/LOG

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
2024/05/28-12:00:15.308 4714 Recovering log #2348
2-
2024/05/28-12:00:15.312 4714 Delete type=0 #2348
3-
2024/05/28-12:00:15.312 4714 Delete type=3 #2347
1+
2024/05/28-13:40:46.063 4b00 Recovering log #2352
2+
2024/05/28-13:40:46.066 4b00 Delete type=0 #2352
3+
2024/05/28-13:40:46.066 4b00 Delete type=3 #2351

packs/macros/LOG.old

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
2024/05/27-17:38:36.024 6c64 Recovering log #2345
2-
2024/05/27-17:38:36.027 6c64 Delete type=0 #2345
3-
2024/05/27-17:38:36.027 6c64 Delete type=3 #2343
1+
2024/05/28-13:24:04.513 77b0 Recovering log #2350
2+
2024/05/28-13:24:04.516 77b0 Delete type=0 #2350
3+
2024/05/28-13:24:04.516 77b0 Delete type=3 #2349
Binary file not shown.

scripts/config.js

+5-45
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,6 @@ Hooks.on("renderTileConfig", (app, html, data) => {
326326
placeholder: "Infinity",
327327
step: "any",
328328
},
329-
rangeBottom: {
330-
type: "number",
331-
label: game.i18n.localize("levels.tileconfig.rangeBottom.name"),
332-
units: game.i18n.localize("levels.tileconfig.range.unit"),
333-
default: "",
334-
placeholder: "-Infinity",
335-
step: "any",
336-
},
337329
showIfAbove: {
338330
type: "checkbox",
339331
label: game.i18n.localize("levels.tileconfig.showIfAbove.name"),
@@ -398,15 +390,7 @@ Hooks.on("renderAmbientLightConfig", (app, html, data) => {
398390
default: "",
399391
placeholder: "Infinity",
400392
step: "any",
401-
},
402-
rangeBottom: {
403-
type: "number",
404-
label: game.i18n.localize("levels.tileconfig.rangeBottom.name"),
405-
units: game.i18n.localize("levels.tileconfig.range.unit"),
406-
default: "",
407-
placeholder: "-Infinity",
408-
step: "any",
409-
},
393+
}
410394
});
411395
});
412396

@@ -421,15 +405,7 @@ Hooks.on("renderNoteConfig", (app, html, data) => {
421405
default: "",
422406
placeholder: "Infinity",
423407
step: "any",
424-
},
425-
rangeBottom: {
426-
type: "number",
427-
label: game.i18n.localize("levels.tileconfig.rangeBottom.name"),
428-
units: game.i18n.localize("levels.tileconfig.range.unit"),
429-
default: "",
430-
placeholder: "-Infinity",
431-
step: "any",
432-
},
408+
}
433409
});
434410
});
435411

@@ -444,15 +420,7 @@ Hooks.on("renderAmbientSoundConfig", (app, html, data) => {
444420
default: "",
445421
placeholder: "Infinity",
446422
step: "any",
447-
},
448-
rangeBottom: {
449-
type: "number",
450-
label: game.i18n.localize("levels.tileconfig.rangeBottom.name"),
451-
units: game.i18n.localize("levels.tileconfig.range.unit"),
452-
default: "",
453-
placeholder: "-Infinity",
454-
step: "any",
455-
},
423+
}
456424
});
457425
});
458426

@@ -485,15 +453,7 @@ Hooks.on("renderDrawingConfig", (app, html, data) => {
485453
default: "",
486454
placeholder: "Infinity",
487455
step: "any",
488-
},
489-
rangeBottom: {
490-
type: "number",
491-
label: game.i18n.localize("levels.tileconfig.rangeBottom.name"),
492-
units: game.i18n.localize("levels.tileconfig.range.unit"),
493-
default: "",
494-
placeholder: "-Infinity",
495-
step: "any",
496-
},
456+
}
497457
});
498458
});
499459

@@ -580,7 +540,7 @@ Hooks.on("renderSceneConfig", (app, html, data) => {
580540

581541
injectConfig.inject(app, html, {
582542
moduleId: "levels",
583-
inject: 'input[name="fogExploration"]',
543+
inject: 'input[name="fog.exploration"]',
584544
lightMasking: {
585545
type: "checkbox",
586546
label: game.i18n.localize("levels.sceneconfig.lightMasking.name"),

scripts/handlers/lightHandler.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export class LightHandler{
2-
static isLightVisibleWrapper(wrapped, ...args){
2+
static isLightVisibleWrapper(wrapped, ...args) {
3+
debugger
34
const result = wrapped(...args);
45
const isPreview = this.document?.id == null;
56
if(isPreview) return result;

scripts/handlers/sightHandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class SightHandler {
217217
static containsWrapper(wrapped, ...args) {
218218
const LevelsConfig = CONFIG.Levels;
219219
const testTarget = LevelsConfig.visibilityTestObject;
220-
if (!this.config?.source?.object || !(testTarget instanceof Token) || this.config.source instanceof Globalfoundry.canvas.sources.PointLightSource) return wrapped(...args);
220+
if (!this.config?.source?.object || !(testTarget instanceof Token) || this.config.source instanceof foundry.canvas.sources.GlobalLightSource) return wrapped(...args);
221221
let result;
222222
if (this.config.source instanceof foundry.canvas.sources.PointLightSource) {
223223
result = LevelsConfig.handlers.SightHandler.testInLight(this.config.source.object, testTarget, this, wrapped(...args));

scripts/ui.js

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class LevelsUI extends FormApplication {
4747
}
4848

4949
async activateListeners(html) {
50+
await canvas.scene.update({foregroundElevation: 999});
5051
canvas.tiles.activate();
5152
this.rangeEnabled = true;
5253
this.loadLevels();

scripts/wrappers.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export function registerWrappers() {
1919
CONFIG.Levels.settings.get("tokenElevScale") && LevelsConfig.handlers.RefreshHandler.refresh(canvas.tokens);
2020
});
2121

22-
libWrapper.register(LevelsConfig.MODULE_ID, "CONFIG.AmbientLight.objectClass.prototype.isVisible", LevelsConfig.handlers.UIHandler.isVisibleWrapper, "WRAPPER");
23-
2422
Hooks.on("refreshWall", (placeable) => {
2523
computeUI(placeable);
2624
})

0 commit comments

Comments
 (0)