This commit is contained in:
2020-11-21 18:16:18 +01:00
parent f4a88fd29c
commit 391af4bd3c
6 changed files with 59 additions and 57 deletions

View File

@ -127,8 +127,11 @@ export class RdDTMRDialog extends Dialog {
await this.actor.updatePointsDeReve( -value );
if ( !this.currentRencontre.tourbillonDirection ) {
this.currentRencontre.tourbillonDirection = TMRUtility.getDirectionPattern();
}
let tmrPos = this.actor.data.data.reve.tmrpos;
tmrPos.coord = TMRUtility.deplaceTMRSelonPattern( tmrPos.coord, this.currentRencontre.tourbillonDirection, value );
await this.actor.update({ "data.reve.tmrpos": tmrPos });
console.log("NEWPOS", tmrPos);
}
/* -------------------------------------------- */
@ -150,10 +153,10 @@ export class RdDTMRDialog extends Dialog {
this.nbFatigue += 1;
} else if ( this.rencontreState == 'tourbillonblanc' ) {
this.gererTourbillon(1);
await this.gererTourbillon(1);
} else if ( this.rencontreState == 'tourbillonnoir' ) {
this.gererTourbillon(2);
await this.gererTourbillon(2);
} else {
this.currentRencontre = undefined; // Cleanup, not used anymore