diff --git a/lang/de.json b/lang/de.json index c6cc2eb..a12db20 100644 --- a/lang/de.json +++ b/lang/de.json @@ -61,6 +61,8 @@ "item-ismagic": "Ist Magisch", "item-wealth": "Vermögenswert", "item-weight": "Gewicht", + "item-abw": "ABW", + "item-abw-long": "Ausbrennwahrscheinlichkeit", "actor-lp": "Lebenspunkte", "actor-lp-short": "LP", @@ -133,7 +135,7 @@ "heavy-load": "Schwere Last", "thrust-load": "Schublast", "load-max": "Höchstlast", - "load-capacity": "Tragkraft", + "capacity": "Tragkraft", "exp-overall": "Erfahrungsschatz", "exp-available": "Erfahrungspunkte", @@ -356,12 +358,13 @@ "spell-agens": "Agens", "spell-reagens": "Reagens", "spell-material": "Zaubermaterial", + "spell-rank": "Stufe", "kampfkunst-type": "Form", "kampfkunst-variante": "Variante", "kampfkunst-variante-short": "Var", "kampfkunst-ep": "Erfahrungspunkte", - "kampfkunst-rank": "Stufe", + "kampfkunst-rank": "Stufe der Technik", "kampfkunst-weapon": "Waffengruppe", "kampfkunst-enemy": "Einschränkungen durch Art der Gegner", @@ -385,6 +388,10 @@ "kido-variante": "KiDo Variante", "kido-color": "Kampfstilfarbe", "kido-style": "Art der Technik", + "kido-rank": "Stufe der Technik", + "kido-grade": "Ausbildungsgrad", + "kido-enemy": "Einschränkungen durch Art der Gegner", + "kido-weapon": "Waffengruppe", "kido-type-angriff": "Kido Angriff", "kido-type-verteidigung": "Kido Verteidigung", @@ -399,6 +406,7 @@ "kido-variante-blockieren": "Blockieren", "kido-variante-bewegen": "Bewegen", "kido-variante-kontrollieren": "Kontrollieren", + "kido-variante-finte": "Finte", "mod-operation-add100": "Addieren (max 100)", "mod-operation-roll": "Wurf Modifikation", @@ -444,9 +452,9 @@ "reroll": "Neuwürfeln", "options": { - "modifier": "Modifikator", - "difficulty": "Schwellenwert", - "rollMode": "Würfel Modus" + "modifier": "Wurfmodifikator", + "difficulty": "Erfolg", + "rollMode": "Würfelmodus" } } } diff --git a/source/module/actors/M5Character.ts b/source/module/actors/M5Character.ts index 3f83d15..5f42cdc 100644 --- a/source/module/actors/M5Character.ts +++ b/source/module/actors/M5Character.ts @@ -280,6 +280,7 @@ export class M5Character extends Actor { if (!!item.system.containerId) { ret.gear.containers[item.system.containerId].weight += parseFloat((item.system.weight * item.system.quantity).toPrecision(4)); + ret.gear.containers[item.system.containerId].value += parseFloat(this.calculateValue(item.system.value * item.system.quantity, item.system.currency).toPrecision(3)); if (ret.gear.containers[item.system.containerId].equipped) { ret.stats.encumbrance += item.system.weight * item.system.quantity; } @@ -302,6 +303,7 @@ export class M5Character extends Actor { label: label, icon: icon, magic: item.system.magic, + abw: item.system.abw || 0, calc: item.system.calc, equipped: item.system?.equipped, valuable: item.system?.valuable, @@ -352,6 +354,7 @@ export class M5Character extends Actor { icon: item.img, skillId: item.system.skillId, magic: item.system.magic, + abw: item.system.abw || 0, valuable: item.system?.valuable, hoarded: item.system?.hoarded, value: item.system.value || 0, @@ -395,6 +398,7 @@ export class M5Character extends Actor { icon: item.img, skillId: item.system.skillId, magic: item.system.magic, + abw: item.system.abw || 0, valuable: item.system?.valuable, hoarded: item.system?.hoarded, value: item.system.value || 0, @@ -438,6 +442,7 @@ export class M5Character extends Actor { label: label, icon: item.img, magic: item.system.magic, + abw: item.system.abw || 0, valuable: item.system?.valuable, hoarded: item.system?.hoarded, value: item.system.value || 0, diff --git a/source/template.json b/source/template.json index ba41359..cd2fc5d 100644 --- a/source/template.json +++ b/source/template.json @@ -224,7 +224,8 @@ "weight": 0, "capacity": 0, "containerId": "", - "magic": false + "magic": false, + "abw": 0 }, "durationSelection": { "durationSelection": { @@ -314,7 +315,8 @@ "ausweichen": "midgard5.kido-variante-ausweichen", "blockieren": "midgard5.kido-variante-blockieren", "bewegen": "midgard5.kido-variante-bewegen", - "kontrollieren": "midgard5.kido-variante-kontrollieren" + "kontrollieren": "midgard5.kido-variante-kontrollieren", + "finte": "midgard5.kido-variante-finte" } } }, @@ -438,6 +440,7 @@ "agens": "", "reagens": "", "material": "", + "rank": 0, "rolls": { "formulas": { "0": { @@ -459,10 +462,11 @@ "ap": "", "weapon": "", "ep": "", - "rank": "", + "rank": 0, "enemy": "", "color": "", "style": "", + "grade": "", "rolls": { "formulas": { "0": { diff --git a/templates/chat/roll-m5.hbs b/templates/chat/roll-m5.hbs index 9e516fd..ccbbb64 100644 --- a/templates/chat/roll-m5.hbs +++ b/templates/chat/roll-m5.hbs @@ -94,31 +94,29 @@ {{i.ep}} - {{localize "midgard5.kampfkunst-color"}} + {{localize "midgard5.kido-color"}} {{i.color}} - {{localize "midgard5.kampfkunst-style"}} + {{localize "midgard5.kido-style"}} {{i.style}} {{localize "midgard5.kido-type"}} {{localize (m5concat "midgard5.kido-type-" i.type)}} - {{#if (eq i.type "angriff")}} {{localize "midgard5.kido-variante"}} {{localize (m5concat "midgard5.kido-variante-" i.variante)}} - {{localize "midgard5.kampfkunst-enemy"}} + {{localize "midgard5.kido-enemy"}} {{i.enemy}} - {{localize "midgard5.kampfkunst-weapon"}} + {{localize "midgard5.kido-weapon"}} {{i.weapon}} - {{/if}} {{/unless}} {{/if}} diff --git a/templates/sheets/character/gear.hbs b/templates/sheets/character/gear.hbs index c36ef5f..faf4de1 100644 --- a/templates/sheets/character/gear.hbs +++ b/templates/sheets/character/gear.hbs @@ -251,13 +251,13 @@ {{/unless}} - {{#unless (or (eq item.weight "") (eq item.equipped?))}} - {{item.weight}} kg + {{#unless (or (eq item.weight 0) (eq item.equipped?))}} + {{item.weight}}kg {{/unless}} - {{#unless (eq item.capacity "")}} - {{item.capacity}} kg + {{#unless (eq item.capacity 0)}} + {{item.capacity}}kg {{/unless}} diff --git a/templates/sheets/item/armor.hbs b/templates/sheets/item/armor.hbs index 6826f32..40bf142 100644 --- a/templates/sheets/item/armor.hbs +++ b/templates/sheets/item/armor.hbs @@ -51,9 +51,15 @@
{{localize "midgard5.item-weight"}} - +
+ +
+ {{localize "midgard5.item-abw"}} + +
+ diff --git a/templates/sheets/item/container.hbs b/templates/sheets/item/container.hbs index 13c1a87..78c1458 100644 --- a/templates/sheets/item/container.hbs +++ b/templates/sheets/item/container.hbs @@ -18,6 +18,12 @@ + +
+ {{localize "midgard5.item-abw"}} + +
+ diff --git a/templates/sheets/item/defensiveWeapon.hbs b/templates/sheets/item/defensiveWeapon.hbs index 26ad39d..9de5a35 100644 --- a/templates/sheets/item/defensiveWeapon.hbs +++ b/templates/sheets/item/defensiveWeapon.hbs @@ -55,9 +55,15 @@
{{localize "midgard5.item-weight"}} - +
+ +
+ {{localize "midgard5.item-abw"}} + +
+ diff --git a/templates/sheets/item/item.hbs b/templates/sheets/item/item.hbs index 1509b7d..e64b2db 100644 --- a/templates/sheets/item/item.hbs +++ b/templates/sheets/item/item.hbs @@ -37,8 +37,6 @@ - -
{{localize "midgard5.item-value"}} @@ -53,6 +51,18 @@
+ +
+ {{localize "midgard5.item-weight"}} + +
+ + +
+ {{localize "midgard5.item-abw"}} + +
+ @@ -73,12 +83,6 @@ {{/if}} - -
- {{localize "midgard5.item-weight"}} - -
- diff --git a/templates/sheets/item/kampfkunst.hbs b/templates/sheets/item/kampfkunst.hbs index 962dd93..d50e049 100644 --- a/templates/sheets/item/kampfkunst.hbs +++ b/templates/sheets/item/kampfkunst.hbs @@ -25,8 +25,10 @@ {{localize "midgard5.kampfkunst-ep"}} + {{#unless item.system.isKido}} {{localize "midgard5.kampfkunst-rank"}} - + + {{/unless}} {{localize "midgard5.kampfkunst-weapon"}} @@ -83,6 +85,20 @@ {{/unless}} {{/unless}} + {{#if item.system.isKido}} + + {{localize "midgard5.kido-color"}} + + {{localize "midgard5.kido-style"}} + + + + {{localize "midgard5.kido-grade"}} + + {{localize "midgard5.kido-rank"}} + + + {{/if}} {{localize "midgard5.skill"}} diff --git a/templates/sheets/item/weapon.hbs b/templates/sheets/item/weapon.hbs index b1c2f79..dcda116 100644 --- a/templates/sheets/item/weapon.hbs +++ b/templates/sheets/item/weapon.hbs @@ -60,9 +60,15 @@
{{localize "midgard5.item-weight"}} - +
+ +
+ {{localize "midgard5.item-abw"}} + +
+