diff --git a/templates/actors/parts/actor-inventory.html b/templates/actors/parts/actor-inventory.html index f9b81c02..c9073429 100644 --- a/templates/actors/parts/actor-inventory.html +++ b/templates/actors/parts/actor-inventory.html @@ -1,6 +1,6 @@ -
+
- {{#if isCharacter}} + {{#unless isNPC}}

    {{localize "SW5E.Currency"}} @@ -11,15 +11,16 @@ {{/each}}

- {{/if}} + {{/unless}} + {{#unless isVehicle}} + {{/unless}}
    @@ -27,16 +28,23 @@
  1. {{localize section.label}}

    + {{#if section.columns}} + {{#each section.columns}} +
    {{label}}
    + {{/each}} + {{else}} {{#if ../isCharacter}}
    {{localize "SW5E.Weight"}}
    {{/if}}
    {{localize "SW5E.Charges"}}
    {{localize "SW5E.Usage"}}
    + {{/if}} {{#if ../owner}} @@ -45,16 +53,35 @@
      {{#each section.items as |item iid|}} -
    1. -
      -
      +
    2. +
      + {{#if section.editableName}} + + {{else}} +

      {{item.name~}} {{~#if item.isStack}} ({{item.data.quantity}}){{/if}} {{~#if item.data.attuned}} {{/if}}

      + {{/if}}
      + {{#if section.columns}} + {{#each section.columns}} +
      + {{#with (getProperty item property)}} + {{#if ../editable}} + + {{else}} + {{this}} + {{/if}} + {{/with}} +
      + {{/each}} + {{else}} {{#if ../../isCharacter}}
      {{#if item.totalWeight}} @@ -77,11 +104,16 @@ {{item.labels.activation}} {{/if}}
      + {{/if}} {{#if ../../owner}}
      + {{#unless @root.isVehicle}} + {{/unless}} + {{#unless section.editableName}} + {{/unless}}
      {{/if}} @@ -92,7 +124,7 @@
    -{{#if isCharacter }} +{{#unless isNPC}} {{#with data.attributes.encumbrance}}
    @@ -103,4 +135,4 @@
    {{/with}} -{{/if}} +{{/unless}}