await pour appliquerReveDeDragon
This commit is contained in:
parent
fd8f5cfcf1
commit
aee7a43901
@ -528,16 +528,16 @@ export class RdDActor extends Actor {
|
|||||||
let rolled = await RdDResolutionTable.roll(reveActuel, difficulte);
|
let rolled = await RdDResolutionTable.roll(reveActuel, difficulte);
|
||||||
// TODO: xp particulière
|
// TODO: xp particulière
|
||||||
console.log("combattreReveDeDragon", rolled );
|
console.log("combattreReveDeDragon", rolled );
|
||||||
return this.appliquerReveDeDragon(rolled, force);
|
return await this.appliquerReveDeDragon(rolled, force);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
appliquerReveDeDragon(roll, force) {
|
async appliquerReveDeDragon(roll, force) {
|
||||||
let message = "";
|
let message = "";
|
||||||
if (roll.isSuccess) {
|
if (roll.isSuccess) {
|
||||||
message += "<br>Vous gagnez " + force + " points de Rêve";
|
message += "<br>Vous gagnez " + force + " points de Rêve";
|
||||||
this.updatePointDeSeuil();
|
await this.updatePointDeSeuil();
|
||||||
this.reveActuelIncDec(force);
|
await this.reveActuelIncDec(force);
|
||||||
}
|
}
|
||||||
if (roll.isPart) {
|
if (roll.isPart) {
|
||||||
// TODO: Dialog pour choix entre HR opu général?
|
// TODO: Dialog pour choix entre HR opu général?
|
||||||
|
Loading…
Reference in New Issue
Block a user