diff --git a/lang/fr.json b/lang/fr.json new file mode 100644 index 0000000..b56a826 --- /dev/null +++ b/lang/fr.json @@ -0,0 +1,27 @@ +{ + "ACTOR": { + "TypePersonnage": "Personnage", + "TypePNJ": "PNJ" + }, + + "ITEM": { + "TypeArme": "Arme", + "TypeCompetence": "Compétence", + "TypeProtection": "Protection", + "TypePacte": "Pacte", + "TypeTraitchaotique": "Trait Chaotique", + "TypeMonnaie": "Monnaie", + "TypeDon": "Don", + "TypeTendance": "Tendance", + "TypeRune": "Rune", + "TypeEquipement": "Equipement", + "TypeCapacite": "Capacité", + "TypeOrigine": "Origine", + "TypeHeritage": "Héritage", + "TypeMetier": "Métier", + "TypeRuneeffect": "Effet de Rune", + "TypeBouclier": "Bouclier" + + } + +} \ No newline at end of file diff --git a/modules/mournblade-actor-sheet.js b/modules/mournblade-actor-sheet.js index aa8f3b8..075740b 100644 --- a/modules/mournblade-actor-sheet.js +++ b/modules/mournblade-actor-sheet.js @@ -48,6 +48,7 @@ export class MournbladeActorSheet extends ActorSheet { marge: this.actor.getMarge(), tendances:duplicate(this.actor.getTendances()), runes:duplicate(this.actor.getRunes()), + traitsChaotiques:duplicate(this.actor.getTraitsChaotiques()), origine: duplicate(this.actor.getOrigine() || {}), heritage: duplicate(this.actor.getHeritage() || {}), metier: duplicate(this.actor.getMetier() || {}), diff --git a/modules/mournblade-actor.js b/modules/mournblade-actor.js index b6e9728..c80a2fc 100644 --- a/modules/mournblade-actor.js +++ b/modules/mournblade-actor.js @@ -116,7 +116,10 @@ export class MournbladeActor extends Actor { return this.getItemSorted(["rune"]) } getEquipments() { - return this.getItemSorted(["monnaie"]) + return this.getItemSorted(["equipement"]) + } + getTraitsChaotiques() { + return this.getItemSorted(["traitchaotique"]) } getMonnaies() { return this.getItemSorted(["monnaie"]) diff --git a/system.json b/system.json index 7b4911b..d8b4b71 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-mournblade", "description": "Mournblade RPG for FoundryVTT", - "version": "10.0.14", + "version": "10.0.15", "authors": [ { "name": "Uberwald/LeRatierBretonnien", @@ -11,11 +11,19 @@ "esmodules": [ "modules/mournblade-main.js" ], + "languages": [ + { + "lang": "fr", + "name": "French", + "path": "lang/fr.json", + "flags": {} + } + ], "gridDistance": 5, "gridUnits": "m", "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-mournblade/raw/branch/v10/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-10.0.14.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-10.0.15.zip", "packs": [ { "type": "Item", diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index c1233c2..942d0bd 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -332,6 +332,30 @@ +
+ +
+