From d39194c4fa48c4c2de0cb633a02f5d8e823d2724 Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Tue, 29 Dec 2020 20:37:30 +0100 Subject: [PATCH] added shield list in char sheet --- src/templates/actor/partials/items.hbs | 54 +++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/src/templates/actor/partials/items.hbs b/src/templates/actor/partials/items.hbs index 03da82f5..0143f89c 100644 --- a/src/templates/actor/partials/items.hbs +++ b/src/templates/actor/partials/items.hbs @@ -9,7 +9,7 @@
  1. -
    {{!-- equipped --}} +
    {{!-- equipped --}} {{!-- SPECIFIC --}}
    #
    {{!-- amount --}}
    @@ -66,7 +66,7 @@
    1. -
      {{!-- equipped --}} +
      {{!-- equipped --}} {{!-- SPECIFIC --}}
      #
      {{!-- amount --}}
      @@ -113,4 +113,54 @@ {{/with}} {{/each}}
    + + + {{!-- SHIELD --}} +

    {{localize "DS4.ItemTypeShield"}}

    {{!-- SPECIFIC --}} +
      +
    1. +
      +
      {{!-- equipped --}} {{!-- SPECIFIC --}} +
      +
      #
      {{!-- amount --}} +
      +
      {{localize "DS4.ItemName"}}
      +
      {{localize "DS4.ArmorValueAbbr"}}
      {{!-- SPECIFIC --}} +
      {{localize "DS4.Description"}}
      + {{!-- add button --}} +
      {{!-- SPECIFIC --}} + + {{localize "DS4.ActionAddItem"}} {{!-- SPECIFIC --}} +
      +
    2. + {{#each itemsByType.shield as |item id|}} {{!-- SPECIFIC --}} + {{#with item.data.data as |itemData|}} +
    3. +
      + {{!-- equipped? --}} + {{#if itemData.equipped}} + {{else}} + {{/if}} {{!--SPECIFIC --}} + {{!-- image --}} +
      + +
      + {{!-- amount --}} +
      {{itemData.quantity}}
      +
      + {{!-- name --}} +

      {{item.name}}

      + {{!-- item specifics --}} +
      {{itemData.armorValue}}
      {{!-- SPECIFIC --}} + {{!-- description --}} +
      {{{itemData.description}}}
      + {{!-- edit & delete buttons --}} +
      + + +
      +
    4. + {{/with}} + {{/each}} +
    \ No newline at end of file