From ad5f91fbb231b6c96cdfff72e210ec6a129b9404 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 9 Nov 2022 23:48:08 +0100 Subject: [PATCH] Add icons and background --- modules/hawkmoon-actor-sheet.js | 2 +- modules/hawkmoon-actor.js | 4 +-- templates/actor-sheet.html | 55 +++++++++++++++++++-------------- 3 files changed, 34 insertions(+), 27 deletions(-) diff --git a/modules/hawkmoon-actor-sheet.js b/modules/hawkmoon-actor-sheet.js index a7c2ca4..c09693e 100644 --- a/modules/hawkmoon-actor-sheet.js +++ b/modules/hawkmoon-actor-sheet.js @@ -43,7 +43,7 @@ export class HawkmoonActorSheet extends ActorSheet { protections: duplicate(this.actor.getArmors()), historique: duplicate(this.actor.getHistorique() || {}), talents: duplicate(this.actor.getTalents() || {}), - profils: duplicate(this.actor.getProfil() || {}), + profils: duplicate(this.actor.getProfils() || {}), combat: this.actor.getCombatValues(), equipements: duplicate(this.actor.getEquipments()), description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}), diff --git a/modules/hawkmoon-actor.js b/modules/hawkmoon-actor.js index c19c4f6..adb6b94 100644 --- a/modules/hawkmoon-actor.js +++ b/modules/hawkmoon-actor.js @@ -94,8 +94,8 @@ export class HawkmoonActor extends Actor { getHistorique() { return this.items.find(item => item.type == "historique") } - getProfil() { - return this.items.find(item => item.type == "profil") + getProfils() { + return this.items.filter(item => item.type == "profil") } getTalents() { return this.items.filter(item => item.type == "talent") diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 5099b91..a2ca80e 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -78,6 +78,24 @@ +
+

Adversité

+ +
+

Santé