diff --git a/lang/fr.json b/lang/fr.json new file mode 100644 index 0000000..450963c --- /dev/null +++ b/lang/fr.json @@ -0,0 +1,31 @@ +{ + "ACTOR": { + "TypePersonnage": "Personnage", + "TypeCellule": "Cellule", + "TypeCreature": "Créature" + }, + + "ITEM": { + "TypeArtefact": "Artefact", + "TypeArme": "Arme", + "TypeTalent": "Talent", + "TypeHistorique": "Historique", + "TypeProfil": "Profil", + "TypeCompetence": "Compétence", + "TypeProtection": "Protection", + "TypeMonnaie": "Monnaie", + "TypeEquipement": "Equipement", + "TypeRessource": "Ressource", + "TypeContact": "Contact" + + }, + + "HAWKMOON": { + "ui": { + "editContact": "Modifier le contact", + "deleteContact": "Supprimer le contact", + "editTrait": "Modifier le trait", + "deleteTrait": "Supprimer le trait" + } + } +} \ No newline at end of file diff --git a/modules/hawkmoon-actor-sheet.js b/modules/hawkmoon-actor-sheet.js index 9d73418..2ccb774 100644 --- a/modules/hawkmoon-actor-sheet.js +++ b/modules/hawkmoon-actor-sheet.js @@ -48,6 +48,7 @@ export class HawkmoonActorSheet extends ActorSheet { profils: duplicate(this.actor.getProfils() || {}), combat: this.actor.getCombatValues(), equipements: duplicate(this.actor.getEquipments()), + artefacts: duplicate(this.actor.getArtefacts()), monnaies: duplicate(this.actor.getMonnaies()), richesse: this.actor.computeRichesse(), valeurEquipement: this.actor.computeValeurEquipement(), diff --git a/modules/hawkmoon-actor.js b/modules/hawkmoon-actor.js index 72a109c..83163d6 100644 --- a/modules/hawkmoon-actor.js +++ b/modules/hawkmoon-actor.js @@ -117,6 +117,10 @@ export class HawkmoonActor extends Actor { return this.items.filter(item => item.type == "equipement") } /* ----------------------- --------------------- */ + getArtefacts() { + return this.items.filter(item => item.type == "artefact") + } + /* ----------------------- --------------------- */ getMonnaies() { return this.items.filter(item => item.type == "monnaie") } diff --git a/system.json b/system.json index bb57ebc..9cce8b8 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-hawkmoon-cyd", "description": "Hawmoon RPG for FoundryVTT (CYD system - French)", - "version": "10.1.4", + "version": "10.1.5", "authors": [ { "name": "Uberwald/LeRatierBretonnien", @@ -35,7 +35,15 @@ "gridUnits": "m", "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/raw/branch/master/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-10.1.4.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-10.1.5.zip", + "languages": [ + { + "lang": "fr", + "name": "French", + "path": "lang/fr.json", + "flags": {} + } + ], "packs": [ { "type": "Item", diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 2122ae4..03556a6 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -428,6 +428,41 @@ +
+ +
+