diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index 72aed10b..f17ce6b1 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -88,7 +88,7 @@ export class RdDCalendrier extends Application { // nombre astral if (game.user.isGM) { this.listeNombreAstral = this._loadListNombreAstral(); - await this.rebuildListeNombreAstral(); // Ensure always up-to-date + await this.rebuildListeNombreAstral(undefined, false); // Ensure always up-to-date } console.log(this.calendrier, this.calendrierPos, this.listeNombreAstral); } @@ -197,7 +197,7 @@ export class RdDCalendrier extends Application { } /* -------------------------------------------- */ - async rebuildListeNombreAstral( raison = 'incjour') { + async rebuildListeNombreAstral( raison = 'incjour', showDice = true) { if (game.user.isGM) { let jourCourant = this.getCurrentDayIndex(); @@ -208,7 +208,7 @@ export class RdDCalendrier extends Application { if (na) { newList[i] = duplicate(na); } else { - newList[i] = await this.ajouterNombreAstral(dayIndex, raison == 'incjour' ); + newList[i] = await this.ajouterNombreAstral(dayIndex, showDice ); } } console.log("SAVE list", newList, jourCourant);