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.

146 lines
7.3 KiB

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