Gestion des signes draconiques #455
@ -1210,13 +1210,13 @@ export class RdDActor extends Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async cacheTMR( ) {
|
async cacheTMR() {
|
||||||
await this.update({ 'data.reve.tmrpos.cache': true });
|
await this.update({ 'data.reve.tmrpos.cache': true });
|
||||||
}
|
}
|
||||||
async montreTMR( ) {
|
async montreTMR() {
|
||||||
await this.update({ 'data.reve.tmrpos.cache': false });
|
await this.update({ 'data.reve.tmrpos.cache': false });
|
||||||
}
|
}
|
||||||
isTMRCache( ) {
|
isTMRCache() {
|
||||||
return this.data.data.reve.tmrpos.cache;
|
return this.data.data.reve.tmrpos.cache;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -1307,7 +1307,7 @@ export class RdDActor extends Actor {
|
|||||||
async reveActuelIncDec(value) {
|
async reveActuelIncDec(value) {
|
||||||
let mydata = Misc.templateData(this);
|
let mydata = Misc.templateData(this);
|
||||||
let reve = Math.max(mydata.reve.reve.value + value, 0);
|
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) {
|
if (rollEthylisme.isEchec) {
|
||||||
await this._jetDeMoralEthylique(ethylisme);
|
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)));
|
let draconicList = this.getDraconicList().map(d => duplicate(Misc.data(d)));
|
||||||
for (let sort of sortList) {
|
for (let sort of sortList) {
|
||||||
let draconicsSort = this.getDraconicsSort(draconicList, sort).map(it => it.name);
|
let draconicsSort = this.getDraconicsSort(draconicList, sort).map(it => it.name);
|
||||||
for (let index = 0; index < draconicList.length && sort.data.listIndex==undefined; index++){
|
for (let index = 0; index < draconicList.length && sort.data.listIndex == undefined; index++) {
|
||||||
if (draconicsSort.includes(draconicList[index].name)){
|
if (draconicsSort.includes(draconicList[index].name)) {
|
||||||
sort.data.listIndex = index;
|
sort.data.listIndex = index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2760,7 +2760,7 @@ export class RdDActor extends Actor {
|
|||||||
refreshTMRView(tmrData) {
|
refreshTMRView(tmrData) {
|
||||||
console.log("REFRESH !!!!");
|
console.log("REFRESH !!!!");
|
||||||
if (this.currentTMR) {
|
if (this.currentTMR) {
|
||||||
this.currentTMR.externalRefresh( tmrData)
|
this.currentTMR.externalRefresh(tmrData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user