Fix startup calendar
This commit is contained in:
parent
b0a14c5e8c
commit
a17715430a
@ -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);
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user