#171 - Gestion potion de soins (WIP)

This commit is contained in:
2021-04-04 18:37:16 +02:00
parent e4f432c781
commit a5561b7b88
9 changed files with 99 additions and 18 deletions

View File

@ -3049,6 +3049,13 @@ export class RdDActor extends Actor {
await this.update({ 'data.subacteurs.suivants': newSuivants });
await this.update({ 'data.subacteurs.montures': newMontures });
}
/* -------------------------------------------- */
consommerPotion( potion ) {
const potionData = Misc.data(potion);
console.log("Potion consommée", potionData);
}
/* -------------------------------------------- */
async onUpdateActor(update, options, actorId) {
const updatedEndurance = update?.data?.sante?.endurance;