forked from public/foundryvtt-reve-de-dragon
Merge
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user