Caracs créature

This commit is contained in:
2025-12-21 11:59:39 +01:00
parent ecb653c40c
commit 3b4ed13247
2 changed files with 11 additions and 0 deletions

View File

@@ -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);