diff --git a/images/icons/archetype.webp b/images/icons/archetype.webp new file mode 100644 index 0000000..0282df7 Binary files /dev/null and b/images/icons/archetype.webp differ diff --git a/images/icons/equipement.webp b/images/icons/equipement.webp new file mode 100644 index 0000000..05da749 Binary files /dev/null and b/images/icons/equipement.webp differ diff --git a/images/icons/tarot.webp b/images/icons/tarot.webp new file mode 100644 index 0000000..cc4f1c3 Binary files /dev/null and b/images/icons/tarot.webp differ diff --git a/images/icons/wisdom.webp b/images/icons/wisdom.webp new file mode 100644 index 0000000..175200e Binary files /dev/null and b/images/icons/wisdom.webp differ diff --git a/lang/fr.json b/lang/fr.json index 08a01c1..dcff46d 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -1,22 +1,12 @@ { "ACTOR": { - "TypeCharacter": "Character", - "TypeNpc": "NPC" + "TypePersonnage": "Personnage" }, "ITEM": { - "TypeWeapon": "Weapon", - "TypeShield": "Shield", - "TypeArmor": "Armor", - "TypeSpell": "Spell", - "TypeModule": "Module", - "TypeMoney": "Money", - "TypeEquipment": "Equipment", - "TypeAction": "Action", - "TypeFreeaction": "Free Action", - "TypeReaction": "Reaction", - "TypeStance": "Stance", - "TypeTrait": "Trait", - "TypeCondition": "Condition", - "TypeCraftingskill": "Crafting Skill" + "TypeArme": "Arme", + "TypeEquipement": "Equipement", + "TypeTarot": "Tarot", + "TypeElementbio": "Element Biographique", + "TypeArchetype": "Archetype" } } \ No newline at end of file diff --git a/modules/malefices-actor-sheet.js b/modules/malefices-actor-sheet.js index b8775e6..d8d483a 100644 --- a/modules/malefices-actor-sheet.js +++ b/modules/malefices-actor-sheet.js @@ -41,6 +41,7 @@ export class MaleficesActorSheet extends ActorSheet { equipements: duplicate(this.actor.getEquipements()), subActors: duplicate(this.actor.getSubActors()), phyMalus: this.actor.getPhysiqueMalus(), + elementsbio: this.actor.getElementsBio(), options: this.options, owner: this.document.isOwner, editScore: this.options.editScore, diff --git a/modules/malefices-actor.js b/modules/malefices-actor.js index 4a3b23d..5ca14ba 100644 --- a/modules/malefices-actor.js +++ b/modules/malefices-actor.js @@ -95,6 +95,12 @@ export class MaleficesActor extends Actor { return comp; } /* -------------------------------------------- */ + getElementsBio() { + let comp = duplicate(this.items.filter(item => item.type == 'elementbio') || []) + MaleficesUtility.sortArrayObjectsByName(comp) + return comp; + } + /* -------------------------------------------- */ getTarots() { let comp = duplicate(this.items.filter(item => item.type == 'tarot') || []) MaleficesUtility.sortArrayObjectsByName(comp) @@ -297,6 +303,7 @@ export class MaleficesActor extends Actor { rollData.actorId = this.id rollData.img = this.img rollData.phyMalus = this.getPhysiqueMalus() + rollData.elementsbio = this.getElementsBio() rollData.destin = this.system.pointdestin rollData.isReroll = false diff --git a/modules/malefices-item.js b/modules/malefices-item.js index 32ac83e..5fc4c2d 100644 --- a/modules/malefices-item.js +++ b/modules/malefices-item.js @@ -1,8 +1,11 @@ import { MaleficesUtility } from "./malefices-utility.js"; export const defaultItemImg = { - //skill: "systems/fvtt-malefices/images/icons/skill1.webp", - arme: "systems/fvtt-malefices/images/icones/arme.webp" + arme: "systems/fvtt-malefices/images/icons/arme.webp", + equipement: "systems/fvtt-malefices/images/icons/equipement.webp", + elementbio: "systems/fvtt-malefices/images/icons/wisdom.webp", + archetype: "systems/fvtt-malefices/images/icons/archetype.webp", + tarot: "systems/fvtt-malefices/images/icons/tarot.webp", } /** diff --git a/system.json b/system.json index c6bd9ba..f55c1a0 100644 --- a/system.json +++ b/system.json @@ -64,7 +64,7 @@ ], "title": "Maléfices, le Jeu de Rôle", "url": "https://www.uberwald.me/gitea/public/fvtt-malefices", - "version": "10.0.11", - "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.11.zip", + "version": "10.0.13", + "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.13.zip", "background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp" } \ No newline at end of file diff --git a/template.json b/template.json index 0fb211a..8ccd531 100644 --- a/template.json +++ b/template.json @@ -1,8 +1,7 @@ { "Actor": { "types": [ - "personnage", - "pnj" + "personnage" ], "templates": { "biodata": { @@ -99,9 +98,13 @@ "arme", "equipement", "archetype", - "tarot" + "tarot", + "elementbio" ], "templates": {}, + "elementbio": { + "description": "" + }, "equipement": { "description": "" }, diff --git a/templates/actors/actor-sheet.hbs b/templates/actors/actor-sheet.hbs index a45c9c2..0cddf65 100644 --- a/templates/actors/actor-sheet.hbs +++ b/templates/actors/actor-sheet.hbs @@ -31,7 +31,7 @@ {{!-- Sheet Tab Navigation --}} @@ -95,6 +95,32 @@ {{/each}} + + + @@ -173,24 +199,19 @@ {{!-- Biography Tab --}}
-
- -
    +
  • + + + {{archetype.name}} +
    + +
    +
    • +
    • + + {{archetype.tarot.name}} +
    • @@ -238,7 +263,7 @@
    -
+
{{/if}} - -
- Bonus/Malus biographique : - + +
+ Rappel des élements biographiques : +
diff --git a/templates/items/item-elementbio-sheet.hbs b/templates/items/item-elementbio-sheet.hbs new file mode 100644 index 0000000..297553d --- /dev/null +++ b/templates/items/item-elementbio-sheet.hbs @@ -0,0 +1,27 @@ +
+
+ +
+

+
+
+ + {{> systems/fvtt-malefices/templates/items/partial-item-nav.hbs}} + + + {{!-- Sheet Body --}} +
+ + {{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}} + +
+ +
+
    + +
+
+
+ +
+