diff --git a/assets/scenes/9fmf9lcb3L9XO3bJ-thumb.png b/assets/scenes/9fmf9lcb3L9XO3bJ-thumb.png new file mode 100644 index 00000000..4eafd6b2 Binary files /dev/null and b/assets/scenes/9fmf9lcb3L9XO3bJ-thumb.png differ diff --git a/module/actor.js b/module/actor.js index bbb8f125..c6146106 100644 --- a/module/actor.js +++ b/module/actor.js @@ -991,9 +991,7 @@ export class RdDActor extends RdDBaseActorSang { /* -------------------------------------------- */ buildTMRInnaccessible() { - return this.items[TYPES.casetmr] - .filter(it => EffetsDraconiques.isInnaccessible(it)) - .map(it => it.system.coord) + return this.items.filter(it => it.type == TYPES.casetmr).filter(it => EffetsDraconiques.isInnaccessible(it)).map(it => it.system.coord) } /* -------------------------------------------- */ diff --git a/module/item-sheet.js b/module/item-sheet.js index 5b32caae..beacf673 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -108,8 +108,8 @@ export class RdDItemSheet extends ItemSheet { const competences = await SystemCompendiums.getCompetences('personnage'); formData.categories = this.item.getCategories() if (this.item.type == 'tache' || this.item.type == 'livre' || this.item.type == 'meditation' || this.item.type == 'oeuvre') { - formData.caracList = foundry.utils.duplicate(game.system.model.Actor.personnage.carac) - formData.caracList["reve-actuel"] = foundry.utils.duplicate(game.system.model.Actor.personnage.reve.reve) + formData.caracList = foundry.utils.duplicate(game.model.Actor.personnage.carac) + formData.caracList["reve-actuel"] = foundry.utils.duplicate(game.model.Actor.personnage.reve.reve) formData.competences = competences; } if (this.item.type == 'arme') { diff --git a/module/migrations.js b/module/migrations.js index dbfeea25..03a396bf 100644 --- a/module/migrations.js +++ b/module/migrations.js @@ -567,7 +567,7 @@ export class Migrations { if (currentVersion.startsWith("v")) { currentVersion = currentVersion.substring(1) } - if (isNewerVersion(game.system.version, currentVersion)) { + if (foundry.utils.isNewerVersion(game.system.version, currentVersion)) { // if (true) { /* comment previous and uncomment here to test before upgrade */ const migrations = Migrations.getMigrations().filter(m => isNewerVersion(m.version, currentVersion)); if (migrations.length > 0) { diff --git a/module/time/auto-adjust-darkness.js b/module/time/auto-adjust-darkness.js index 09ecdf5a..1d851cf1 100644 --- a/module/time/auto-adjust-darkness.js +++ b/module/time/auto-adjust-darkness.js @@ -17,7 +17,7 @@ export class AutoAdjustDarkness { static async adjust(darkness) { if (AutoAdjustDarkness.isAuto()) { const scene = game.scenes.viewed; - if (scene?.globalLight && scene?.tokenVision) { + if (scene?.environment?.globalLight?.enabled && scene?.tokenVision) { await scene.update({ darkness }); } } diff --git a/templates/actor/header-effects.html b/templates/actor/header-effects.html index 201f755b..04c5e4de 100644 --- a/templates/actor/header-effects.html +++ b/templates/actor/header-effects.html @@ -2,7 +2,7 @@ {{#if effects}} {{#each effects as |effect key|}} - + {{/each}} {{#if calc.surprise}}{{calc.surprise}}!{{/if}} diff --git a/templates/settings/status-effects.html b/templates/settings/status-effects.html index bc4e370e..11cbc058 100644 --- a/templates/settings/status-effects.html +++ b/templates/settings/status-effects.html @@ -7,7 +7,7 @@ {{else}} {{/if}} - + {{/each}}