Ajout aide + effets

This commit is contained in:
2022-11-23 21:34:51 +01:00
parent 985aba0318
commit fe1cda67c4
19 changed files with 244 additions and 99 deletions

View File

@ -134,6 +134,7 @@ export class BoLActorSheet extends ActorSheet {
formData.alchemy = this.actor.alchemy
formData.containers = this.actor.containers
formData.treasure = this.actor.treasure
formData.boleffects = this.actor.boleffects
formData.alchemyrecipe = this.actor.alchemyrecipe
formData.vehicles = this.actor.vehicles
formData.fightoptions = this.actor.fightoptions

View File

@ -206,6 +206,9 @@ export class BoLActor extends Actor {
get resources() {
return Object.values(this.system.resources)
}
get boleffects() {
return this.items.filter(i => i.type === "feature" && i.system.subtype === "boleffect")
}
get boons() {
return duplicate(this.items.filter(i => i.type === "feature" && i.system.subtype === "boon") || []);
}
@ -471,6 +474,11 @@ export class BoLActor extends Actor {
"label": "BOL.featureSubtypes.gods",
"ranked": false,
"items": this.godsfaith
},
"boleffects": {
"label": "BOL.featureSubtypes.effects",
"ranked": false,
"items": this.boleffects
}
}
}