|
|
- <section class="inventory-list directory-list inventory-pane" data-inventory>
- {{#each inventory.sections as |section|}}
- <header>
- <h3 class="item-name">{{section.label}}</h3>
- {{#if (and (includes section.types "equipment") @root.inventory.invested)}}
- <span class="item-invested-total{{#if (gt @root.inventory.invested.value @root.inventory.invested.max)}} overinvested{{/if}}">
- {{localize "PF2E.InvestedLabel"}} ({{@root.inventory.invested.value}}/{{@root.inventory.invested.max}})
- </span>
- {{/if}}
- {{#if (or @root.inventory.showValueAlways (includes section.types "treasure"))}}
- <span class="sell-value">
- {{#if (eq @root.actor.type "loot")}}
- {{localize "PF2E.UnitPriceLabel"}}
- {{else}}
- {{localize "PF2E.ValueLabel"}}
- {{/if}}
- </span>
- {{/if}}
- <span class="quantity">{{localize "PF2E.QuantityLabel"}}</span>
- <span class="bulk">{{localize "PF2E.Item.Physical.Bulk.Label"}}</span>
- {{#if @root.editable}}
- <div class="item-controls">
- <a class="item-control item-create" data-tooltip="PF2E.CreateItemTitle" data-types="{{section.types}}"
- ><i class="fa-solid fa-fw fa-plus"></i></a>
- <a class="item-control inventory-browse" data-tooltip="PF2E.OpenInventoryBrowser" data-filter="{{section.types}}"
- ><i class="fa-solid fa-fw fa-search"></i></a>
- </div>
- {{/if}}
- </header>
- <ul class="items" data-item-list data-item-types="{{section.types}}"{{#if @root.isLootSheet}} data-loot{{/if}}>
- {{#each section.items}}
- {{> "systems/pf2e/templates/actors/partials/item-line.hbs" this=this editable=@root.editable owner=@root.owner user=@root.user}}
- {{/each}}
- </ul>
- {{/each}}
- </section>
|