From 3b4ed13247a02163edbba45c869c97f277754384 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 21 Dec 2025 11:59:39 +0100 Subject: [PATCH] =?UTF-8?q?Caracs=20cr=C3=A9ature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 4 ++++ module/actor/base-actor-reve.js | 7 +++++++ 2 files changed, 11 insertions(+) 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);