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.

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