Message sur D20 impair dans le tchat et corrections diverses
All checks were successful
Release Creation / build (release) Successful in 44s

This commit is contained in:
2026-03-10 22:00:52 +01:00
parent 6cedcea74c
commit d4c8a20d53
43 changed files with 54 additions and 16 deletions

View File

@@ -220,14 +220,8 @@ export class WastelandActor extends Actor {
prepareDerivedData() {
if (this.type == 'personnage') {
let newSante = this.system.sante.bonus + (this.system.attributs.pui.value + this.system.attributs.tre.value) * 2 + 5
if (this.system.sante.base != newSante) {
this.update({ 'system.sante.base': newSante })
}
let newPsyche = ((this.system.attributs.cla.value + this.system.attributs.tre.value) * 2) + 5
if (this.system.psyche.fullmax != newPsyche) {
this.update({ 'system.psyche.fullmax': newPsyche })
}
this.system.sante.base = this.system.sante.bonus + (this.system.attributs.pui.value + this.system.attributs.tre.value) * 2 + 5
this.system.psyche.fullmax = ((this.system.attributs.cla.value + this.system.attributs.tre.value) * 2) + 5
}
super.prepareDerivedData()