Various fixes

This commit is contained in:
2022-05-23 18:38:51 +02:00
parent 82c902099f
commit 3e50a9135f
4 changed files with 30 additions and 14 deletions

View File

@ -212,6 +212,9 @@ export class BoLActor extends Actor {
get fightoptions() {
return this.itemData.filter(i => i.type === "feature" && i.data.subtype === "fightoption")
}
get godsfaith() {
return this.itemData.filter(i => i.type === "feature" && i.data.subtype === "godsfaith")
}
get features() {
return this.itemData.filter(i => i.type === "feature")
}
@ -440,6 +443,11 @@ export class BoLActor extends Actor {
"label": "BOL.featureCategory.fightoptions",
"ranked": false,
"items": this.fightoptions
},
"godsfaith": {
"label": "BOL.featureSubtypes.gods",
"ranked": false,
"items": this.godsfaith
}
}
}
@ -535,7 +543,7 @@ export class BoLActor extends Actor {
/*-------------------------------------------- */
buildListeActions() {
return this.melee.concat(this.ranged)
return this.melee.concat(this.ranged).concat(this.natural)
}
/*-------------------------------------------- */
@ -573,8 +581,8 @@ export class BoLActor extends Actor {
/*-------------------------------------------- */
async sufferDamage(damage) {
let newHP = this.data.data.resources.hp.value - damage;
await this.update({ 'data.resources.hp.value': newHP });
let newHP = this.data.data.resources.hp.value - damage
await this.update({ 'data.resources.hp.value': newHP })
}
/* -------------------------------------------- */