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.

166 lines
7.1 KiB

  1. <fieldset class="basics">
  2. <div class="form-group">
  3. <label for="{{fieldIdPrefix}}base">{{localize "PF2E.Item.Physical.Base"}}</label>
  4. <select id="{{fieldIdPrefix}}base" data-property="system.baseItem">
  5. {{#select data.baseItem}}
  6. <option value=""></option>
  7. {{#each baseTypes as |label slug|}}
  8. <option value="{{slug}}">{{label}}</option>
  9. {{/each}}
  10. {{/select}}
  11. </select>
  12. </div>
  13. <div class="form-group">
  14. <label for="{{fieldIdPrefix}}ac-bonus">{{localize "PF2E.ArmorArmorLabel"}}</label>
  15. <input
  16. type="number"
  17. id="{{fieldIdPrefix}}ac-bonus"
  18. value="{{item.system.acBonus}}"
  19. data-property="system.acBonus"
  20. {{#if (gt item.acBonus item._source.system.acBonus)}}
  21. class="adjusted-higher"
  22. {{else if (lt item.acBonus item._source.system.acBonus)}}
  23. class="adjusted-lower"
  24. {{/if}}
  25. />
  26. </div>
  27. <div class="form-group">
  28. <label for="{{fieldIdPrefix}}hp">{{localize "PF2E.HitPointsHeader"}}</label>
  29. <div class="form-fields">
  30. <input id="{{fieldIdPrefix}}hp" type="number" name="system.hp.value" value="{{data.hp.value}}" />
  31. /
  32. <input type="number"
  33. {{#if (gt item.system.hp.max item._source.system.hp.max)}}
  34. class="adjusted-higher"
  35. {{else if (lt item.system.hp.max item._source.system.hp.max)}}
  36. class="adjusted-lower"
  37. {{/if}}
  38. data-property="system.hp.max" value="{{data.hp.max}}" />
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label for="{{fieldIdPrefix}}hardness">{{localize "PF2E.HardnessLabel"}}</label>
  43. <input
  44. type="number"{{#if (gt item.hardness baseHardness)}} class="adjusted-higher"{{else if (lt item.hardness baseHardness)}} class="adjusted-lower"{{/if}}
  45. id="{{fieldIdPrefix}}hardness"
  46. data-property="system.hardness"
  47. value="{{item.hardness}}"
  48. />
  49. </div>
  50. <div class="form-group">
  51. <label for="{{fieldIdPrefix}}speed-penalty">{{localize "PF2E.ArmorSpeedLabel"}}</label>
  52. <input
  53. type="number"
  54. id="{{fieldIdPrefix}}speed-penalty"
  55. value="{{data.speedPenalty}}"
  56. data-property="system.speedPenalty"
  57. {{#if (gt item.speedPenalty item._source.system.speedPenalty)}}
  58. class="adjusted-higher"
  59. {{else if (lt item.speedPenalty item._source.system.speedPenalty)}}
  60. class="adjusted-lower"
  61. {{/if}}
  62. />
  63. </div>
  64. </fieldset>
  65. <fieldset>
  66. <legend>{{localize "PF2E.Item.Physical.MaterialRunes.Label"}}</legend>
  67. <div class="form-group precious-material">
  68. <label
  69. for="{{fieldIdPrefix}}material"
  70. {{#unless canChangeMaterial}}class="disabled"{{/unless}}
  71. >{{localize "PF2E.PreciousMaterialLabel"}}</label>
  72. <select
  73. id="{{fieldIdPrefix}}material"
  74. data-property="system.material"
  75. data-value-base="{{json item._source.system.material}}"
  76. data-dtype="JSON"
  77. {{disabled (not canChangeMaterial)}}
  78. >
  79. {{#select preciousMaterials.value}}
  80. <option value="{&quot;type&quot;:null,&quot;grade&quot;:null}"></option>
  81. {{#each preciousMaterials.materials as |material|}}
  82. <optgroup label="{{material.label}}">
  83. {{#each material.grades as |grade|}}
  84. <option value="{{grade.value}}">
  85. {{localize "PF2E.Item.Weapon.MaterialAndRunes.MaterialOption" type=material.label grade=grade.label}}
  86. </option>
  87. {{/each}}
  88. </optgroup>
  89. {{/each}}
  90. {{/select}}
  91. </select>
  92. </div>
  93. <div class="form-group">
  94. <label for="{{fieldIdPrefix}}runes-reinforcing">{{localize "PF2E.Item.Shield.Rune.Reinforcing.Label"}}</label>
  95. <select name="system.runes.reinforcing" id="{{fieldIdPrefix}}runes-reinforcing" data-dtype="Number">
  96. {{#select data.runes.reinforcing}}
  97. {{#each reinforcing as |label number|}}
  98. <option value="{{number}}">{{localize label}}</option>
  99. {{/each}}
  100. {{/select}}
  101. </select>
  102. </div>
  103. {{#if weaponRunes}}
  104. <div class="form-group">
  105. <label for="{{fieldIdPrefix}}integrated-potency">{{localize "PF2E.PotencyRuneLabel"}}</label>
  106. <select name="system.traits.integrated.runes.potency" id="{{fieldIdPrefix}}integrated-potency" data-dtype="Number">
  107. {{#select data.traits.integrated.runes.potency}}
  108. {{#each weaponRunes.potency as |data number|}}
  109. <option value="{{number}}">{{localize (coalesce data.name "")}}</option>
  110. {{/each}}
  111. {{/select}}
  112. </select>
  113. </div>
  114. <div class="form-group">
  115. <label for="{{fieldIdPrefix}}integrated-runes-potency">{{localize "PF2E.StrikingRuneLabel"}}</label>
  116. <select name="system.traits.integrated.runes.striking" id="{{fieldIdPrefix}}integrated-runes-potency" data-dtype="Number">
  117. {{#select data.traits.integrated.runes.striking}}
  118. {{#each weaponRunes.striking as |data number|}}
  119. <option value="{{number}}">{{localize (coalesce data.name "")}}</option>
  120. {{/each}}
  121. {{/select}}
  122. </select>
  123. </div>
  124. {{#each propertyRuneSlots as |slot index|}}
  125. <div class="form-group">
  126. <label
  127. for="{{../fieldIdPrefix}}integrated-runes-property-{{index}}"
  128. {{#if slot.disabled}}class="disabled"{{/if}}
  129. >
  130. {{localize (concat "PF2E.PropertyRuneLabel" (add index 1))}}
  131. </label>
  132. <select
  133. name="system.traits.integrated.runes.property.{{index}}"
  134. id="{{../fieldIdPrefix}}integrated-runes-property-{{index}}"
  135. {{disabled slot.disabled}}
  136. {{#if slot.readOnly}}class="readonly"{{/if}}
  137. >
  138. {{#select slot.slug}}
  139. <option value=""></option>
  140. {{#each @root.weaponRunes.property as |rune|}}
  141. <option value="{{rune.slug}}">{{localize rune.name}}</option>
  142. {{/each}}
  143. {{/select}}
  144. </select>
  145. </div>
  146. {{/each}}
  147. {{/if}}
  148. <div class="form-group">
  149. <label for="{{fieldIdPrefix}}specific" class="large">
  150. {{localize "PF2E.Item.Shield.Specific.Label"}}
  151. <i class="fa-solid fa-info-circle" data-tooltip="PF2E.Item.Shield.Specific.Hint"></i>
  152. </label>
  153. <input type="checkbox" id="{{fieldIdPrefix}}specific" data-action="toggle-specific" {{checked data.specific}} />
  154. </div>
  155. </fieldset>