All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.8 KiB

1 year ago
  1. <section class="inventory-list directory-list inventory-pane">
  2. {{#each inventory.sections as |section|}}
  3. <div class="inventory-header">
  4. <h3 class="item-name">{{section.label}}</h3>
  5. {{#if (and (eq section.type "equipment") @root.inventory.invested)}}
  6. <span class="item-invested-total{{#if (gt @root.inventory.invested.value @root.inventory.invested.max)}} overinvested{{/if}}">
  7. {{localize "PF2E.InvestedLabel"}} ({{@root.inventory.invested.value}}/{{@root.inventory.invested.max}})
  8. </span>
  9. {{/if}}
  10. {{#if (or @root.inventory.showValueAlways (eq section.type "treasure"))}}
  11. <span class="item-sell-value">{{localize "PF2E.ValueLabel"}}</span>
  12. {{/if}}
  13. <span class="item-quantity">{{localize "PF2E.QuantityLabel"}}</span>
  14. {{#if (ne @root.actor.type "npc")}}
  15. <span class="item-weight">{{localize "PF2E.BulkShortLabel"}}</span>
  16. {{/if}}
  17. {{#if @root.editable}}
  18. <div class="item-controls">
  19. <a class="item-control item-create" title="{{localize "PF2E.CreateItemTitle"}}" data-type="{{section.type}}"><i class="fas fa-fw fa-plus"></i></a>
  20. <a class="item-control inventory-browse" title="{{localize "PF2E.OpenInventoryBrowser"}}" data-filter="itemtypes-{{section.type}}"><i class="fas fa-fw fa-search"></i></a>
  21. </div>
  22. {{/if}}
  23. </div>
  24. <ol class="inventory-items item-list" data-item-type="{{section.type}}">
  25. {{#each section.items}}
  26. {{> "systems/pf2e/templates/actors/partials/item-line.hbs" this=this editable=@root.editable owner=@root.owner user=@root.user}}
  27. {{/each}}
  28. </ol>
  29. {{/each}}
  30. </section>