diff --git a/module/actor/export-scriptarium/actor-encart-sheet.js b/module/actor/export-scriptarium/actor-encart-sheet.js index 86670656..a43cc6c8 100644 --- a/module/actor/export-scriptarium/actor-encart-sheet.js +++ b/module/actor/export-scriptarium/actor-encart-sheet.js @@ -6,8 +6,8 @@ import { ExportScriptarium } from "./export-scriptarium.js"; import { CATEGORIES_COMPETENCES, CATEGORIES_DRACONIC, Mapping } from "./mapping.js"; export class RdDActorExportSheet extends RdDActorSheet { - static async init() { - await loadTemplates([ + static init() { + loadTemplates([ "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/arme.hbs", "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs", "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessures.hbs", @@ -23,6 +23,7 @@ export class RdDActorExportSheet extends RdDActorSheet { ]) Actors.registerSheet(SYSTEM_RDD, RdDActorExportSheet, { types: ["personnage"], makeDefault: false, label: "Feuille simplifiée" }) } + static get defaultOptions() { return foundry.utils.mergeObject(RdDActorSheet.defaultOptions, { template: "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/actor-encart-sheet.hbs", diff --git a/module/rdd-main.js b/module/rdd-main.js index 5de3a3cc..2096ca9f 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -123,14 +123,14 @@ export class SystemReveDeDragon { /* -------------------------------------------- */ /* Foundry VTT Initialization */ /* -------------------------------------------- */ - async onInit() { + onInit() { game.system.rdd = this this.AppAstrologie = AppAstrologie console.log(`Initializing Reve de Dragon System Settings`) // preload handlebars templates - await RdDUtility.preloadHandlebarsTemplates() + RdDUtility.preloadHandlebarsTemplates() AppPersonnageAleatoire.preloadHandlebars() RdDItemSort.preloadHandlebars() @@ -187,7 +187,7 @@ export class SystemReveDeDragon { Actors.registerSheet(SYSTEM_RDD, RdDActorVehiculeSheet, { types: ["vehicule"], makeDefault: true }) Actors.registerSheet(SYSTEM_RDD, RdDActorEntiteSheet, { types: ["entite"], makeDefault: true }) Items.unregisterSheet("core", ItemSheet) - await RdDActorExportSheet.init() + RdDActorExportSheet.init() RdDItemSheet.register(RdDSigneDraconiqueItemSheet) RdDItemSheet.register(RdDRencontreItemSheet) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 7d6aff52..e592dcc2 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -107,7 +107,7 @@ export class RdDUtility { } /* -------------------------------------------- */ - static async preloadHandlebarsTemplates() { + static preloadHandlebarsTemplates() { const templatePaths = [ //Character Sheets 'systems/foundryvtt-reve-de-dragon/templates/actor-sheet.html', @@ -341,7 +341,7 @@ export class RdDUtility { Handlebars.registerHelper('typeTmr-name', type => TMRUtility.typeTmrName(type)); Handlebars.registerHelper('effetRencontre-name', coord => TMRUtility.typeTmrName(coord)); - await loadTemplates(templatePaths); + loadTemplates(templatePaths); } static getItem(itemId, actorId = undefined) {