From 702af3796138cb3dcbf35c388d8bdf30f02e330a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 18 Nov 2022 23:00:37 +0100 Subject: [PATCH] Cleanup --- module/migrations.js | 6 +++--- module/rdd-calendrier.js | 3 +-- templates/dialog-roll-competence.html | 2 +- templates/dialog-roll-signedraconique.html | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/module/migrations.js b/module/migrations.js index f04c9e43..7997e1c1 100644 --- a/module/migrations.js +++ b/module/migrations.js @@ -104,7 +104,7 @@ class _10_0_33_MigrationNomsDraconic extends Migration { get version() { return "10.0.33"; } migrationNomDraconic(ancien) { - if (typeof ancien == 'string'){ + if (typeof ancien == 'string') { switch (ancien) { case 'oniros': case "Voie d'Oniros": return "Voie d'Oniros"; case 'hypnos': case "Voie d'Hypnos": return "Voie d'Hypnos"; @@ -122,8 +122,8 @@ class _10_0_33_MigrationNomsDraconic extends Migration { await this.applyItemsUpdates(items => items .filter(it => ["sort", "sortreserve"].includes(it.type) - && (typeof it.system.draconic == 'string') || (typeof it.system.draconic?.name == 'string')) - .map(it => { return { _id: it.id, "system.draconic": this.migrationNomDraconic(it.system.draconic)} })); + && (typeof it.system.draconic == 'string') || (typeof it.system.draconic?.name == 'string')) + .map(it => { return { _id: it.id, "system.draconic": this.migrationNomDraconic(it.system.draconic) } })); } } diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index 151cdfde..68ab4f76 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -118,7 +118,7 @@ export class RdDCalendrier extends Application { this.listeNombreAstral = this.getListeNombreAstral(); this.rebuildListeNombreAstral(false); // Ensure always up-to-date } - console.log(this.calendrier, this.calendrierPos, this.listeNombreAstral); + console.log('RdDCalendrier.constructor()', this.calendrier, this.calendrierPos, this.listeNombreAstral); } /* -------------------------------------------- */ @@ -217,7 +217,6 @@ export class RdDCalendrier extends Application { /* -------------------------------------------- */ async rebuildListeNombreAstral(showDice = SHOW_DICE) { if (Misc.isUniqueConnectedGM()) { - console.log("rebuildListeNombreAstral", showDice); let jourCourant = this.getCurrentDayIndex(); let newList = []; for (let i = 0; i < MAX_NOMBRE_ASTRAL; i++) { diff --git a/templates/dialog-roll-competence.html b/templates/dialog-roll-competence.html index 0e33f2a9..110368e1 100644 --- a/templates/dialog-roll-competence.html +++ b/templates/dialog-roll-competence.html @@ -19,7 +19,7 @@
- diff --git a/templates/dialog-roll-signedraconique.html b/templates/dialog-roll-signedraconique.html index a0bc0423..0894eae8 100644 --- a/templates/dialog-roll-signedraconique.html +++ b/templates/dialog-roll-signedraconique.html @@ -1,4 +1,4 @@ -
+

Lire le signe draconique