Fix: raison non utilisée

This commit is contained in:
Vincent Vandemeulebrouck 2021-06-25 14:17:58 +02:00
parent a17715430a
commit 92f1cbd7c3
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@
/* -------------------------------------------- */
async resetNombreAstraux() {
game.system.rdd.calendrier.resetNombreAstral();
await game.system.rdd.calendrier.rebuildListeNombreAstral( 'reset' );
await game.system.rdd.calendrier.rebuildListeNombreAstral();
game.system.rdd.calendrier.showAstrologieEditor();
}

View File

@ -78,7 +78,7 @@ export class RdDCalendrier extends Application {
// nombre astral
if (game.user.isGM) {
this.listeNombreAstral = this._loadListNombreAstral();
await this.rebuildListeNombreAstral(undefined, false); // Ensure always up-to-date
await this.rebuildListeNombreAstral(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', showDice = true) {
async rebuildListeNombreAstral(showDice = true) {
if (game.user.isGM) {
let jourCourant = this.getCurrentDayIndex();
@ -425,7 +425,7 @@ export class RdDCalendrier extends Application {
this.calendrier.heureRdD = heuresList.findIndex(heure => heure === calendrierData.heureKey);; // Index dans heuresList
game.settings.set("foundryvtt-reve-de-dragon", "calendrier", duplicate(this.calendrier));
await this.rebuildListeNombreAstral( 'reset' );
await this.rebuildListeNombreAstral();
game.socket.emit("system.foundryvtt-reve-de-dragon", {
msg: "msg_sync_time",