diff --git a/lang/de.json b/lang/de.json index 43bcc2b..25f285a 100644 --- a/lang/de.json +++ b/lang/de.json @@ -91,6 +91,10 @@ "midgard5.origin": "Heimat", "midgard5.faith": "Glaube", + "midgard5.currency-gold": "Gold", + "midgard5.currency-silver": "Silber", + "midgard5.currency-copper": "Kupfer", + "midgard5.exp-overall": "Erfahrungsschatz", "midgard5.exp-available": "Erfahrungspunkte", "midgard5.grace": "Göttliche Gnade", @@ -197,8 +201,8 @@ "midgard5.enduranceBonus": "Ausdauerbonus", "midgard5.lpProtection": "Rüstungsschutz (LP)", "midgard5.apProtection": "Rüstungsschutz (AP)", - "midgard5.perception" : "Wahrnehmung", - "midgard5.drinking" : "Trinken", + "midgard5.perception": "Wahrnehmung", + "midgard5.drinking": "Trinken", "midgard5.new-skill": "Neue Fertigkeit", "midgard5.special": "Spezial", diff --git a/source/module/actors/M5Character.ts b/source/module/actors/M5Character.ts index 2e4f2f4..bed7d9a 100644 --- a/source/module/actors/M5Character.ts +++ b/source/module/actors/M5Character.ts @@ -67,9 +67,9 @@ export class M5Character extends Actor { brawlFw: 0, poisonResistance: { value: 0, mods: [] }, enduranceBonus: 0, - perception: {value: 0, mods: []}, + perception: { value: 0, mods: [] }, perceptionFW: 0, - drinking: {value: 0, mods: []}, + drinking: { value: 0, mods: [] }, drinkingFW: 0, }, skillMods: {}, @@ -177,6 +177,8 @@ export class M5Character extends Actor { magic: item.system.magic, calc: item.system.calc, equipped: item.system?.equipped, + value: item.system.value || 0, + currency: item.system.currency || "", }; }); } diff --git a/source/template.json b/source/template.json index c48ea3d..f1665f5 100644 --- a/source/template.json +++ b/source/template.json @@ -16,7 +16,10 @@ "caste": "", "occupation": "", "origin": "", - "faith": "" + "faith": "", + "gold": 0, + "silver": 0, + "copper": 0 } }, "characterBars": { diff --git a/templates/sheets/character/gear.hbs b/templates/sheets/character/gear.hbs index c84b37c..c4597e7 100644 --- a/templates/sheets/character/gear.hbs +++ b/templates/sheets/character/gear.hbs @@ -1,3 +1,20 @@ + + + + + + + + + + + + + + + +
{{localize "midgard5.currency-gold"}}{{localize "midgard5.currency-silver"}}{{localize "midgard5.currency-copper"}}
+ @@ -106,10 +123,12 @@ + + {{#each data.calc.gear.items as |item itemId|}} + {{/each}} diff --git a/templates/sheets/item/item.hbs b/templates/sheets/item/item.hbs index a3ebea0..e2690f4 100644 --- a/templates/sheets/item/item.hbs +++ b/templates/sheets/item/item.hbs @@ -23,7 +23,15 @@
{{localize "TYPES.Item.item"}}{{localize "midgard5.item-value"}}
@@ -118,6 +137,11 @@ {{localize "midgard5.equipped"}} {{/if}} + {{#unless (or (eq item.value 0) (eq item.currency ""))}} + {{item.value}} {{localize (m5concat "midgard5.currency-" item.currency)}} + {{/unless}} +
{{localize "midgard5.item-value"}} - + +