Fix: statusEffect onReady pour avoir le game.user

This commit is contained in:
Vincent Vandemeulebrouck 2021-01-22 02:00:04 +01:00
parent 41029819c6
commit 970ee5fc04
2 changed files with 9 additions and 7 deletions

View File

@ -220,7 +220,6 @@ Hooks.once("init", async function () {
RdDCombat.init(); RdDCombat.init();
RdDTokenHud.init(); RdDTokenHud.init();
RdDActor.init(); RdDActor.init();
StatusEffects.init();
}); });
/* -------------------------------------------- */ /* -------------------------------------------- */
@ -240,6 +239,9 @@ function messageDeBienvenue() {
/* Foundry VTT Initialization */ /* Foundry VTT Initialization */
/* -------------------------------------------- */ /* -------------------------------------------- */
Hooks.once("ready", function () { Hooks.once("ready", function () {
StatusEffects.onReady();
/* -------------------------------------------- */ /* -------------------------------------------- */
/* Affiche/Init le calendrier */ /* Affiche/Init le calendrier */
let calendrier = new RdDCalendrier(); let calendrier = new RdDCalendrier();

View File

@ -8,7 +8,7 @@ const statusDemiSurprise = new Set(['sonne', 'prone', 'restrain']);
const statusSurpriseTotale = new Set(['unconscious', 'blind']); const statusSurpriseTotale = new Set(['unconscious', 'blind']);
export class StatusEffects { export class StatusEffects {
static init() { static onReady() {
StatusEffects.setCoreStatusId([demiReveStatusEffect]); StatusEffects.setCoreStatusId([demiReveStatusEffect]);
StatusEffects.setCoreStatusId(rddStatusEffects); StatusEffects.setCoreStatusId(rddStatusEffects);
StatusEffects.setMandatoryRdd(); StatusEffects.setMandatoryRdd();