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.

167 lines
7.5 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="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.Item.Spell.Rank.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="delete-overlay" data-tooltip="Delete"><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="delete-overlay" data-tooltip="Delete"><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="add-overlay-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="delete-overlay-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="delete-overlay-property" data-property="time"><i class="fa-solid fa-times"></i></a>
  52. {{localize "PF2E.Item.Spell.Cast"}}
  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 "target")}}
  60. <div class="form-group">
  61. <label class="short">
  62. <a data-action="delete-overlay-property" data-property="target"><i class="fa-solid fa-times"></i></a>
  63. {{localize "PF2E.SpellTargetLabel"}}
  64. </label>
  65. <div>
  66. <input type="text" name="{{dataPath}}.target.value" value="{{system.target.value}}" />
  67. </div>
  68. </div>
  69. {{/if}}
  70. {{#if (includes system "area")}}
  71. <div class="form-group">
  72. <label class="short">
  73. <a data-action="delete-overlay-property" data-property="area"><i class="fa-solid fa-times"></i></a>
  74. {{localize "PF2E.AreaLabel"}}
  75. </label>
  76. <div class="details-container-two-columns">
  77. <select name="{{dataPath}}.area.value">
  78. {{#select system.area.value}}
  79. {{#each @root.areaSizes as |label key|}}
  80. <option value="{{key}}">{{localize label}}</option>
  81. {{/each}}
  82. {{/select}}
  83. </select>
  84. <select name="{{dataPath}}.area.type">
  85. {{#select system.area.type}}
  86. {{#each @root.areaTypes as |label type|}}
  87. <option value="{{type}}">{{localize label}}</option>
  88. {{/each}}
  89. {{/select}}
  90. </select>
  91. </div>
  92. </div>
  93. {{/if}}
  94. {{#if (includes system "range")}}
  95. <div class="form-group">
  96. <label class="short">
  97. <a data-action="delete-overlay-property" data-property="range"><i class="fa-solid fa-times"></i></a>
  98. {{localize "PF2E.SpellRangeLabel"}}
  99. </label>
  100. <div>
  101. <input type="text" name="{{dataPath}}.range.value" value="{{system.range.value}}" />
  102. </div>
  103. </div>
  104. {{/if}}
  105. {{#if (includes system "damage")}}
  106. <div class="damage-formulas">
  107. <h3>
  108. <a data-action="delete-overlay-property" data-property="damage"><i class="fa-solid fa-times"></i></a>
  109. {{localize "PF2E.DamageLabel"}}
  110. <div class="item-controls">
  111. <a data-action="add-damage-partial"><i class="fa-solid fa-plus"></i></a>
  112. </div>
  113. </h3>
  114. {{#each system.damage as |damage id|}}
  115. <div class="formula-section form-group">
  116. <div class="form-fields">
  117. <input type="text" name="{{../dataPath}}.damage.{{id}}.formula" value="{{damage.formula}}" placeholder="{{localize "PF2E.Formula"}}" />
  118. <label class="apply-mod">
  119. {{localize "PF2E.SpellAbilityModLabel"}}
  120. <input type="checkbox" name="{{../dataPath}}.damage.{{id}}.applyMod" {{checked damage.applyMod}} />
  121. </label>
  122. <select name="{{../dataPath}}.damage.{{id}}.category">
  123. {{#select damage.category}}
  124. <option value=""></option>
  125. {{#each @root.damageSubtypes as |name type|}}
  126. <option value="{{type}}">{{localize name}}</option>
  127. {{/each}}
  128. {{/select}}
  129. </select>
  130. <select name="{{../dataPath}}.damage.{{id}}.type">
  131. {{#select damage.type}}
  132. <option value=""></option>
  133. {{#each @root.damageTypes as |name type|}}
  134. <option value="{{type}}">{{localize name}}</option>
  135. {{/each}}
  136. {{/select}}
  137. </select>
  138. <div class="item-controls">
  139. <a class="tag-selector"
  140. data-tag-selector="basic"
  141. data-title="PF2E.Item.MaterialEffects.Label"
  142. data-config-types="materialDamageEffects"
  143. data-property="{{../dataPath}}.damage.{{id}}.materials"
  144. ><i class="fa-solid fa-edit"></i></a>
  145. <a data-action="delete-damage-partial" data-id="{{id}}"><i class="fa-solid fa-trash"></i></a>
  146. </div>
  147. </div>
  148. {{#if damage.materials}}
  149. <div class="materials">
  150. {{#each damage.materials as |material|}}
  151. <div class="tag-legacy">{{localize (lookup @root.materials this)}}</div>
  152. {{/each}}
  153. </div>
  154. {{/if}}
  155. </div>
  156. {{/each}}
  157. </div>
  158. {{/if}}
  159. </div>