diff --git a/modules/hawkmoon-actor-sheet.js b/modules/hawkmoon-actor-sheet.js index 2ccb774..2f7785e 100644 --- a/modules/hawkmoon-actor-sheet.js +++ b/modules/hawkmoon-actor-sheet.js @@ -42,10 +42,10 @@ export class HawkmoonActorSheet extends ActorSheet { armes: duplicate(this.actor.getWeapons()), monnaies: duplicate(this.actor.getMonnaies()), protections: duplicate(this.actor.getArmors()), - historique: duplicate(this.actor.getHistorique() || {}), - talents: duplicate(this.actor.getTalents() || {}), + historiques: duplicate(this.actor.getHistoriques() || []), + talents: duplicate(this.actor.getTalents() || []), talentsCell: this.getCelluleTalents(), - profils: duplicate(this.actor.getProfils() || {}), + profils: duplicate(this.actor.getProfils() || []), combat: this.actor.getCombatValues(), equipements: duplicate(this.actor.getEquipments()), artefacts: duplicate(this.actor.getArtefacts()), diff --git a/modules/hawkmoon-actor.js b/modules/hawkmoon-actor.js index 83163d6..cabcf0b 100644 --- a/modules/hawkmoon-actor.js +++ b/modules/hawkmoon-actor.js @@ -128,8 +128,8 @@ export class HawkmoonActor extends Actor { getArmors() { return this.items.filter(item => item.type == "protection") } - getHistorique() { - return this.items.find(item => item.type == "historique") + getHistoriques() { + return this.items.filter(item => item.type == "historique") } getProfils() { return this.items.filter(item => item.type == "profil") diff --git a/modules/hawkmoon-main.js b/modules/hawkmoon-main.js index 0c609d6..d23d1e9 100644 --- a/modules/hawkmoon-main.js +++ b/modules/hawkmoon-main.js @@ -77,7 +77,8 @@ function welcomeMessage() { content: `
Bienvenue dans Hawkmoon et le troisième Millénaire !

Les livres de Hawkmoon sont nécessaires pour jouer : https://www.titam-france.fr

-

Hawkmoon est jeude rôle publié par Titam France/Sombres projets, tout les droits leur appartiennent.

+

Hawkmoon est jeu de rôle publié par Titam France/Sombres projets, tout les droits leur appartiennent.

+

Système développé par LeRatierBretonnien, support sur le Discord FR de Foundry.

` }); } diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 03556a6..552d69f 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -473,6 +473,7 @@
    + {{#each historiques as |historique key|}}
  • @@ -482,6 +483,7 @@
+ {{/each}} {{#each profils as |profil key|}}