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.

194 lines
9.0 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. <fieldset class="overlay" data-overlay-type="{{type}}" {{#if level}}data-level="{{level}}"{{/if}} {{#if id}}data-overlay-id="{{id}}"{{/if}}>
  2. {{#if (eq type "heighten")}}
  3. <h3 class="form-group">
  4. <label>{{localize "PF2E.SpellScalingOverlay.Label"}}</label>
  5. <div class="form-fields">
  6. <select data-action="change-heighten-level">
  7. {{#select level}}
  8. {{#each heightenLevels as |key|}}
  9. <option value="{{key}}">{{localize "PF2E.SpellScalingOverlay.Selection" level=(ordinal key)}}</option>
  10. {{/each}}
  11. {{/select}}
  12. </select>
  13. <div class="item-controls">
  14. <a data-action="overlay-delete" data-tooltip="PF2E.DeleteItemTitle"><i class="fa-solid fa-trash"></i></a>
  15. </div>
  16. </div>
  17. </h3>
  18. {{else}}
  19. <div class="form-group">
  20. <label>{{localize "PF2E.Item.NameLabel"}}</label>
  21. <div class="form-fields">
  22. <input type="text" name="{{base}}.name" value="{{overlay.name}}" />
  23. <div class="item-controls">
  24. <a data-action="overlay-delete" data-tooltip="PF2E.DeleteItemTitle"><i class="fa-solid fa-trash"></i></a>
  25. </div>
  26. </div>
  27. </div>
  28. {{/if}}
  29. <div class="toggle-button-list">
  30. {{#each missing}}
  31. <button type="button" data-action="overlay-add-property" data-property="{{key}}">
  32. <i class="fa-solid fa-plus"></i>
  33. {{localize label}}
  34. </button>
  35. {{/each}}
  36. </div>
  37. {{#if (includes system "traits")}}
  38. <div class="traits">
  39. <a data-action="overlay-remove-property" data-property="traits"><i class="fa-solid fa-times"></i></a>
  40. <input
  41. class="paizo-style tags spell-traits"
  42. name="{{dataPath}}.traits.value"
  43. value="{{json traits}}"
  44. data-dtype="JSON"
  45. {{#if (eq system.traits.value.length 0)}}placeholder="{{localize "PF2E.Traits"}}"{{/if}} />
  46. </div>
  47. {{/if}}
  48. {{#if (includes system "time")}}
  49. <div class="form-group">
  50. <label class="short">
  51. <a data-action="overlay-remove-property" data-property="time"><i class="fa-solid fa-times"></i></a>
  52. {{localize "PF2E.SpellTimeLabel"}}
  53. </label>
  54. <div>
  55. <input type="text" name="{{dataPath}}.time.value" value="{{system.time.value}}" />
  56. </div>
  57. </div>
  58. {{/if}}
  59. {{#if (includes system "components")}}
  60. <div class="form-group">
  61. <label class="short">
  62. <a data-action="overlay-remove-property" data-property="components"><i class="fa-solid fa-times"></i></a>
  63. {{localize "PF2E.SpellComponentsLabel"}}
  64. </label>
  65. <div class="form-fields spell-components">
  66. <label>
  67. <input type="checkbox" name="{{dataPath}}.components.focus" {{checked system.components.focus}} />
  68. <span>{{localize "PF2E.SpellComponentShortF"}}</span>
  69. </label>
  70. <label>
  71. <input type="checkbox" name="{{dataPath}}.components.material" {{checked system.components.material}} />
  72. <span>{{localize "PF2E.SpellComponentShortM"}}</span>
  73. </label>
  74. <label>
  75. <input type="checkbox" name="{{dataPath}}.components.somatic" {{checked system.components.somatic}} />
  76. <span>{{localize "PF2E.SpellComponentShortS"}}</span>
  77. </label>
  78. <label>
  79. <input type="checkbox" name="{{dataPath}}.components.verbal" {{checked system.components.verbal}} />
  80. <span>{{localize "PF2E.SpellComponentShortV"}}</span>
  81. </label>
  82. </div>
  83. </div>
  84. {{/if}}
  85. {{#if (includes system "target")}}
  86. <div class="form-group">
  87. <label class="short">
  88. <a data-action="overlay-remove-property" data-property="target"><i class="fa-solid fa-times"></i></a>
  89. {{localize "PF2E.SpellTargetLabel"}}
  90. </label>
  91. <div>
  92. <input type="text" name="{{dataPath}}.target.value" value="{{system.target.value}}" />
  93. </div>
  94. </div>
  95. {{/if}}
  96. {{#if (includes system "area")}}
  97. <div class="form-group">
  98. <label class="short">
  99. <a data-action="overlay-remove-property" data-property="area"><i class="fa-solid fa-times"></i></a>
  100. {{localize "PF2E.AreaLabel"}}
  101. </label>
  102. <div class="details-container-two-columns">
  103. <select name="{{dataPath}}.area.value">
  104. {{#select system.area.value}}
  105. {{#each @root.areaSizes as |label key|}}
  106. <option value="{{key}}">{{localize label}}</option>
  107. {{/each}}
  108. {{/select}}
  109. </select>
  110. <select name="{{dataPath}}.area.type">
  111. {{#select system.area.type}}
  112. {{#each @root.areaTypes as |label type|}}
  113. <option value="{{type}}">{{localize label}}</option>
  114. {{/each}}
  115. {{/select}}
  116. </select>
  117. </div>
  118. </div>
  119. {{/if}}
  120. {{#if (includes system "range")}}
  121. <div class="form-group">
  122. <label class="short">
  123. <a data-action="overlay-remove-property" data-property="range"><i class="fa-solid fa-times"></i></a>
  124. {{localize "PF2E.SpellRangeLabel"}}
  125. </label>
  126. <div>
  127. <input type="text" name="{{dataPath}}.range.value" value="{{system.range.value}}" />
  128. </div>
  129. </div>
  130. {{/if}}
  131. {{#if (includes system "damage")}}
  132. <div class="damage-formulas">
  133. <h3>
  134. <a data-action="overlay-remove-property" data-property="damage"><i class="fa-solid fa-times"></i></a>
  135. {{localize "PF2E.FormulaPlaceholder"}}
  136. <div class="item-controls">
  137. <i class="fa-solid fa-plus" data-action="damage-create"></i>
  138. </div>
  139. </h3>
  140. {{#each system.damage.value as |damage id|}}
  141. <div class="formula-section form-group">
  142. <div class="form-fields">
  143. <input type="text" name="{{../dataPath}}.damage.value.{{id}}.value" value="{{damage.value}}" placeholder="{{localize "PF2E.FormulaPlaceholder"}}" />
  144. <label>
  145. <span>&nbsp;{{localize "PF2E.SpellAbilityModLabel"}}</span>
  146. <input type="checkbox" name="{{../dataPath}}.damage.value.{{id}}.applyMod" {{checked damage.applyMod}} />
  147. </label>
  148. <select name="{{../dataPath}}.damage.value.{{id}}.type.subtype">
  149. {{#select damage.type.subtype}}
  150. <option></option>
  151. {{#each @root.damageSubtypes as |name type|}}
  152. <option value="{{type}}">{{localize name}}</option>
  153. {{/each}}
  154. {{/select}}
  155. </select>
  156. <select name="{{../dataPath}}.damage.value.{{id}}.type.value">
  157. {{#select damage.type.value}}
  158. <option value=""></option>
  159. {{#each @root.damageTypes as |name type|}}
  160. <option value="{{type}}">{{localize name}}</option>
  161. {{/each}}
  162. {{/select}}
  163. </select>
  164. <div class="item-controls">
  165. <a class="tag-selector"
  166. data-tag-selector="basic"
  167. data-title="PF2E.DamageCategoriesLabel"
  168. data-config-types="damageCategories"
  169. data-property="{{../dataPath}}.damage.value.{{id}}.type.categories"
  170. ><i class="fa-solid fa-edit"></i></a>
  171. <a data-action="damage-delete" data-id="{{id}}"><i class="fa-solid fa-trash"></i></a>
  172. </div>
  173. </div>
  174. {{#if damage.type.categories}}
  175. <div class="traits-list">
  176. {{#each damage.type.categories}}
  177. <div class="tag-legacy">{{localize (lookup @root.damageCategories this)}}</div>
  178. {{/each}}
  179. </div>
  180. {{/if}}
  181. </div>
  182. {{/each}}
  183. </div>
  184. {{/if}}
  185. </fieldset>