Ajout pouvoirs et jets associés
This commit is contained in:
@@ -43,9 +43,12 @@ export class WastelandActorSheet extends ActorSheet {
|
||||
armes: duplicate(this.actor.getWeapons()),
|
||||
protections: duplicate(this.actor.getArmors()),
|
||||
pouvoirs:duplicate(this.actor.getPouvoirs()),
|
||||
dons: duplicate(this.actor.getDons()),
|
||||
hubrises: duplicate(this.actor.getHubris()),
|
||||
tours:duplicate(this.actor.getTours()),
|
||||
artifex: duplicate(this.actor.getArtifex()),
|
||||
charmes:duplicate(this.actor.getCharmes()),
|
||||
peuple: duplicate(this.actor.getPeuple() || {}),
|
||||
origine: duplicate(this.actor.getOrigine() || {}),
|
||||
heritage: duplicate(this.actor.getHeritage() || {}),
|
||||
metier: duplicate(this.actor.getMetier() || {}),
|
||||
|
@@ -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 })
|
||||
}
|
||||
|
@@ -14,6 +14,10 @@ export const WASTELAND_CONFIG = {
|
||||
"nuit": "Chemin des Nuits",
|
||||
"oiseaux": "Chemin des Oiseaux"
|
||||
},
|
||||
hubrisType: {
|
||||
"mental": "Mental",
|
||||
"physique": "Physique",
|
||||
},
|
||||
charmetype: {
|
||||
tour: "Tour",
|
||||
charme: "Charme",
|
||||
|
@@ -17,6 +17,8 @@ export const defaultItemImg = {
|
||||
heritage: "systems/fvtt-wasteland/assets/icons/legacy.webp",
|
||||
charme: "systems/fvtt-wasteland/assets/icons/charm.webp",
|
||||
peuple: "systems/fvtt-wasteland/assets/icons/people.webp",
|
||||
don: "systems/fvtt-wasteland/assets/icons/don.webp",
|
||||
hubris: "systems/fvtt-wasteland/assets/icons/hubris.webp",
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user