attendre le dé draconique
sinon on a une promesse non tenue dans le message de repos
This commit is contained in:
parent
7890ecfdf9
commit
dcc7e7e256
@ -392,6 +392,7 @@ export class RdDActor extends Actor {
|
|||||||
};
|
};
|
||||||
return cumul;
|
return cumul;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async recuperationReve(message) {
|
async recuperationReve(message) {
|
||||||
const seuil = this.data.data.reve.seuil.value;
|
const seuil = this.data.data.reve.seuil.value;
|
||||||
@ -400,7 +401,7 @@ export class RdDActor extends Actor {
|
|||||||
message.content += "<br>Vous avez suffisament rêvé (seuil " + seuil + ", rêve actuel "+reve+")";
|
message.content += "<br>Vous avez suffisament rêvé (seuil " + seuil + ", rêve actuel "+reve+")";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let deRecuperation = RdDDice.deDraconique();
|
let deRecuperation = await RdDDice.deDraconique();
|
||||||
console.log("recuperationReve", deRecuperation);
|
console.log("recuperationReve", deRecuperation);
|
||||||
if (deRecuperation>=7)
|
if (deRecuperation>=7)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user