diff --git a/modules/malefices-actor-sheet.js b/modules/malefices-actor-sheet.js index 8af579a..58e373b 100644 --- a/modules/malefices-actor-sheet.js +++ b/modules/malefices-actor-sheet.js @@ -36,6 +36,7 @@ export class MaleficesActorSheet extends ActorSheet { system: duplicate(this.object.system), limited: this.object.limited, armes: duplicate(this.actor.getArmes()), + tarots: duplicate(this.actor.getTarots()), equipements: duplicate(this.actor.getEquipements()), subActors: duplicate(this.actor.getSubActors()), phyMalus: this.actor.getPhysiqueMalus(), diff --git a/modules/malefices-actor.js b/modules/malefices-actor.js index a8ee401..5fe0f0b 100644 --- a/modules/malefices-actor.js +++ b/modules/malefices-actor.js @@ -86,6 +86,13 @@ export class MaleficesActor extends Actor { MaleficesUtility.sortArrayObjectsByName(comp) return comp; } + + /* -------------------------------------------- */ + getTarots() { + let comp = duplicate(this.items.filter(item => item.type == 'tarot') || []) + MaleficesUtility.sortArrayObjectsByName(comp) + return comp; + } /* -------------------------------------------- */ getArmes() { let comp = duplicate(this.items.filter(item => item.type == 'arme') || []) diff --git a/system.json b/system.json index 3f44f4f..f95e8e1 100644 --- a/system.json +++ b/system.json @@ -55,7 +55,7 @@ ], "title": "Maléfices, le Jeu de Rôle", "url": "https://www.uberwald.me/gitea/public/fvtt-malefices", - "version": "10.0.4", - "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.4.zip", + "version": "10.0.5", + "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.5.zip", "background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp" } \ No newline at end of file diff --git a/templates/actors/actor-sheet.hbs b/templates/actors/actor-sheet.hbs index af38ec1..a1422c4 100644 --- a/templates/actors/actor-sheet.hbs +++ b/templates/actors/actor-sheet.hbs @@ -225,6 +225,30 @@ +