Fix startup calendar

This commit is contained in:
sladecraven 2021-06-25 13:24:43 +02:00
parent b0a14c5e8c
commit a17715430a
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,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);
}
@ -183,7 +183,7 @@ export class RdDCalendrier extends Application {
}
/* -------------------------------------------- */
async rebuildListeNombreAstral( raison = 'incjour') {
async rebuildListeNombreAstral( raison = 'incjour', showDice = true) {
if (game.user.isGM) {
let jourCourant = this.getCurrentDayIndex();
@ -194,7 +194,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);

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.4.33",
"version": "1.4.34",
"manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.99",