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.

237 lines
9.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. <fieldset class="basics">
  2. <div class="form-group">
  3. <label for="{{fieldIdPrefix}}category">{{localize "PF2E.Category"}}</label>
  4. <select id="{{fieldIdPrefix}}category" data-property="system.category">
  5. {{#select data.category}}
  6. {{#each categories as |name type|}}
  7. <option value="{{type}}">{{localize name}}</option>
  8. {{/each}}
  9. {{/select}}
  10. </select>
  11. </div>
  12. {{#unless item.isBarding}}
  13. <div class="form-group">
  14. <label for="{{fieldIdPrefix}}group">{{localize "PF2E.ArmorGroupLabel"}}</label>
  15. <select id="{{fieldIdPrefix}}group" data-property="system.group">
  16. {{#select item.group}}
  17. <option value=""></option>
  18. {{#each groups as |name type|}}
  19. <option value="{{type}}">{{localize name}}</option>
  20. {{/each}}
  21. {{/select}}
  22. </select>
  23. </div>
  24. <div class="form-group">
  25. <label for="{{fieldIdPrefix}}base">{{localize "PF2E.Item.Physical.Base"}}</label>
  26. <select id="{{fieldIdPrefix}}base" data-property="system.baseItem">
  27. {{#select item.baseType}}
  28. <option value=""></option>
  29. {{#each baseTypes as |name slug|}}
  30. <option value="{{slug}}">{{localize name}}</option>
  31. {{/each}}
  32. {{/select}}
  33. </select>
  34. </div>
  35. {{/unless}}
  36. <div class="form-group">
  37. <label for="{{fieldIdPrefix}}ac-bonus">{{localize "PF2E.ArmorArmorLabel"}}</label>
  38. <input
  39. type="number"
  40. id="{{fieldIdPrefix}}ac-bonus"
  41. value="{{item.system.acBonus}}"
  42. data-property="system.acBonus"
  43. {{#if (gt item.acBonus item._source.system.acBonus)}}
  44. class="adjusted-higher"
  45. {{else if (lt item.acBonus item._source.system.acBonus)}}
  46. class="adjusted-lower"
  47. {{/if}}
  48. />
  49. </div>
  50. <div class="form-group">
  51. <label>{{localize "PF2E.ArmorDexLabel"}}</label>
  52. <input
  53. type="number"
  54. value="{{data.dexCap}}"
  55. data-property="system.dexCap"
  56. {{#if (gt item.dexCap item._source.system.dexCap)}}
  57. class="adjusted-higher"
  58. {{else if (lt item.dexCap item._source.system.dexCap)}}
  59. class="adjusted-lower"
  60. {{/if}}
  61. />
  62. </div>
  63. <div class="form-group">
  64. <label>{{localize "PF2E.ArmorCheckLabel"}}</label>
  65. <input
  66. type="number"
  67. value="{{data.checkPenalty}}"
  68. data-property="system.checkPenalty"
  69. {{#if (gt item.checkPenalty item._source.system.checkPenalty)}}
  70. class="adjusted-higher"
  71. {{else if (lt item.checkPenalty item._source.system.checkPenalty)}}
  72. class="adjusted-lower"
  73. {{/if}}
  74. />
  75. </div>
  76. <div class="form-group">
  77. <label for="{{fieldIdPrefix}}speed-penalty">{{localize "PF2E.ArmorSpeedLabel"}}</label>
  78. <input
  79. type="number"
  80. id="{{fieldIdPrefix}}speed-penalty"
  81. value="{{data.speedPenalty}}"
  82. data-property="system.speedPenalty"
  83. {{#if (gt item.speedPenalty item._source.system.speedPenalty)}}
  84. class="adjusted-higher"
  85. {{else if (lt item.speedPenalty item._source.system.speedPenalty)}}
  86. class="adjusted-lower"
  87. {{/if}}
  88. />
  89. </div>
  90. <div class="form-group">
  91. <label>{{localize "PF2E.ArmorStrengthLabel"}}</label>
  92. <input
  93. type="number"
  94. value="{{data.strength}}"
  95. placeholder="—"
  96. data-property="system.strength"
  97. {{#if (gt item.strength item._source.system.strength)}}
  98. class="adjusted-lower"
  99. {{else if (lt item.strength item._source.system.strength)}}
  100. class="adjusted-higher"
  101. {{/if}}
  102. />
  103. </div>
  104. <div class="form-group">
  105. <label>{{localize "PF2E.HardnessLabel"}}</label>
  106. <input
  107. type="number"
  108. {{#if (gt item.hardness item._source.system.hardness)}}class="adjusted-higher"{{else if (lt item.hardness item._source.system.hardness)}}class="adjusted-lower"{{/if}}
  109. data-property="system.hardness" value="{{item.hardness}}"
  110. />
  111. </div>
  112. <div class="form-group">
  113. <label for="{{fieldIdPrefix}}hp">{{localize "PF2E.HitPointsHeader"}}</label>
  114. <div class="form-fields">
  115. <input id="{{fieldIdPrefix}}hp" type="number" name="system.hp.value" value="{{data.hp.value}}" />
  116. /
  117. <input type="number"
  118. {{#if (gt item.system.hp.max item._source.system.hp.max)}}
  119. class="adjusted-higher"
  120. {{else if (lt item.system.hp.max item._source.system.hp.max)}}
  121. class="adjusted-lower"
  122. {{/if}}
  123. data-property="system.hp.max"
  124. value="{{data.hp.max}}" />
  125. </div>
  126. </div>
  127. </fieldset>
  128. <fieldset>
  129. <legend>{{localize "PF2E.Item.Physical.MaterialRunes.Label"}}</legend>
  130. <div class="form-group">
  131. <label>{{localize "PF2E.PreciousMaterialLabel"}}</label>
  132. <select data-property="system.material" data-value-base="{{json item._source.system.material}}" data-dtype="JSON">
  133. {{#select preciousMaterials.value}}
  134. <option value="{&quot;type&quot;:null,&quot;grade&quot;:null}"></option>
  135. {{#each preciousMaterials.materials as |material|}}
  136. <optgroup label="{{material.label}}">
  137. {{#each material.grades as |grade|}}
  138. <option value="{{grade.value}}">
  139. {{localize "PF2E.Item.Weapon.MaterialAndRunes.MaterialOption" type=material.label grade=grade.label}}
  140. </option>
  141. {{/each}}
  142. </optgroup>
  143. {{/each}}
  144. {{/select}}
  145. </select>
  146. </div>
  147. {{#unless (or item.isBarding abpEnabled)}}
  148. {{#unless abpEnabled}}
  149. <div class="form-group">
  150. <label for="{{fieldIdPrefix}}rune-potency">{{localize "PF2E.PotencyRuneLabel"}}</label>
  151. <select name="system.runes.potency" id="{{fieldIdPrefix}}rune-potency" data-dtype="Number">
  152. {{#select data.runes.potency}}
  153. {{#each runeTypes.potency as |data number|}}
  154. <option value="{{number}}">{{localize (coalesce data.name "")}}</option>
  155. {{/each}}
  156. {{/select}}
  157. </select>
  158. </div>
  159. <div class="form-group">
  160. <label for="{{fieldIdPrefix}}rune-resilient">{{localize "PF2E.Item.Armor.Rune.Resilient.Label"}}</label>
  161. <select name="system.runes.resilient" id="{{fieldIdPrefix}}rune-resilient" data-dtype="Number">
  162. {{#select data.runes.resilient}}
  163. {{#each runeTypes.resilient as |data number|}}
  164. <option value="{{number}}">{{localize (coalesce data.name "")}}</option>
  165. {{/each}}
  166. {{/select}}
  167. </select>
  168. </div>
  169. {{/unless}}
  170. {{#each propertyRuneSlots as |slot index|}}
  171. <div class="form-group">
  172. <label
  173. for="{{../fieldIdPrefix}}runes-property-{{index}}"
  174. {{#if slot.disabled}}class="disabled"{{/if}}
  175. >
  176. {{localize (concat "PF2E.PropertyRuneLabel" (add index 1))}}
  177. </label>
  178. <select
  179. name="system.runes.property.{{index}}"
  180. id="{{../fieldIdPrefix}}runes-property-{{index}}"
  181. {{disabled slot.disabled}}
  182. {{#if slot.readOnly}}class="readonly"{{/if}}
  183. >
  184. {{#select slot.slug}}
  185. <option value=""></option>
  186. {{#each @root.runeTypes.property as |rune|}}
  187. <option value="{{rune.slug}}">{{localize rune.name}}</option>
  188. {{/each}}
  189. {{/select}}
  190. </select>
  191. </div>
  192. {{/each}}
  193. <div class="form-group">
  194. <label class="large">
  195. {{localize "PF2E.Item.Armor.Specific.Label"}}
  196. <i class="fa-solid fa-info-circle" data-tooltip="PF2E.Item.Armor.Specific.Hint"></i>
  197. </label>
  198. <input
  199. type="checkbox"
  200. name="system.specific"
  201. value="{{json specificMagicData}}"
  202. data-dtype="JSON"
  203. {{checked data.specific}}
  204. />
  205. </div>
  206. {{/unless}}
  207. </fieldset>
  208. <div class="form-group stacked">
  209. <label>
  210. {{localize "PF2E.Item.Physical.OtherTags.Label"}}
  211. <i class="fa-solid fa-info-circle" data-tooltip="PF2E.Item.Physical.OtherTags.Hint"></i>
  212. {{#if editable}}
  213. <a class="tag-selector" data-tag-selector="basic" data-config-types="otherArmorTags" data-title="PF2E.Item.Physical.OtherTags.Label" data-property="system.traits.otherTags"><i class="fa-solid fa-edit"></i></a>
  214. {{/if}}
  215. </label>
  216. <ul class="traits-list tags">
  217. {{#each otherTags as |tag|}}
  218. <li class="tag tag_alt">{{tag.label}}</li>
  219. {{/each}}
  220. </ul>
  221. </div>