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.

268 lines
17 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 year ago
1 year ago
1 year ago
  1. <div class="tab actions actions-pane" data-group="primary" data-tab="actions">
  2. <nav class="actions-nav sub-nav" data-group="actions-tabs">
  3. <a class="tab" data-tab="encounter" data-group="actions-tabs">{{localize "PF2E.TabActionsEncounterLabel"}}</a>
  4. <a class="tab" data-tab="exploration" data-group="actions-tabs">{{localize "PF2E.TabActionsExplorationLabel"}}</a>
  5. <a class="tab" data-tab="downtime" data-group="actions-tabs">{{localize "PF2E.TabActionsDowntimeLabel"}}</a>
  6. </nav>
  7. <div class="actions-container tab-content">
  8. <div class="actions-tabs-wrapper">
  9. <section class="actions-panels">
  10. <div class="actions-panel tab" data-tab="encounter" data-group="actions-tabs">
  11. {{#if toggles}}{{> "systems/pf2e/templates/actors/partials/toggles.hbs" toggles=toggles}}{{/if}}
  12. <h3 class="header">
  13. {{localize "PF2E.Actor.Attacks"}}
  14. <button type="button" class="toggle-unready-strikes" title="{{localize "PF2E.ToggleUnreadyStrikes"}}">
  15. <i class="fa-solid fa-tshirt"{{#if actor.flags.pf2e.showUnreadyStrikes}} style="color: rgba(0, 0, 0, 0.4);"{{/if}}></i>
  16. </button>
  17. </h3>
  18. {{#if elementalBlasts}}
  19. <!-- ELEMENTAL BLASTS -->
  20. <ol class="actions-list directory-list elemental-blasts">
  21. {{#each elementalBlasts as |blast|}}
  22. {{> "systems/pf2e/templates/actors/character/partials/elemental-blast.hbs" action=blast}}
  23. {{/each}}
  24. </ol>
  25. {{/if}}
  26. <ol class="actions-list item-list directory-list strikes-list">
  27. {{#each data.actions as |action ai|}}
  28. <li class="item strike expandable{{#if action.ready}} ready{{/if}}{{#unless action.visible}} hidden{{/unless}}" data-strike="" data-action-index="{{ai}}">
  29. <div class="item-name rollable">
  30. <div class="item-image variant-strike framed" data-action="strike-attack" data-variant-index="0">
  31. <img src="{{action.imageUrl}}" />
  32. <i class="fa-solid fa-dice-d20"></i>
  33. </div>
  34. <div class="actions-title">
  35. <div class="action-name">
  36. <h4>
  37. {{action.label}}
  38. {{#if action.item.isTemporary}}<i class="fa-solid fa-info-circle small" title="{{localize "PF2E.TemporaryItemToolTip"}}"></i>{{/if}}
  39. </h4>
  40. </div>
  41. {{#if (any action.ready ../actor.flags.pf2e.showUnreadyStrikes)}}
  42. <!-- ATTACK/DAMAGE -->
  43. {{#> attackDamage action}}{{/attackDamage}}
  44. {{/if}}
  45. </div>
  46. </div>
  47. {{#if (and action.altUsages (or action.ready ../actor.flags.pf2e.showUnreadyStrikes))}}
  48. {{#each action.altUsages as |usage|}}
  49. <div class="alt-usage">
  50. {{#if usage.item.isThrown}}
  51. <img class="alt-usage-icon" src="systems/pf2e/icons/mdi/thrown.svg" data-tooltip="{{localize "PF2E.Item.Weapon.ThrownUsage.Label"}}" />
  52. {{else}}
  53. <img class="alt-usage-icon" src="systems/pf2e/icons/mdi/sword.svg" data-tooltip="{{localize "PF2E.Item.Weapon.MeleeUsage.Label"}}" />
  54. {{/if}}
  55. {{#> attackDamage usage isAltUsage=true}}{{/attackDamage}}
  56. </div>
  57. {{/each}}
  58. {{/if}}
  59. {{#if (and action.ammunition (or action.ready ../actor.flags.pf2e.showUnreadyStrikes))}}
  60. <div class="ammo auxiliary-actions">
  61. <select class="linked"
  62. data-action="link-ammo"
  63. {{#if action.ammunition.selected}} data-compatible="{{action.ammunition.selected.compatible}}"{{/if}}>
  64. {{#select action.ammunition.selected.id}}
  65. <option value="">{{localize "PF2E.NoAmmoLabel"}}</option>
  66. {{#each action.ammunition.compatible as |ammo|}}
  67. <option value="{{ammo.id}}" data-compatible="true">{{ammo.name}} ({{ammo.quantity}})</option>
  68. {{/each}}
  69. {{/select}}
  70. </select>
  71. <span class="magazine" data-item-id="{{action.item.id}}">
  72. {{#if (gt action.item.ammo.uses.max 1)}}
  73. <span class="remaining"><i class="icon"></i> {{action.item.ammo.uses.value}}</span>
  74. {{/if}}
  75. </span>
  76. </div>
  77. {{/if}}
  78. <div class="auxiliary-actions{{#if action.ready}} weapon-drawn{{/if}}">
  79. {{#each action.auxiliaryActions as |aux aid|}}
  80. <button class="use-action" type="button" data-action="auxiliary-action" data-auxiliary-action-index="{{aid}}">
  81. <span>{{aux.label}}</span>
  82. <span class="action-glyph">{{aux.glyph}}</span>
  83. {{#if aux.options}}
  84. <select class="modular" data-action="auxiliary-action" data-auxiliary-action-index="{{aid}}">
  85. {{#each aux.options as |option|}}
  86. <option value="{{option.value}}"{{#if option.selected}} selected{{/if}}>
  87. {{option.label}} {{#if option.selected}}✔️{{/if}}
  88. </option>
  89. {{/each}}
  90. </select>
  91. {{/if}}
  92. </button>
  93. {{/each}}
  94. </div>
  95. <div class="item-summary">
  96. <div class="item-description">
  97. <p>{{{localize action.description}}}</p>
  98. <hr />
  99. <dl>
  100. <dt>{{{localize "PF2E.CritSuccess"}}}</dt>
  101. <dd>{{{localize action.criticalSuccess}}}</dd>
  102. <dt>{{{localize "PF2E.Success"}}}</dt>
  103. <dd>{{{localize action.success}}}</dd>
  104. </dl>
  105. </div>
  106. <div class="item-properties tags">
  107. {{#each action.traits as |trait|}}
  108. <span class="tag {{trait.cssClass}}"{{#if trait.description}} data-description="{{trait.description}}"{{/if}}>{{trait.label}}</span>
  109. {{/each}}
  110. {{#each action.weaponTraits as |trait|}}
  111. <span class="tag tag_alt {{trait.cssClass}}"{{#if trait.description}} data-description="{{trait.description}}"{{/if}}>{{trait.label}}</span>
  112. {{/each}}
  113. {{#if action.item.system.reload.label}}
  114. <span class="tag tag_secondary">{{action.item.system.reload.label}}</span>
  115. {{/if}}
  116. {{#if action.item.system.maxRange}}
  117. <span class="tag tag_secondary">{{localize (concat "PF2E.TraitRange" action.item.system.maxRange)}}</span>
  118. {{else if action.item.system.range}}
  119. <span class="tag tag_secondary">{{localize (concat "PF2E.TraitRangeIncrement" action.item.system.range)}}</span>
  120. {{/if}}
  121. </div>
  122. </div>
  123. </li>
  124. {{/each}}
  125. </ol>
  126. {{#each actions.encounter as |section sid|}}
  127. <h3 class="header">
  128. {{section.label}}
  129. {{#if @root.options.editable}}
  130. <div class="controls">
  131. <button type="button" class="item-control item-create" data-type="action" data-action-type="{{sid}}">
  132. <i class="fa-solid fa-fw fa-plus"></i>{{localize "PF2E.CreateActionTitle"}}
  133. </button>
  134. <button type="button" class="item-control action-browse" data-type="action" data-action-type="{{sid}}">
  135. <i class="fa-solid fa-fw fa-search"></i>{{localize "PF2E.BrowseLabel"}}
  136. </button>
  137. </div>
  138. {{/if}}
  139. </h3>
  140. <ol class="actions-list item-list directory-list">
  141. {{#each section.actions as |action|}}
  142. {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}}
  143. {{/each}}
  144. </ol>
  145. {{/each}}
  146. </div>
  147. <div class="actions-panel tab" data-tab="exploration" data-group="actions-tabs">
  148. {{!# Active exploration activities are only shown if one exists}}
  149. {{#if actions.exploration.active}}
  150. <h3 class="header">
  151. {{localize "PF2E.Actor.Character.ActiveHeader"}}
  152. {{#if @root.options.editable}}
  153. <div class="controls">
  154. <button type="button" class="item-control" data-action="clear-exploration">
  155. <i class="fa-solid fa-fw fa-times"></i>{{localize "PF2E.Actor.Character.Clear"}}
  156. </button>
  157. </div>
  158. {{/if}}
  159. </h3>
  160. <ol class="actions-list item-list directory-list">
  161. {{#each actions.exploration.active as |action|}}
  162. {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}}
  163. {{/each}}
  164. </ol>
  165. {{/if}}
  166. <h3 class="header">
  167. {{localize "PF2E.ActionsActionsHeader"}}
  168. {{#if @root.options.editable}}
  169. <div class="controls">
  170. <button type="button" class="item-control item-create" data-type="action" data-action-type="free" data-traits="exploration">
  171. <i class="fa-solid fa-fw fa-plus"></i>{{localize "PF2E.CreateActionTitle"}}
  172. </button>
  173. <button type="button" class="item-control action-browse" data-type="action" data-action-trait="exploration">
  174. <i class="fa-solid fa-fw fa-search"></i>{{localize "PF2E.BrowseLabel"}}
  175. </button>
  176. </div>
  177. {{/if}}
  178. </h3>
  179. <ol class="actions-list item-list directory-list">
  180. {{#each actions.exploration.other as |action|}}
  181. {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}}
  182. {{/each}}
  183. </ol>
  184. </div>
  185. <div class="actions-panel tab" data-tab="downtime" data-group="actions-tabs">
  186. <h3 class="header">
  187. {{localize "PF2E.ActionsActionsHeader"}}
  188. {{#if @root.options.editable}}
  189. <div class="controls">
  190. <button type="button" class="item-control item-create" data-type="action" data-action-type="free" data-traits="downtime">
  191. <i class="fa-solid fa-fw fa-plus"></i>{{localize "PF2E.CreateActionTitle"}}
  192. </button>
  193. <button type="button" class="item-control action-browse" data-type="action" data-action-trait="downtime">
  194. <i class="fa-solid fa-fw fa-search"></i>{{localize "PF2E.BrowseLabel"}}
  195. </button>
  196. </div>
  197. {{/if}}
  198. </h3>
  199. <ol class="actions-list item-list directory-list">
  200. {{#each actions.downtime as |action aid|}}
  201. {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}}
  202. {{/each}}
  203. </ol>
  204. </div>
  205. </section>
  206. </div>
  207. </div>
  208. </div>
  209. {{#*inline "attackDamage"}}
  210. <div class="button-group tags">
  211. {{#each variants as |variant index|}}
  212. <button type="button" class="tag tag_secondary variant-strike" data-action="strike-attack" data-variant-index="{{index}}"
  213. {{#if ../isAltUsage}} data-alt-usage="{{#if ../item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  214. {{#if (eq ../quantity 0)}} disabled="disabled" title="{{localize "PF2E.ErrorMessage.WeaponQuantityZero"}}"{{/if}}
  215. >
  216. {{#if (eq index 0)}}
  217. <span class="name">{{localize "PF2E.WeaponStrikeLabel"}}</span>
  218. <span class="action-glyph">{{../glyph}}</span>
  219. {{/if}}
  220. {{variant.label}}
  221. </button>
  222. {{/each}}
  223. {{#if item.dealsDamage}}
  224. <button type="button" class="tag damage" data-action="strike-damage"
  225. {{#if isAltUsage}}data-alt-usage="{{#if item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  226. >{{localize "PF2E.DamageLabel"}}</button>
  227. <button type="button" class="tag damage" data-action="strike-critical"
  228. {{#if isAltUsage}}data-alt-usage="{{#if item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  229. >{{localize "PF2E.CriticalDamageLabel"}}</button>
  230. {{#if (and versatileOptions (not (eq item.altUsageType "thrown")))}}
  231. <div class="versatile-options">
  232. {{#each versatileOptions as |option|}}
  233. <button
  234. type="button"
  235. class="damage color {{option.value}}{{#if option.selected}} selected{{/if}}"
  236. data-tooltip="{{localize option.label}}"
  237. {{#if ../isAltUsage}} data-alt-usage="{{#if ../item.isThrown}}thrown{{else}}melee{{/if}}"{{/if}}
  238. value="{{option.value}}"
  239. data-action="toggle-versatile"
  240. {{disabled option.selected}}
  241. >
  242. <i class="fa-solid fa-{{option.glyph}} fa-fw icon"></i>
  243. </button>
  244. {{/each}}
  245. </div>
  246. {{/if}}
  247. {{/if}}
  248. </div>
  249. {{/inline}}