Various fixes

This commit is contained in:
LeRatierBretonnien 2023-03-14 18:40:44 +01:00
parent da074d6ea1
commit ddb3f9dee1
5 changed files with 66 additions and 3 deletions

27
lang/fr.json Normal file
View File

@ -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"
}
}

View File

@ -48,6 +48,7 @@ export class MournbladeActorSheet extends ActorSheet {
marge: this.actor.getMarge(), marge: this.actor.getMarge(),
tendances:duplicate(this.actor.getTendances()), tendances:duplicate(this.actor.getTendances()),
runes:duplicate(this.actor.getRunes()), runes:duplicate(this.actor.getRunes()),
traitsChaotiques:duplicate(this.actor.getTraitsChaotiques()),
origine: duplicate(this.actor.getOrigine() || {}), origine: duplicate(this.actor.getOrigine() || {}),
heritage: duplicate(this.actor.getHeritage() || {}), heritage: duplicate(this.actor.getHeritage() || {}),
metier: duplicate(this.actor.getMetier() || {}), metier: duplicate(this.actor.getMetier() || {}),

View File

@ -116,7 +116,10 @@ export class MournbladeActor extends Actor {
return this.getItemSorted(["rune"]) return this.getItemSorted(["rune"])
} }
getEquipments() { getEquipments() {
return this.getItemSorted(["monnaie"]) return this.getItemSorted(["equipement"])
}
getTraitsChaotiques() {
return this.getItemSorted(["traitchaotique"])
} }
getMonnaies() { getMonnaies() {
return this.getItemSorted(["monnaie"]) return this.getItemSorted(["monnaie"])

View File

@ -1,7 +1,7 @@
{ {
"id": "fvtt-mournblade", "id": "fvtt-mournblade",
"description": "Mournblade RPG for FoundryVTT", "description": "Mournblade RPG for FoundryVTT",
"version": "10.0.14", "version": "10.0.15",
"authors": [ "authors": [
{ {
"name": "Uberwald/LeRatierBretonnien", "name": "Uberwald/LeRatierBretonnien",
@ -11,11 +11,19 @@
"esmodules": [ "esmodules": [
"modules/mournblade-main.js" "modules/mournblade-main.js"
], ],
"languages": [
{
"lang": "fr",
"name": "French",
"path": "lang/fr.json",
"flags": {}
}
],
"gridDistance": 5, "gridDistance": 5,
"gridUnits": "m", "gridUnits": "m",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-mournblade/raw/branch/v10/system.json", "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": [ "packs": [
{ {
"type": "Item", "type": "Item",

View File

@ -332,6 +332,30 @@
</ul> </ul>
</div> </div>
<div class="sheet-box color-bg-archetype">
<ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">Traits Chaotiques</label></h3>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
</div>
</li>
{{#each traitsChaotiques as |trait key|}}
<li class="item flexrow " data-item-id="{{trait._id}}" data-item-type="traitchaotique">
<img class="item-name-img" src="{{trait.img}}" />
<span class="item-name-label competence-name">{{trait.name}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
</div> </div>
</div> </div>