From c10ab44ea9429bd49474bff57adf41239de429de Mon Sep 17 00:00:00 2001 From: Siegfried Krug Date: Sun, 10 Jan 2021 20:40:26 +0100 Subject: [PATCH] modifications --- src/module/config.ts | 3 +-- .../actor/partials/items-overview.hbs | 21 +++++++------------ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/module/config.ts b/src/module/config.ts index b6a75295..171b26f8 100644 --- a/src/module/config.ts +++ b/src/module/config.ts @@ -190,9 +190,8 @@ export const DS4 = { }, /** - * Define currency elemenrs for handlebars of a character + * Define currency elements for handlebars of a character */ - currency: { gold: "DS4.CurrencyGold", silver: "DS4.CurrencySilver", diff --git a/src/templates/actor/partials/items-overview.hbs b/src/templates/actor/partials/items-overview.hbs index 4fa28d97..b35c256a 100644 --- a/src/templates/actor/partials/items-overview.hbs +++ b/src/templates/actor/partials/items-overview.hbs @@ -102,23 +102,18 @@

{{localize 'DS4.Currency'}}

  1. -
    {{config.currency.gold}}
    -
    {{config.currency.silver}}
    -
    {{config.currency.copper}}
    + {{#each config.currency as |currency-name|}} +
    {{currency-name}}
    + {{/each}}
  2. - - - -
  3. -
- + {{#each data.currency as |currency-data-value currency-data-key|}} + + {{/each}} - + {{!-- WEAPONS --}}

{{localize 'DS4.ItemTypeWeaponPlural'}}

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