diff --git a/module/actor/random/app-personnage-aleatoire.js b/module/actor/random/app-personnage-aleatoire.js index 79d01576..47888d69 100644 --- a/module/actor/random/app-personnage-aleatoire.js +++ b/module/actor/random/app-personnage-aleatoire.js @@ -25,6 +25,11 @@ const RANDOM_VALUES = { } export class AppPersonnageAleatoire extends FormApplication { + static preloadHandlebars() { + loadTemplates([ + 'systems/foundryvtt-reve-de-dragon/templates/actor/random/champ-aleatoire.hbs', + ]) + } static get defaultOptions() { return foundry.utils.mergeObject(super.defaultOptions, { diff --git a/module/rdd-main.js b/module/rdd-main.js index ec6c5221..36e090fc 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -67,6 +67,7 @@ import { RdDTMRDialog } from "./rdd-tmr-dialog.js" //import { RdDActorExportSheet } from "./actor/actor-export-sheet.js" import { OptionsAvancees } from "./settings/options-avancees.js" import { ExportScriptarium } from "./actor/export-scriptarium/export-scriptarium.js" +import { AppPersonnageAleatoire } from "./actor/random/app-personnage-aleatoire.js" /** * RdD system @@ -119,6 +120,7 @@ export class SystemReveDeDragon { // preload handlebars templates RdDUtility.preloadHandlebarsTemplates() + AppPersonnageAleatoire.preloadHandlebars() /* -------------------------------------------- */ this.initSystemSettings() diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 086c0fff..661d9cf8 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -169,7 +169,6 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/actor/liens-vehicules.hbs', 'systems/foundryvtt-reve-de-dragon/templates/actor/commerce-inventaire.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/commerce-inventaire-item.html', - 'systems/foundryvtt-reve-de-dragon/templates/actor/random/champ-aleatoire.hbs', //Items 'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs', 'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs',