Make TMR great again....

This commit is contained in:
2021-05-02 21:08:50 +02:00
parent 6d7d55e12b
commit 93b4d2ce7e
14 changed files with 21 additions and 23 deletions

View File

@ -68,7 +68,7 @@ export class RdDTMRDialog extends Dialog {
}
// load the texture we need
this.pixiTMR.load((loader, resources) => this.createPixiSprites());
this.pixiTMR.load( (loader, resources) => this.createPixiSprites() );
}
/* -------------------------------------------- */
@ -211,9 +211,9 @@ export class RdDTMRDialog extends Dialog {
this.moveFromKey("bottom");
} );
// Gestion du cout de montée en points de rêve
let reveCout = ((this.tmrdata.isRapide && !EffetsDraconiques.isDeplacementAccelere(this.actor)) ? -2 : -1)
- this.actor.countMonteeLaborieuse();
let reveCout = ((this.tmrdata.isRapide && !EffetsDraconiques.isDeplacementAccelere(this.actor)) ? -2 : -1) - this.actor.countMonteeLaborieuse();
this.cumulFatigue += this.fatigueParCase;
await this.actor.reveActuelIncDec(reveCout);
@ -519,7 +519,7 @@ export class RdDTMRDialog extends Dialog {
if (TMRUtility.isForceRencontre() || myRoll == 7) {
return await this.rencontreTMRRoll(tmr, this.actor.isRencontreSpeciale());
}
let locTMR = (this.montreTMR) ? tmr.label + " (" + tmr.coord + ")" : "??";
let locTMR = (this.cacheTMR) ? "??": tmr.label + " (" + tmr.coord + ")";
this._tellToUser(myRoll + ": Pas de rencontre en " + locTMR);
}
@ -933,7 +933,6 @@ export class RdDTMRDialog extends Dialog {
}
}
/* -------------------------------------------- */
async postRencontre(tmr) {
if (!(this.viewOnly || this.currentRencontre)) {