Caracs créature
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user