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.

155 lines
8.0 KiB

  1. <li class="strike{{#if action.ready}} ready{{/if}}{{#unless action.visible}} hidden{{/unless}}" data-strike data-action-index="{{index}}">
  2. <div class="item-name rollable">
  3. <div class="item-image variant-strike framed{{#if action.ready}} ready{{/if}}" data-action="strike-attack" data-variant-index="0">
  4. <img src="{{action.item.img}}" />
  5. <i class="fa-solid fa-dice-d20"></i>
  6. </div>
  7. <div class="actions-title">
  8. {{#unless omitName}}
  9. <div class="action-name">
  10. <h4 class="name"><a data-action="toggle-summary">{{action.label}}</a></h4>
  11. {{#if action.item.isTemporary}}
  12. <i
  13. class="fa-solid fa-info-circle"
  14. data-tooltip="PF2E.TemporaryItemToolTip"
  15. data-tooltip-class="pf2e"
  16. data-tooltip-direction="RIGHT"
  17. ></i>
  18. {{/if}}
  19. </div>
  20. {{/unless}}
  21. {{#if (any action.ready ../actor.flags.pf2e.showUnreadyStrikes)}}
  22. <!-- ATTACK/DAMAGE -->
  23. {{#> attackDamage action}}{{/attackDamage}}
  24. {{else if (and (not action.ready) (not action.handsAvailable))}}
  25. <span class="hands-occupied">{{localize "PF2E.Actor.Character.HandsOccupied"}}</span>
  26. {{/if}}
  27. </div>
  28. </div>
  29. {{#if (and action.altUsages (or action.ready ../actor.flags.pf2e.showUnreadyStrikes))}}
  30. {{#each action.altUsages as |usage|}}
  31. <div class="alt-usage" data-tooltip-class="pf2e" data-tooltip-direction="LEFT">
  32. {{#if usage.item.isThrown}}
  33. <img class="alt-usage-icon" src="systems/pf2e/icons/mdi/thrown.svg" data-tooltip="{{localize "PF2E.Item.Weapon.ThrownUsage.Label"}}" />
  34. {{else}}
  35. <img class="alt-usage-icon" src="systems/pf2e/icons/mdi/sword.svg" data-tooltip="{{localize "PF2E.Item.Weapon.MeleeUsage.Label"}}" />
  36. {{/if}}
  37. {{#> attackDamage usage isAltUsage=true}}{{/attackDamage}}
  38. </div>
  39. {{/each}}
  40. {{/if}}
  41. {{#if (and action.ammunition (or action.ready ../actor.flags.pf2e.showUnreadyStrikes))}}
  42. <div class="ammo auxiliary-actions">
  43. <select class="linked"
  44. data-action="link-ammo"
  45. {{#if action.ammunition.selected}} data-compatible="{{action.ammunition.selected.compatible}}"{{/if}}>
  46. {{#select action.ammunition.selected.id}}
  47. <option value="">{{localize "PF2E.NoAmmoLabel"}}</option>
  48. {{#each action.ammunition.compatible as |ammo|}}
  49. <option value="{{ammo.id}}" data-compatible="true">{{ammo.name}} ({{ammo.quantity}})</option>
  50. {{/each}}
  51. {{/select}}
  52. </select>
  53. <span class="magazine" data-item-id="{{action.item.id}}">
  54. {{#if (gt action.item.ammo.uses.max 1)}}
  55. <span class="remaining"><i class="icon"></i> {{action.item.ammo.uses.value}}</span>
  56. {{/if}}
  57. </span>
  58. </div>
  59. {{/if}}
  60. {{#if action.handsAvailable}}
  61. <div class="auxiliary-actions{{#if action.ready}} weapon-drawn{{/if}}">
  62. {{#each action.auxiliaryActions as |aux index|}}
  63. <button class="use-action" type="button" data-action="auxiliary-action" data-auxiliary-action-index="{{index}}">
  64. <span>{{aux.label}}</span>
  65. <span class="action-glyph">{{aux.glyph}}</span>
  66. {{#if aux.options}}
  67. <select class="modular" data-action="auxiliary-action" data-auxiliary-action-index="{{index}}">
  68. {{#each aux.options as |option|}}
  69. <option value="{{option.value}}"{{#if option.selected}} selected{{/if}}>
  70. {{option.label}} {{#if option.selected}}✔️{{/if}}
  71. </option>
  72. {{/each}}
  73. </select>
  74. {{/if}}
  75. </button>
  76. {{/each}}
  77. </div>
  78. {{/if}}
  79. <div class="item-summary" hidden="hidden">
  80. <div class="item-description">
  81. <p>{{{localize action.description}}}</p>
  82. <hr />
  83. <dl>
  84. <dt>{{{localize "PF2E.CritSuccess"}}}</dt>
  85. <dd>{{{localize action.criticalSuccess}}}</dd>
  86. <dt>{{{localize "PF2E.Success"}}}</dt>
  87. <dd>{{{localize action.success}}}</dd>
  88. </dl>
  89. </div>
  90. <div class="item-properties tags" data-tooltip-class="pf2e">
  91. {{#each action.traits as |trait|}}
  92. <span class="tag {{trait.cssClass}}"{{#if trait.description}} data-tooltip="{{trait.description}}"{{/if}}>{{trait.label}}</span>
  93. {{/each}}
  94. {{#each action.weaponTraits as |trait|}}
  95. <span class="tag tag_alt {{trait.cssClass}}"{{#if trait.description}} data-tooltip="{{trait.description}}"{{/if}}>{{trait.label}}</span>
  96. {{/each}}
  97. {{#if action.item.system.reload.label}}
  98. <span class="tag tag_secondary">{{action.item.system.reload.label}}</span>
  99. {{/if}}
  100. {{#if action.item.system.maxRange}}
  101. <span class="tag tag_secondary">{{localize (concat "PF2E.TraitRange" action.item.system.maxRange)}}</span>
  102. {{else if action.item.system.range}}
  103. <span class="tag tag_secondary">{{localize (concat "PF2E.TraitRangeIncrement" action.item.system.range)}}</span>
  104. {{/if}}
  105. </div>
  106. </div>
  107. </li>
  108. {{#*inline "attackDamage"}}
  109. <div class="button-group tags" data-tooltip-class="pf2e" data-tooltip-direction="UP">
  110. {{#each variants as |variant index|}}
  111. <button type="button" class="tag tag_secondary variant-strike" data-action="strike-attack" data-variant-index="{{index}}"
  112. {{#if ../isAltUsage}} data-alt-usage="{{#if ../item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  113. {{#if (eq ../quantity 0)}} disabled="disabled" data-tooltip="{{localize "PF2E.ErrorMessage.WeaponQuantityZero"}}"{{/if}}
  114. >
  115. {{#if (eq index 0)}}
  116. <span class="name">{{localize "PF2E.WeaponStrikeLabel"}}</span>
  117. <span class="action-glyph">{{../glyph}}</span>
  118. {{/if}}
  119. {{variant.label}}
  120. </button>
  121. {{/each}}
  122. {{#if item.dealsDamage}}
  123. <button type="button" class="tag damage" data-action="strike-damage"
  124. {{#if isAltUsage}}data-alt-usage="{{#if item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  125. >{{localize "PF2E.DamageLabel"}}</button>
  126. <button type="button" class="tag damage" data-action="strike-critical"
  127. {{#if isAltUsage}}data-alt-usage="{{#if item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  128. >{{localize "PF2E.CriticalDamageLabel"}}</button>
  129. {{#if (and versatileOptions (not (eq item.altUsageType "thrown")))}}
  130. <div class="versatile-options">
  131. {{#each versatileOptions as |option|}}
  132. <button
  133. type="button"
  134. class="damage color {{option.value}}{{#if option.selected}} selected{{/if}}"
  135. data-tooltip="{{localize option.label}}"
  136. {{#if ../isAltUsage}} data-alt-usage="{{#if ../item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  137. value="{{option.value}}"
  138. data-action="toggle-versatile"
  139. {{disabled option.selected}}
  140. >
  141. <i class="fa-solid fa-{{option.glyph}} fa-fw icon"></i>
  142. </button>
  143. {{/each}}
  144. </div>
  145. {{/if}}
  146. {{/if}}
  147. </div>
  148. {{/inline}}