Don de double rêve

This commit is contained in:
Vincent Vandemeulebrouck 2021-02-03 20:39:52 +01:00
parent 66dff68daf
commit 1632a4890b

View File

@ -473,9 +473,15 @@ export class RdDActor extends Actor {
await this._recupererEthylisme(message);
await this.recupererFatigue(message);
await this.recuperationReve(message);
if (this.isDonDoubleReve()) {
await this.recuperationReve(message);
}
}
ChatMessage.create(message);
}
isDonDoubleReve() {
return this.data.items.find(item => item.type == 'tete' && item.name == 'Don de double-rêve');
}
/* -------------------------------------------- */
async _recupererEthylisme(message) {