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.

185 lines
11 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. <form class="{{cssClass}}{{#if editing}} editing{{/if}}" autocomplete="off">
  2. {{> "systems/pf2e/templates/actors/hazard/partials/header.hbs"}}
  3. <div class="container">
  4. {{> "systems/pf2e/templates/actors/hazard/partials/sidebar.hbs"}}
  5. <!-- BODY -->
  6. <section class="content">
  7. {{#if (or hasStealth editing)}}
  8. <div class="section-container">
  9. <div class="section-header">
  10. <h4>
  11. {{localize "PF2E.Check.DC.Specific.stealth"}}
  12. <input type="text" value="{{stealthDC}}" data-value="{{stealthDC}}" data-property="system.attributes.stealth.value" data-dtype="Number" placeholder="N/A" />
  13. </h4>
  14. <div class="controls">
  15. {{#if editing}}
  16. <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
  17. {{/if}}
  18. </div>
  19. </div>
  20. <div class="section-body hazard-editor">
  21. {{editor enrichedContent.stealthDetails target="system.attributes.stealth.details" button=true owner=owner editable=editable}}
  22. </div>
  23. </div>
  24. {{/if}}
  25. {{#if (or hasDescription editing)}}
  26. <div class="section-container">
  27. <div class="section-header">
  28. <h4>{{localize "PF2E.HazardDescriptionLabel"}}</h4>
  29. <div class="controls">
  30. {{#if editing}}
  31. <a data-action="edit-section"><i class="fas fa-edit"></i></a>
  32. {{/if}}
  33. </div>
  34. </div>
  35. <div class="section-body hazard-editor">
  36. {{editor enrichedContent.description target="system.details.description" button=true owner=owner editable=editable}}
  37. </div>
  38. </div>
  39. {{/if}}
  40. {{#if (or hasDisable editing)}}
  41. <div class="section-container">
  42. <div class="section-header">
  43. <h4>{{localize "PF2E.HazardDisableLabel"}}</h4>
  44. <div class="controls">
  45. {{#if editing}}
  46. <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
  47. {{/if}}
  48. </div>
  49. </div>
  50. <div class="section-body hazard-editor">
  51. {{editor enrichedContent.disable target="system.details.disable" button=true owner=owner editable=editable}}
  52. </div>
  53. </div>
  54. {{/if}}
  55. {{#if (or hasRoutineDetails editing)}}
  56. <div class="section-container">
  57. <div class="section-header">
  58. <h4>{{localize "PF2E.HazardRoutineLabel"}}</h4>
  59. <div class="controls">
  60. {{#if editing}}
  61. <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
  62. {{/if}}
  63. </div>
  64. </div>
  65. <div class="section-body hazard-editor">
  66. {{editor enrichedContent.routine target="system.details.routine" button=true owner=owner editable=editable}}
  67. </div>
  68. </div>
  69. {{/if}}
  70. {{#if (or hasResetDetails editing)}}
  71. <div class="section-container">
  72. <div class="section-header">
  73. <h4>{{localize "PF2E.HazardResetLabel"}}</h4>
  74. <div class="controls">
  75. {{#if editing}}
  76. <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
  77. {{/if}}
  78. </div>
  79. </div>
  80. <div class="section-body hazard-editor">
  81. {{editor enrichedContent.reset target="system.details.reset" button=true owner=owner editable=editable}}
  82. </div>
  83. </div>
  84. {{/if}}
  85. <div class="section-container">
  86. <div class="section-header">
  87. <h4>{{localize "PF2E.ActionActionsLabel"}}</h4>
  88. <div class="controls">
  89. {{#if editing}}
  90. <a class="item-create" title="{{localize "PF2E.CreateActionTitle"}}" data-type="action" data-action-type="action"><i class="fa-solid fa-fw fa-plus"></i> {{localize "TYPES.Item.action"}}</a>
  91. <a class="attack-add item-create" data-type="melee" data-action-type="melee"><i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.NPCAttackMelee"}}</a>
  92. <a class="attack-add item-create" data-type="melee" data-action-type="ranged"><i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.NPCAttackRanged"}}</a>
  93. {{/if}}
  94. </div>
  95. </div>
  96. <div class="section-body">
  97. {{#each actions as |section sid|}}
  98. {{#if section}}
  99. <ol class="actions-list attacks-list item-list">
  100. <!-- List Actions -->
  101. {{#each section as |action|}}
  102. <li class="item action flexrow" data-item-id="{{action.id}}">
  103. <h4 class="item-name">
  104. <a data-action="toggle-summary">{{action.name}} {{{actionGlyph action.actionCost}}}</a>
  105. </h4>
  106. <div class="controls">
  107. <a class="item-chat chat" title="{{localize "PF2E.NPC.SendToChat"}}"><i class="fa-solid fa-fw fa-comment-alt"></i></a>
  108. {{#if @root.editing}}
  109. <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
  110. <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fa-solid fa-fw fa-trash"></i></a>
  111. {{/if}}
  112. </div>
  113. </li>
  114. {{/each}}
  115. </ol>
  116. {{/if}}
  117. {{/each}}
  118. {{#if actor.system.actions}}
  119. <!-- List Attacks -->
  120. <ol class="actions-list attacks-list strikes-list item-list">
  121. {{#each actor.system.actions as |action index|}}
  122. <li class="item attack flexrow" data-action-index="{{index}}" data-strike="" data-item-id="{{action.item.id}}">
  123. <h4 class="attack-name tags">
  124. <span>
  125. <strong>{{localize action.attackRollType}}</strong>
  126. <span class="action-glyph">{{{actionGlyph 1}}}</span>
  127. {{action.label}}
  128. </span>
  129. {{#each action.traits as |trait|}}
  130. <div class="tag tag_transparent" title="{{localize trait.description}}">{{localize trait.label}}</div>
  131. {{/each}}
  132. {{#each action.additionalEffects as |effect|}}
  133. <div class="tag tag_transparent" data-tag="{{effect.tag}}">{{localize effect.label}}</div>
  134. {{/each}}
  135. </h4>
  136. <div class="controls">
  137. {{#if @root.editing}}
  138. <a class="item-edit edit" title="{{localize "PF2E.NPC.Edit"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
  139. <a class="item-delete delete" title="{{localize "PF2E.NPC.Remove"}}"><i class="fa-solid fa-fw fa-trash"></i></a>
  140. {{/if}}
  141. </div>
  142. <div class="button-group">
  143. <div class="attacks sub-section">
  144. {{#each action.variants as |variant vi|}}
  145. <button type="button" class="btn attack-button" {{#if (eq vi 0)}}title="{{action.breakdown}}"{{/if}} data-action="strike-attack" data-variant-index="{{vi}}">{{variant.label}}</button>
  146. {{/each}}
  147. </div>
  148. {{#if action.item.dealsDamage}}
  149. <div class="damage sub-section">
  150. <button type="button" class="damage-button" data-action="strike-damage">{{action.damageFormula}}</button>
  151. <button type="button" class="critical-button" data-action="strike-critical">{{localize "PF2E.CriticalDamageLabel"}}</button>
  152. </div>
  153. {{/if}}
  154. </div>
  155. <div class="attack-detail sub-section expandable expanded">
  156. <div class="attack-description">
  157. {{{action.description}}}
  158. </div>
  159. </div>
  160. </li>
  161. {{/each}}
  162. </ol>
  163. {{/if}}
  164. </div>
  165. </div>
  166. <div class="section-container publication">
  167. <div class="section-header">
  168. <h4>{{localize "PF2E.Publication.Label"}}</h4>
  169. </div>
  170. <div class="section-body">
  171. {{> "systems/pf2e/templates/partials/publication-data.hbs" path="system.details.publication" data=data.details.publication}}
  172. </div>
  173. </div>
  174. </section>
  175. </div>
  176. </form>