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.

105 lines
6.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <li
  2. data-item-id="{{item.id}}"
  3. {{#if isContainer}}data-is-container{{/if}}
  4. {{#if item.isInContainer}}data-item-type="{{item.type}}"{{/if}}
  5. >
  6. <div class="data{{#if item.isTemporary}} temporary-item{{/if}}">
  7. <div class="item-name{{#if (and (ne @root.actor.type "loot") (not owner))}} long{{/if}}" data-tooltip-class="pf2e">
  8. <div class="item-image" data-action="to-message">
  9. <img class="item-icon" src="{{item.img}}" alt="{{item.name}}"/>
  10. <i class="fa-solid fa-message"></i>
  11. </div>
  12. {{#if isContainer}}
  13. <a class="item-control" data-action="toggle-container" data-tooltip="PF2E.OpenItemTitle"><i class="fa-solid fa-box{{#unless item.isCollapsed}}-open{{/unless}} fa-fw"></i></a>
  14. {{/if}}
  15. <h4{{#if (or user.isGM item.isIdentified)}} class="name rarity-{{item.system.traits.rarity}}"{{/if}}>
  16. <a data-action="toggle-summary">{{item.name}}</a>
  17. {{#if (and user.isGM (not item.isIdentified))}}<span class="gm-mystified-data">({{item.system.identification.identified.name}})</span>{{/if}}
  18. {{#if itemSize}}<span class="size">({{itemSize}})</span>{{/if}}
  19. {{#if item.isTemporary}}<i class="fa-solid fa-info-circle" data-tooltip="PF2E.TemporaryItemToolTip"></i>{{/if}}
  20. </h4>
  21. {{#if (and item.uses.max (or (gt item.uses.max 1) (eq item.category "wand")))}}
  22. <span class="uses">({{item.uses.value}}/{{item.uses.max}})</span>
  23. {{/if}}
  24. </div>
  25. {{#if (or @root.inventory.showValueAlways (and (eq item.type "treasure") (not item.container)))}}
  26. <span class="sell-value">
  27. {{#if (or item.isIdentified @root.user.isGM)}}
  28. <span data-visibility="{{#if item.isIdentified}}all{{else}}gm{{/if}}">
  29. {{#if @root.inventory.showIndividualPricing}}
  30. {{item.price.value}}
  31. {{#if (gt item.price.per 1)}}
  32. / {{item.price.per}}
  33. {{/if}}
  34. {{else}}
  35. {{item.assetValue}}
  36. {{/if}}
  37. </span>
  38. {{/if}}
  39. </span>
  40. {{/if}}
  41. <span class="quantity">
  42. {{#if editable}}<a class="decrease" data-action="decrease-quantity" title="{{localize "PF2E.Actor.Inventory.ItemQuantity.Decrease.Click"}}&#013;{{localize "PF2E.Actor.Inventory.ItemQuantity.Decrease.ShiftClick"}}&#013;{{localize "PF2E.Actor.Inventory.ItemQuantity.Decrease.ControlClick"}}">&ndash;</a>{{/if}}
  43. <span>{{item.quantity}}</span>
  44. {{#if editable}}<a class="increase" data-action="increase-quantity" title="{{localize "PF2E.Actor.Inventory.ItemQuantity.Increase.Click"}}&#013;{{localize "PF2E.Actor.Inventory.ItemQuantity.Increase.ShiftClick"}}&#013;{{localize "PF2E.Actor.Inventory.ItemQuantity.Increase.ControlClick"}}">+</a>{{/if}}
  45. </span>
  46. <span class="bulk">{{item.bulk}}</span>
  47. {{#if editable}}
  48. <div class="item-controls" data-tooltip-class="pf2e">
  49. {{#if (and canBeEquipped isInvestable)}}
  50. <a class="item-control toggle-invested{{#if item.isInvested}} active{{/if}}{{#if notifyInvestment}} notify{{/if}}" data-action="toggle-invested" data-tooltip="PF2E.ui.equipmentInvested">
  51. <i class="fa-solid fa-gem fa-fw"></i>
  52. </a>
  53. {{/if}}
  54. {{#if (or (eq @root.actor.type "character") (eq @root.actor.type "npc"))}}
  55. {{> "systems/pf2e/templates/actors/partials/carry-type.hbs" item=item}}
  56. {{/if}}
  57. {{#if item.isDamaged}}
  58. <a class="item-control" data-action="repair" data-tooltip="PF2E.RepairItemTitle"><i class="fa-solid fa-hammer fa-fw"></i></a>
  59. {{/if}}
  60. {{#if @root.user.isGM}}
  61. {{#if item.isIdentified}}
  62. <a class="item-control" data-action="toggle-identified" data-tooltip="PF2E.identification.Mystify"><i class="fa-regular fa-question-circle fa-fw"></i></a>
  63. {{else}}
  64. <a class="item-control" data-action="toggle-identified" data-tooltip="PF2E.identification.Identify"><i class="fa-solid fa-question-circle fa-fw"></i></a>
  65. {{/if}}
  66. {{/if}}
  67. {{#if (and isSellable (ne @root.actor.type "loot"))}}
  68. <a class="item-control item-sell-treasure" data-action="sell-treasure" data-tooltip="PF2E.ui.sell"><i class="fa-solid fa-coins fa-fw"></i></a>
  69. {{/if}}
  70. {{#if (and (eq item.type "weapon") (eq @root.actor.type "npc"))}}
  71. <a class="item-control" data-action="generate-attack" data-tooltip="PF2E.Actor.NPC.GenerateAttack.Label"><i class="fa-solid fa-bolt fa-fw"></i></a>
  72. {{/if}}
  73. {{#if (or @root.user.isGM item.isIdentified)}}
  74. <a class="item-control item-edit" data-tooltip="PF2E.EditItemTitle"><i class="fa-solid fa-edit fa-fw"></i></a>
  75. {{/if}}
  76. {{#if (or owner (ne @root.actor.type "loot"))}}
  77. <a class="item-control item-delete" data-tooltip="PF2E.DeleteItemTitle"><i class="fa-solid fa-trash fa-fw"></i></a>
  78. {{/if}}
  79. </div>
  80. {{/if}}
  81. <div class="item-summary" hidden="hidden"></div>
  82. {{#if isContainer}}
  83. <div class="container-metadata" data-item-id="{{item.id}}" data-is-container>
  84. {{#if isContainer}}
  85. <div class="capacity {{#if (gt item.percentFull 100)}}over-limit{{/if}}">
  86. <span class="bar" style="width:{{item.percentFull}}%"></span>
  87. <span class="label">{{localize "PF2E.CapacityBarLabel"}}: {{item.capacity.value}} / {{item.capacity.max}}</span>
  88. </div>
  89. {{/if}}
  90. </div>
  91. {{/if}}
  92. </div>
  93. {{#if (and isContainer (not item.isCollapsed))}}
  94. <ul class="items container-contents" data-item-list data-container-id="{{item.id}}">
  95. {{#each heldItems}}
  96. {{> "systems/pf2e/templates/actors/partials/item-line.hbs" editable=@root.editable user=@root.user owner=@root.owner}}
  97. {{/each}}
  98. </ul>
  99. {{/if}}
  100. </li>