Amelioration fiche items

This commit is contained in:
2024-02-29 22:35:12 +01:00
parent 3b98a18ee0
commit 6b1ecb6353
30 changed files with 389 additions and 455 deletions

View File

@ -65,6 +65,17 @@ export class TeDeumActor extends Actor {
}
/* -------------------------------------------- */
getBonusDegats() {
return game.system.tedeum.config.BONUS_DEGATS[this.system.caracteristiques.puissance.value]
}
/* -------------------------------------------- */
getNbArmures() {
return game.system.tedeum.config.MAX_ARMURES_LOURDES[this.system.caracteristiques.puissance.value]
}
getNbActions() {
return game.system.tedeum.config.ACTIONS_PAR_TOUR[this.system.caracteristiques.adresse.value]
}
/* -------------------------------------------- */
getCompetences() {
let comp = duplicate(this.items.filter(item => item.type == 'competence') || [])
@ -118,11 +129,6 @@ export class TeDeumActor extends Actor {
}
}
/* ------------------------------------------- */
getEquipments() {
return this.items.filter(item => item.type == 'equipment')
}
/* ------------------------------------------- */
async buildContainerTree() {
let equipments = duplicate(this.items.filter(item => item.type == "equipment") || [])
@ -179,6 +185,7 @@ export class TeDeumActor extends Actor {
clearInitiative() {
this.getFlag("world", "initiative", -1)
}
/* -------------------------------------------- */
getInitiativeScore(combatId, combatantId) {
let init = Math.floor((this.system.attributs.physique.value + this.system.attributs.habilite.value) / 2)
@ -238,7 +245,6 @@ export class TeDeumActor extends Actor {
/* -------------------------------------------- */
getCommonRollData() {
//this.system.internals.confrontbonus = 5 // TO BE REMOVED!!!!
let rollData = TeDeumUtility.getBasicRollData()
rollData.alias = this.name
rollData.actorImg = this.img