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.

34 lines
1.9 KiB

1 year ago
1 year ago
1 year ago
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="sell-value">
  12. {{#if (eq @root.actor.type "loot")}}
  13. {{localize "PF2E.UnitPriceLabel"}}
  14. {{else}}
  15. {{localize "PF2E.ValueLabel"}}
  16. {{/if}}
  17. </span>
  18. {{/if}}
  19. <span class="quantity">{{localize "PF2E.QuantityLabel"}}</span>
  20. <span class="bulk">{{localize "PF2E.BulkShortLabel"}}</span>
  21. {{#if @root.editable}}
  22. <div class="item-controls">
  23. <a class="item-control item-create" title="{{localize "PF2E.CreateItemTitle"}}" data-type="{{section.type}}"><i class="fa-solid fa-fw fa-plus"></i></a>
  24. <a class="item-control inventory-browse" title="{{localize "PF2E.OpenInventoryBrowser"}}" data-filter="itemtypes-{{section.type}}"><i class="fa-solid fa-fw fa-search"></i></a>
  25. </div>
  26. {{/if}}
  27. </div>
  28. <ol class="inventory-items item-list" data-item-type="{{section.type}}">
  29. {{#each section.items}}
  30. {{> "systems/pf2e/templates/actors/partials/item-line.hbs" this=this editable=@root.editable owner=@root.owner user=@root.user}}
  31. {{/each}}
  32. </ol>
  33. {{/each}}
  34. </section>