Add charmes/tours management

This commit is contained in:
2023-11-29 22:14:22 +01:00
parent 3e394734ce
commit 4b2dd20d49
57 changed files with 188 additions and 165 deletions

View File

@@ -217,7 +217,12 @@ export class WastelandActor extends Actor {
super._preUpdate(changed, options, user);
}
/* -------------------------------------------- */
incDecSante(value) {
let sante = duplicate(this.system.sante)
sante.letaux += value
this.update({ 'system.sante': sante })
}
/* -------------------------------------------- */
getItemById(id) {
let item = this.items.find(item => item.id == id);