diff --git a/changelog.md b/changelog.md index 8dc63218..8d234557 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # 13.0 +## 13.0.25 - La ménagerie d'Illysis + +- Correction: on peut de nouveau modifier les caractéristiques des créatures + ## 13.0.24 - Le grand oubli d'Illysis - ajout d'un bouton pour supprimer les anciens messages du tchat diff --git a/module/actor/base-actor-reve.js b/module/actor/base-actor-reve.js index a9484b79..cf49defc 100644 --- a/module/actor/base-actor-reve.js +++ b/module/actor/base-actor-reve.js @@ -257,6 +257,13 @@ export class RdDBaseActorReve extends RdDBaseActor { return this.itemTypes[ITEM_TYPES.empoignade]; } + async updateCarac(caracName, to) { + const path = `system.carac.${caracName}.value`; + let updates = {}; + updates[path] = Number.parseInt(to) + await this.update(updates, { noHook: true }); + } + /* -------------------------------------------- */ async updateCreatureCompetence(idOrName, fieldName, value) { let competence = this.getCompetence(idOrName);