From 95179ffff2c916b8696e94d9595ac38bf02abbdd Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 17 Nov 2022 01:18:06 +0100 Subject: [PATCH] Cleanup --- module/actor.js | 2 -- module/misc.js | 2 +- module/rdd-calendrier.js | 2 +- module/tmr-utility.js | 5 ++--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/module/actor.js b/module/actor.js index bb462a4b..a7a10ecb 100644 --- a/module/actor.js +++ b/module/actor.js @@ -29,7 +29,6 @@ import { Monnaie } from "./item-monnaie.js"; import { DialogConsommer } from "./dialog-item-consommer.js"; import { DialogFabriquerPotion } from "./dialog-fabriquer-potion.js"; import { RollDataAjustements } from "./rolldata-ajustements.js"; -import { DialogItemAchat } from "./dialog-item-achat.js"; import { RdDItem } from "./item.js"; import { RdDPossession } from "./rdd-possession.js"; import { ENTITE_BLURETTE, ENTITE_INCARNE, ENTITE_NONINCARNE, HIDE_DICE, SHOW_DICE, SYSTEM_RDD, SYSTEM_SOCKET_ID } from "./constants.js"; @@ -3658,7 +3657,6 @@ export class RdDActor extends Actor { }); return; } - const acheteur = achat.acheteurId ? game.actors.get(achat.acheteurId) : undefined; const vendeur = achat.vendeurId ? game.actors.get(achat.vendeurId) : undefined; const vente = achat.vente; diff --git a/module/misc.js b/module/misc.js index aec166d4..3334720a 100644 --- a/module/misc.js +++ b/module/misc.js @@ -195,4 +195,4 @@ export class Misc { } return subset; } -} \ No newline at end of file +} diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index b5221454..62c02406 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -14,7 +14,7 @@ import { DialogChronologie } from "./dialog-chronologie.js"; const dossierIconesHeures = 'systems/foundryvtt-reve-de-dragon/icons/heures/' const heuresList = ["vaisseau", "sirene", "faucon", "couronne", "dragon", "epees", "lyre", "serpent", "poissonacrobate", "araignee", "roseau", "chateaudormant"]; const heuresDef = { - "vaisseau": {key:"vaisseau", label: "Vaisseau", lettreFont: 'v', saison: "printemps", heure: 0, icon: 'hd01.svg' }, + "vaisseau": {key: "vaisseau", label: "Vaisseau", lettreFont: 'v', saison: "printemps", heure: 0, icon: 'hd01.svg' }, "sirene": { key: "sirene", label: "Sirène", lettreFont: 'i', saison: "printemps", heure: 1, icon: 'hd02.svg' }, "faucon": { key: "faucon", label: "Faucon", lettreFont: 'f', saison: "printemps", heure: 2, icon: 'hd03.svg' }, "couronne": { key: "couronne", label: "Couronne", lettreFont: '', saison: "ete", heure: 3, icon: 'hd04.svg' }, diff --git a/module/tmr-utility.js b/module/tmr-utility.js index 3ec336df..22a66ac5 100644 --- a/module/tmr-utility.js +++ b/module/tmr-utility.js @@ -1,4 +1,3 @@ -import { TMRRencontres } from "./tmr-rencontres.js"; import { Misc } from "./misc.js"; import { Grammar } from "./grammar.js"; import { RdDDice } from "./rdd-dice.js"; @@ -291,9 +290,9 @@ export class TMRUtility { static typeTmrName(type) { return Misc.upperFirst(TMRType[Grammar.toLowerCaseNoAccent(type)].name); } - + static buildSelectionTypesTMR(typesTMR) { - typesTMR= typesTMR?? []; + typesTMR = typesTMR?? []; return Object.values(TMRType).map(value => Misc.upperFirst(value.name)) .sort() .map(name => { return { name: name, selected: typesTMR.includes(name) } });