diff --git a/module/actor.js b/module/actor.js index b4cdcccb..207907a7 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1210,13 +1210,13 @@ export class RdDActor extends Actor { } /* -------------------------------------------- */ - async cacheTMR( ) { + async cacheTMR() { await this.update({ 'data.reve.tmrpos.cache': true }); } - async montreTMR( ) { + async montreTMR() { await this.update({ 'data.reve.tmrpos.cache': false }); } - isTMRCache( ) { + isTMRCache() { return this.data.data.reve.tmrpos.cache; } /* -------------------------------------------- */ @@ -1307,7 +1307,7 @@ export class RdDActor extends Actor { async reveActuelIncDec(value) { let mydata = Misc.templateData(this); let reve = Math.max(mydata.reve.reve.value + value, 0); - await this.update( { "data.reve.reve.value": reve }); + await this.update({ "data.reve.reve.value": reve }); } /* -------------------------------------------- */ @@ -1670,7 +1670,7 @@ export class RdDActor extends Actor { if (rollEthylisme.isEchec) { await this._jetDeMoralEthylique(ethylisme); } - await this.update({'data.compteurs.ethylisme': ethylisme}); + await this.update({ 'data.compteurs.ethylisme': ethylisme }); } /* -------------------------------------------- */ @@ -2006,8 +2006,8 @@ export class RdDActor extends Actor { let draconicList = this.getDraconicList().map(d => duplicate(Misc.data(d))); for (let sort of sortList) { let draconicsSort = this.getDraconicsSort(draconicList, sort).map(it => it.name); - for (let index = 0; index < draconicList.length && sort.data.listIndex==undefined; index++){ - if (draconicsSort.includes(draconicList[index].name)){ + for (let index = 0; index < draconicList.length && sort.data.listIndex == undefined; index++) { + if (draconicsSort.includes(draconicList[index].name)) { sort.data.listIndex = index; } } @@ -2760,7 +2760,7 @@ export class RdDActor extends Actor { refreshTMRView(tmrData) { console.log("REFRESH !!!!"); if (this.currentTMR) { - this.currentTMR.externalRefresh( tmrData) + this.currentTMR.externalRefresh(tmrData) } }