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.

184 lines
8.4 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. <div class="form-list" 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-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 system.time}}
  38. <div class="form-group">
  39. <label>
  40. <a data-action="overlay-remove-property" data-property="time"><i class="fa-solid fa-times"></i></a>
  41. {{localize "PF2E.SpellTimeLabel"}}
  42. </label>
  43. <div>
  44. <input type="text" name="{{dataPath}}.time.value" value="{{system.time.value}}" />
  45. </div>
  46. </div>
  47. {{/if}}
  48. {{#if system.components}}
  49. <div class="form-group">
  50. <label>
  51. <a data-action="overlay-remove-property" data-property="components"><i class="fa-solid fa-times"></i></a>
  52. {{localize "PF2E.SpellComponentsLabel"}}
  53. </label>
  54. <div class="form-fields spell-components">
  55. <label>
  56. <input type="checkbox" name="{{dataPath}}.components.focus" {{checked system.components.focus}} />
  57. <span>{{localize "PF2E.SpellComponentShortF"}}</span>
  58. </label>
  59. <label>
  60. <input type="checkbox" name="{{dataPath}}.components.material" {{checked system.components.material}} />
  61. <span>{{localize "PF2E.SpellComponentShortM"}}</span>
  62. </label>
  63. <label>
  64. <input type="checkbox" name="{{dataPath}}.components.somatic" {{checked system.components.somatic}} />
  65. <span>{{localize "PF2E.SpellComponentShortS"}}</span>
  66. </label>
  67. <label>
  68. <input type="checkbox" name="{{dataPath}}.components.verbal" {{checked system.components.verbal}} />
  69. <span>{{localize "PF2E.SpellComponentShortV"}}</span>
  70. </label>
  71. </div>
  72. </div>
  73. {{/if}}
  74. {{#if system.target}}
  75. <div class="form-group">
  76. <label>
  77. <a data-action="overlay-remove-property" data-property="target"><i class="fa-solid fa-times"></i></a>
  78. {{localize "PF2E.SpellTargetLabel"}}
  79. </label>
  80. <div>
  81. <input type="text" name="{{dataPath}}.target.value" value="{{system.target.value}}" />
  82. </div>
  83. </div>
  84. {{/if}}
  85. {{#if system.area}}
  86. <div class="form-group">
  87. <label>
  88. <a data-action="overlay-remove-property" data-property="area"><i class="fa-solid fa-times"></i></a>
  89. {{localize "PF2E.AreaLabel"}}
  90. </label>
  91. <div class="details-container-two-columns">
  92. <select name="{{dataPath}}.area.value">
  93. <option value=""></option>
  94. {{#select system.area.value}}
  95. {{#each @root.areaSizes as |label key|}}
  96. <option value="{{key}}">{{localize label}}</option>
  97. {{/each}}
  98. {{/select}}
  99. </select>
  100. <select name="{{dataPath}}.area.type">
  101. <option value=""></option>
  102. {{#select system.area.type}}
  103. {{#each @root.areaTypes as |label type|}}
  104. <option value="{{type}}">{{localize label}}</option>
  105. {{/each}}
  106. {{/select}}
  107. </select>
  108. </div>
  109. </div>
  110. {{/if}}
  111. {{#if system.range}}
  112. <div class="form-group">
  113. <label>
  114. <a data-action="overlay-remove-property" data-property="range"><i class="fa-solid fa-times"></i></a>
  115. {{localize "PF2E.SpellRangeLabel"}}
  116. </label>
  117. <div>
  118. <input type="text" name="{{dataPath}}.range.value" value="{{system.range.value}}" />
  119. </div>
  120. </div>
  121. {{/if}}
  122. {{#if system.damage}}
  123. <div class="damage-formulas">
  124. <h3>
  125. <a data-action="overlay-remove-property" data-property="damage"><i class="fa-solid fa-times"></i></a>
  126. {{localize "PF2E.FormulaPlaceholder"}}
  127. <div class="item-controls">
  128. <i class="fa-solid fa-plus" data-action="damage-create"></i>
  129. </div>
  130. </h3>
  131. {{#each system.damage.value as |damage id|}}
  132. <div class="formula-section">
  133. <div class="form-fields">
  134. <input type="text" name="{{../dataPath}}.damage.value.{{id}}.value" value="{{damage.value}}" placeholder="{{localize "PF2E.FormulaPlaceholder"}}" />
  135. <label>
  136. <span>&nbsp;{{localize "PF2E.SpellAbilityModLabel"}}</span>
  137. <input type="checkbox" name="{{../dataPath}}.damage.value.{{id}}.applyMod" {{checked damage.applyMod}} />
  138. </label>
  139. <select name="{{../dataPath}}.damage.value.{{id}}.type.subtype">
  140. {{#select damage.type.subtype}}
  141. <option></option>
  142. {{#each @root.damageSubtypes as |name type|}}
  143. <option value="{{type}}">{{localize name}}</option>
  144. {{/each}}
  145. {{/select}}
  146. </select>
  147. <select name="{{../dataPath}}.damage.value.{{id}}.type.value">
  148. {{#select damage.type.value}}
  149. <option value=""></option>
  150. {{#each @root.damageTypes as |name type|}}
  151. <option value="{{type}}">{{localize name}}</option>
  152. {{/each}}
  153. {{/select}}
  154. </select>
  155. <div class="item-controls">
  156. <a class="tag-selector"
  157. data-tag-selector="basic"
  158. data-title="PF2E.DamageCategoriesLabel"
  159. data-config-types="damageCategories"
  160. data-property="{{../dataPath}}.damage.value.{{id}}.type.categories"
  161. ><i class="fa-solid fa-edit"></i></a>
  162. <a data-action="damage-delete" data-id="{{id}}"><i class="fa-solid fa-trash"></i></a>
  163. </div>
  164. </div>
  165. {{#if damage.type.categories}}
  166. <div class="traits-list">
  167. {{#each damage.type.categories}}
  168. <div class="tag-legacy">{{localize (lookup @root.damageCategories this)}}</div>
  169. {{/each}}
  170. </div>
  171. {{/if}}
  172. </div>
  173. {{/each}}
  174. </div>
  175. {{/if}}
  176. </div>