Fix startup calendar
# Conflicts: # system.json
This commit is contained in:
parent
cb91cb4842
commit
5e5e391e8d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user