Don de double rêve
This commit is contained in:
parent
66dff68daf
commit
1632a4890b
@ -473,9 +473,15 @@ export class RdDActor extends Actor {
|
|||||||
await this._recupererEthylisme(message);
|
await this._recupererEthylisme(message);
|
||||||
await this.recupererFatigue(message);
|
await this.recupererFatigue(message);
|
||||||
await this.recuperationReve(message);
|
await this.recuperationReve(message);
|
||||||
|
if (this.isDonDoubleReve()) {
|
||||||
|
await this.recuperationReve(message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ChatMessage.create(message);
|
ChatMessage.create(message);
|
||||||
}
|
}
|
||||||
|
isDonDoubleReve() {
|
||||||
|
return this.data.items.find(item => item.type == 'tete' && item.name == 'Don de double-rêve');
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async _recupererEthylisme(message) {
|
async _recupererEthylisme(message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user