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.

294 lines
12 KiB

1 year ago
  1. <ol class="form-list">
  2. <li class="form-group">
  3. <label class="short">{{localize "PF2E.SpellCategoryLabel"}}</label>
  4. <select name="system.category.value">
  5. {{#select data.category.value}}
  6. {{#each spellCategories as |label key|}}
  7. <option value="{{key}}">{{localize label}}</option>
  8. {{/each}}
  9. {{/select}}
  10. </select>
  11. </li>
  12. <li class="form-group">
  13. <label class="short">{{localize "PF2E.SpellSchoolLabel"}}</label>
  14. <select name="system.school.value">
  15. {{#select data.school.value}}
  16. {{#each magicSchools as |name school|}}
  17. <option value="{{school}}">{{localize name}}</option>
  18. {{/each}}
  19. {{/select}}
  20. </select>
  21. </li>
  22. <li class="form-group">
  23. <label class="short">{{localize "PF2E.SpellTraditionsLabel"}}</label>
  24. <input class="tags paizo-style" name="system.traditions.value" value="{{json data.traditions.value}}" data-dtype="JSON" />
  25. </li>
  26. {{#unless isRitual}}
  27. <li class="form-group">
  28. <label>{{localize "PF2E.TraitCantrip"}}</label>
  29. <input class="toggle-trait" type="checkbox" {{checked isCantrip}} data-trait="cantrip" />
  30. </li>
  31. {{/unless}}
  32. </ol>
  33. <ol class="form-list">
  34. <h3>{{localize "PF2E.CastLabel"}}</h3>
  35. <div class="form-group">
  36. <label class="short">{{localize "PF2E.SpellTimeLabel"}}</label>
  37. <input type="text" name="system.time.value" value="{{data.time.value}}" />
  38. </div>
  39. <div class="form-group">
  40. <label class="short">{{localize "PF2E.SpellComponentsLabel"}}</label>
  41. <div class="details-container-flex-row spell-components">
  42. <label>
  43. <input type="checkbox" name="system.components.focus" {{checked data.components.focus}} />
  44. <span>{{localize "PF2E.SpellComponentShortF"}}</span>
  45. </label>
  46. <label>
  47. <input type="checkbox" name="system.components.material" {{checked data.components.material}} />
  48. <span>{{localize "PF2E.SpellComponentShortM"}}</span>
  49. </label>
  50. <label>
  51. <input type="checkbox" name="system.components.somatic" {{checked data.components.somatic}} />
  52. <span>{{localize "PF2E.SpellComponentShortS"}}</span>
  53. </label>
  54. <label>
  55. <input type="checkbox" name="system.components.verbal" {{checked data.components.verbal}} />
  56. <span>{{localize "PF2E.SpellComponentShortV"}}</span>
  57. </label>
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="short">{{localize "PF2E.SpellRequirementsLabel"}}</label>
  62. <input type="text" name="system.materials.value" value="{{data.materials.value}}" />
  63. </div>
  64. <div class="form-group">
  65. <label class="short">{{localize "PF2E.SpellCostLabel"}}</label>
  66. <input type="text" name="system.cost.value" value="{{data.cost.value}}" />
  67. </div>
  68. </ol>
  69. {{#if isRitual}}
  70. <ol class="form-list">
  71. <h3>{{localize "PF2E.SpellRitualLabel"}}</h3>
  72. <div class="form-group">
  73. <label class="short">{{localize "PF2E.SpellPrimaryCheckLabel"}}</label>
  74. <input type="text" name="system.primarycheck.value" value="{{data.primarycheck.value}}" />
  75. </div>
  76. <div class="form-group">
  77. <label class="short">{{localize "PF2E.SpellSecondaryChecksLabel"}}</label>
  78. <input type="text" name="system.secondarycheck.value" value="{{data.secondarycheck.value}}" />
  79. </div>
  80. <div class="form-group">
  81. <label class="short">{{localize "PF2E.SpellSecondaryCasters"}}</label>
  82. <input type="text" name="system.secondarycasters.value" value="{{data.secondarycasters.value}}" />
  83. </div>
  84. </ol>
  85. {{/if}}
  86. <ol class="form-list">
  87. <h3>{{localize "PF2E.Usage"}}</h3>
  88. <div class="form-group">
  89. <label class="short">{{localize "PF2E.SpellRangeLabel"}}</label>
  90. <input type="text" name="system.range.value" value="{{data.range.value}}" />
  91. </div>
  92. <div class="form-group">
  93. <label class="short">{{localize "PF2E.SpellTargetLabel"}}</label>
  94. <input type="text" name="system.target.value" value="{{data.target.value}}" />
  95. </div>
  96. <div class="form-group">
  97. <label class="short">{{localize "PF2E.AreaLabel"}}</label>
  98. <div class="details-container-two-columns">
  99. <select name="system.area.value" data-dtype="Number">
  100. <option value="0"></option>
  101. {{#select data.area.value}}
  102. {{#each areaSizes as |label key|}}
  103. <option value="{{key}}">{{localize label}}</option>
  104. {{/each}}
  105. {{/select}}
  106. </select>
  107. <select name="system.area.type">
  108. <option value=""></option>
  109. {{#select data.area.type}}
  110. {{#each areaTypes as |label type|}}
  111. <option value="{{type}}">{{localize label}}</option>
  112. {{/each}}
  113. {{/select}}
  114. </select>
  115. </div>
  116. </div>
  117. <div class="form-group">
  118. <label class="short">{{localize "PF2E.SpellDurationLabel"}}</label>
  119. <input type="text" name="system.duration.value" value="{{data.duration.value}}" />
  120. </div>
  121. </ol>
  122. <ol class="form-list">
  123. <h3>{{localize "PF2E.DamageLabel"}}</h3>
  124. <div class="form-group">
  125. <label class="short">{{localize "PF2E.SpellTypeLabel"}}</label>
  126. <select name="system.spellType.value">
  127. {{#select data.spellType.value}}
  128. {{#each spellTypes as |name type|}}
  129. <option value="{{type}}">{{localize name}}</option>
  130. {{/each}}
  131. {{/select}}
  132. </select>
  133. </div>
  134. <div class="form-group">
  135. <label class="short">{{localize "PF2E.SpellSaveLabel"}}</label>
  136. <div class="details-container-two-columns">
  137. <select name="system.save.basic">
  138. {{#select data.save.basic}}
  139. <option value=""></option>
  140. <option value="basic">{{localize "PF2E.SpellBasicSaveOption"}}</option>
  141. {{/select}}
  142. </select>
  143. <select name="system.save.value">
  144. {{#select data.save.value}}
  145. <option value=""></option>
  146. {{#each saves as |ability a|}}
  147. <option value="{{a}}">{{localize ability}}</option>
  148. {{/each}}
  149. {{/select}}
  150. </select>
  151. </div>
  152. </div>
  153. <div class="damage-formulas">
  154. <h3>
  155. {{localize "PF2E.FormulaPlaceholder"}}
  156. <div class="item-controls">
  157. <i class="fas fa-fw fa-plus" data-action="damage-create"></i>
  158. </div>
  159. </h3>
  160. {{#each data.damage.value as |damage id|}}
  161. <div class="formula-section">
  162. <div class="details-container-flex-row">
  163. <input type="text" name="system.damage.value.{{id}}.value" value="{{damage.value}}" placeholder="{{localize "PF2E.FormulaPlaceholder"}}" />
  164. <label>
  165. <span>&nbsp;{{localize "PF2E.SpellAbilityModLabel"}}</span>
  166. <input type="checkbox" name="system.damage.value.{{id}}.applyMod" {{checked damage.applyMod}} />
  167. </label>
  168. <select name="system.damage.value.{{id}}.type.subtype">
  169. {{#select damage.type.subtype}}
  170. <option></option>
  171. {{#each @root.damageSubtypes as |name type|}}
  172. <option value="{{type}}">{{localize name}}</option>
  173. {{/each}}
  174. {{/select}}
  175. </select>
  176. <select name="system.damage.value.{{id}}.type.value">
  177. {{#select damage.type.value}}
  178. <option value=""></option>
  179. {{#each @root.damageTypes as |name type|}}
  180. <option value="{{type}}">{{localize name}}</option>
  181. {{/each}}
  182. {{/select}}
  183. </select>
  184. <div class="item-controls">
  185. <a class="tag-selector" data-tag-selector="basic" data-title="PF2E.DamageCategoriesLabel" data-config-types="materialDamageEffects" data-property="system.damage.value.{{id}}.type.categories"><i class="fas fa-fw fa-edit"></i></a>
  186. <a data-action="damage-delete" data-id="{{id}}"><i class="fas fa-fw fa-trash"></i></a>
  187. </div>
  188. </div>
  189. {{#if damage.type.categories}}
  190. <div class="traits-list">
  191. {{#each damage.type.categories}}
  192. <div class="tag-legacy">{{localize (lookup @root.damageCategories this)}}</div>
  193. {{/each}}
  194. </div>
  195. {{/if}}
  196. </div>
  197. {{/each}}
  198. </div>
  199. </ol>
  200. {{#unless data.heightening.type}}
  201. {{#if canHeighten}}
  202. <button data-action="heightening-interval-create"><i class="fas fa-fw fa-plus"></i> {{localize "PF2E.SpellScalingInterval.Add"}}</button>
  203. {{/if}}
  204. {{/unless}}
  205. {{#if (eq data.heightening.type "interval")}}
  206. <div class="form-list">
  207. <h3>
  208. {{localize "PF2E.SpellScalingInterval.Header"}}
  209. <div class="item-controls">
  210. <i class="fas fa-fw fa-trash" data-action="heightening-delete" data-idx="{{idx}}"></i>
  211. </div>
  212. </h3>
  213. <div class="form-group">
  214. <label class="short">{{localize "PF2E.SpellScalingInterval.Label"}}</label>
  215. <select name="system.heightening.interval" data-dtype="Number">
  216. {{#select data.heightening.interval}}
  217. {{#each @root.heightenIntervals as |key|}}
  218. <option value="{{key}}">{{localize "PF2E.SpellScalingInterval.Selection" interval=key}}</option>
  219. {{/each}}
  220. {{/select}}
  221. </select>
  222. </div>
  223. {{#each data.damage.value as |damage idx|}}
  224. <div class="form-group">
  225. <label class="short">{{localize (lookup @root.damageTypes damage.type.value)}}</label>
  226. <input type="text" name="system.heightening.damage.{{idx}}" value="{{lookup ../data.heightening.damage idx}}" />
  227. </div>
  228. {{/each}}
  229. </div>
  230. {{/if}}
  231. {{! Spell heightening for fixed levels}}
  232. {{#unless (eq data.heightening.type "interval")}}
  233. {{#each heightenOverlays}}
  234. {{> systems/pf2e/templates/items/spell-overlay.hbs this=this}}
  235. {{/each}}
  236. {{#if canHeighten}}
  237. <button data-action="heightening-fixed-create" data-overlay-type="heightening">
  238. <i class="fas fa-fw fa-plus"></i> {{localize "PF2E.SpellScalingOverlay.Add"}}
  239. </button>
  240. {{/if}}
  241. {{/unless}}
  242. <div class="form-group">
  243. <label>{{localize "PF2E.Counteract"}}</label>
  244. <input type="checkbox" name="system.hasCounteractCheck.value" {{checked data.hasCounteractCheck.value}} />
  245. </div>
  246. {{#if (not isVariant)}}
  247. <div class="form-list variants" data-can-drop="true">
  248. <h3>
  249. {{localize "PF2E.Item.Spell.Variants.LabelPlural"}}
  250. <div class="item-controls">
  251. <i class="fas fa-fw fa-plus" data-action="variant-create"></i>
  252. </div>
  253. </h3>
  254. {{#each variants as |variant|}}
  255. <div class="variant" data-variant-id="{{variant.id}}">
  256. <label>{{variant.name}}</label>
  257. <span class="activity-icon">{{variant.actions}}</span>
  258. <div class="item-controls">
  259. <a data-action="variant-edit" data-id="{{variant.id}}"><i class="fas fa-fw fa-edit"></i></a>
  260. <a data-action="variant-delete" data-id="{{variant.id}}"><i class="fas fa-fw fa-trash"></i></a>
  261. </div>
  262. </div>
  263. {{/each}}
  264. </div>
  265. {{/if}}