diff --git a/src/lang/de.json b/src/lang/de.json index d5e4d4f7..581c8fbb 100644 --- a/src/lang/de.json +++ b/src/lang/de.json @@ -113,6 +113,10 @@ "DS4.ProfileWeight": "Gewicht", "DS4.ProfileEyeColor": "Augenfarbe", "DS4.ProfileSpecialCharacteristics": "Besondere Eigenschaften", + "DS4.CurrencyGold": "Gold", + "DS4.CurrencySilver": "Silber", + "DS4.CurrencyCopper": "Kupfer", + "DS4.Currency": "Währung", "DS4.WarningManageActiveEffectOnOwnedItem": "Das Verwalten von aktiven Effekten innerhalb eines besessen Items wird derzeit nicht unterstützt und wird in einem nachfolgenden Update hinzugefügt.", "DS4.ErrorDiceCritOverlap": "Es gibt eine Überlappung zwischen Patzern und Immersiegen.", "DS4.ErrorExplodingRecursionLimitExceeded": "Die maximale Rekursionstiefe für slayende Würfelwürfe wurde überschritten." diff --git a/src/lang/en.json b/src/lang/en.json index 4f79f7ef..ef1d3eab 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -113,6 +113,10 @@ "DS4.ProfileWeight": "Weight", "DS4.ProfileEyeColor": "Eye Color", "DS4.ProfileSpecialCharacteristics": "Special Characteristics", + "DS4.CurrencyGold": "Gold", + "DS4.CurrencySilver": "Silver", + "DS4.CurrencyCopper": "Copper", + "DS4.Currency": "Currency", "DS4.WarningManageActiveEffectOnOwnedItem": "Managing Active Effects within an Owned Item is not currently supported and will be added in a subsequent update.", "DS4.ErrorDiceCritOverlap": "There's an overlap between Fumbles and Coups", "DS4.ErrorExplodingRecursionLimitExceeded": "Maximum recursion depth for exploding dice roll exceeded" diff --git a/src/module/actor/actor-data.ts b/src/module/actor/actor-data.ts index a3ac75b9..97d12f1b 100644 --- a/src/module/actor/actor-data.ts +++ b/src/module/actor/actor-data.ts @@ -6,6 +6,7 @@ export interface DS4ActorDataType { progression: DS4ActorDataProgression; language: DS4ActorDataLanguage; profile: DS4ActorDataProfile; + currency: DS4ActorDataCurrency; } interface DS4ActorDataAttributes { @@ -83,3 +84,9 @@ interface DS4ActorDataProfile { eyeColor: string; specialCharacteristics: string; } + +interface DS4ActorDataCurrency { + gold: number; + silver: number; + copper: number; +} diff --git a/src/module/config.ts b/src/module/config.ts index 03b2c9d5..79ce411c 100644 --- a/src/module/config.ts +++ b/src/module/config.ts @@ -188,4 +188,10 @@ export const DS4 = { eyeColor: "String", specialCharacteristics: "String", }, + + currency: { + gold: "DS4.CurrencyGold", + silver: "DS4.CurrencySilver", + copper: "DS4.CurrencyCopper", + }, }; diff --git a/src/module/ds4.ts b/src/module/ds4.ts index a9d46ac2..29a71aa3 100644 --- a/src/module/ds4.ts +++ b/src/module/ds4.ts @@ -83,6 +83,7 @@ Hooks.once("setup", function () { "progression", "language", "profile", + "currency", ]; // Exclude some from sorting where the default order matters diff --git a/src/template.json b/src/template.json index eee8acee..293d54b9 100644 --- a/src/template.json +++ b/src/template.json @@ -107,6 +107,11 @@ "weight": 0, "eyeColor": "", "specialCharacteristics": "" + }, + "currency": { + "gold": 0, + "silver": 0, + "copper": 0 } } }, diff --git a/src/templates/actor/partials/items-overview.hbs b/src/templates/actor/partials/items-overview.hbs index 676a9bfc..4fa28d97 100644 --- a/src/templates/actor/partials/items-overview.hbs +++ b/src/templates/actor/partials/items-overview.hbs @@ -97,6 +97,28 @@
+ + {{!-- Money --}} +

{{localize 'DS4.Currency'}}

+
    +
  1. +
    {{config.currency.gold}}
    +
    {{config.currency.silver}}
    +
    {{config.currency.copper}}
    +
  2. +
  3. + + + +
  4. +
+ + + + {{!-- WEAPONS --}}

{{localize 'DS4.ItemTypeWeaponPlural'}}

{{!-- {{#if (and (ne itemsByType.weapon undefined) (gt itemsByType.weapon.length 0)) }} --}}