Ajout pouvoirs et jets associés

This commit is contained in:
2023-12-01 14:03:04 +01:00
parent 4ed2bcd2ee
commit 68689add33
72 changed files with 533 additions and 342 deletions

View File

@@ -122,6 +122,12 @@ export class WastelandActor extends Actor {
getPouvoirs() {
return this.getItemSorted(["pouvoir"])
}
getDons() {
return this.getItemSorted(["don"])
}
getHubris() {
return this.getItemSorted(["hubris"])
}
getEquipments() {
return this.getItemSorted(["equipement"])
}
@@ -131,6 +137,9 @@ export class WastelandActor extends Actor {
getArmors() {
return this.getItemSorted(["protection"])
}
getPeuple() {
return this.items.find(item => item.type == "peuple")
}
getOrigine() {
return this.items.find(item => item.type == "origine")
}
@@ -206,7 +215,7 @@ export class WastelandActor extends Actor {
if (this.system.sante.base != newSante) {
this.update({ 'system.sante.base': newSante })
}
let newPsyche = (this.system.attributs.cla.value + this.system.attributs.tre.value) * this.system.biodata.psychemultiplier + 5
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 })
}