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.

382 lines
16 KiB

1 year ago
  1. <div class="form-group">
  2. <label>{{localize "PF2E.WeaponTypeLabel"}}</label>
  3. <select name="system.category">
  4. {{#select data.category}}
  5. {{#each categories as |label slug|}}
  6. <option value="{{slug}}">{{label}}</option>
  7. {{/each}}
  8. {{/select}}
  9. </select>
  10. </div>
  11. <div class="form-group">
  12. <label>{{localize "PF2E.WeaponGroupLabel"}}</label>
  13. <select name="system.group">
  14. {{#select data.group}}
  15. <option value=""></option>
  16. {{#each groups as |name type|}}
  17. <option value="{{type}}">{{localize name}}</option>
  18. {{/each}}
  19. {{/select}}
  20. </select>
  21. </div>
  22. <div class="form-group">
  23. <label>{{localize "PF2E.WeaponBaseLabel"}}</label>
  24. <select name="system.baseItem">
  25. {{#select data.baseItem}}
  26. <option value=""></option>
  27. {{#each baseTypes as |label slug|}}
  28. <option value="{{slug}}">{{label}}</option>
  29. {{/each}}
  30. {{/select}}
  31. </select>
  32. </div>
  33. <div class="form-group">
  34. <label>
  35. {{localize "PF2E.WeaponRangeLabel"}}
  36. {{#if mandatoryMelee}}
  37. <i class="fas fa-info-circle small" title="{{localize "PF2E.Item.Weapon.MandatoryMelee"}}"></i>
  38. {{/if}}
  39. </label>
  40. <select name="system.range" data-dtype="Number" {{disabled mandatoryMelee}}>
  41. {{#select item._source.system.range}}
  42. {{#unless mandatoryRanged}}<option value="">{{localize "PF2E.Item.Weapon.NoRangeMelee"}}</option>{{/unless}}
  43. {{#each weaponRanges as |label range|}}
  44. <option value="{{range}}">{{localize label range=range}}</option>
  45. {{/each}}
  46. {{/select}}
  47. </select>
  48. </div>
  49. {{#if data.range}}
  50. <div class="form-group">
  51. <label>{{localize "PF2E.WeaponReloadLabel"}}</label>
  52. <select name="system.reload.value">
  53. {{#select data.reload.value}}
  54. <option value=""></option>
  55. {{#each weaponReload as |name type|}}
  56. <option value="{{type}}">{{localize name}}</option>
  57. {{/each}}
  58. {{/select}}
  59. </select>
  60. </div>
  61. {{/if}}
  62. {{#if isBomb}}
  63. <div class="form-group">
  64. <label>{{localize "PF2E.WeaponBonusAttackLabel"}}</label>
  65. <input type="number" name="system.bonus.value" value="{{data.bonus.value}}" />
  66. </div>
  67. {{/if}}
  68. <div class="form-group">
  69. <label>{{localize "PF2E.WeaponMAPLabel"}}</label>
  70. <select name="system.MAP.value">
  71. {{#select data.MAP.value}}
  72. <option value="">{{localize "PF2E.WeaponMAPDefaultOption"}}</option>
  73. {{#each weaponMAP as |name type|}}
  74. <option value="{{type}}">{{name}}</option>
  75. {{/each}}
  76. {{/select}}
  77. </select>
  78. </div>
  79. {{#unless isBomb}}
  80. <ol class="form-list">
  81. <h3>
  82. {{localize "PF2E.Item.Weapon.MaterialAndRunes.Title"}}
  83. <i class="fas fa-info-circle large" title="{{localize "PF2E.Item.Weapon.MaterialAndRunes.Hint"}}"></i>
  84. </h3>
  85. <div class="form-group precious-material">
  86. <label>{{localize "PF2E.PreciousMaterialLabel"}}</label>
  87. <select name="preciousMaterial">
  88. {{#select preciousMaterials.value}}
  89. <option value=""></option>
  90. {{#each preciousMaterials.materials as |material materialKey|}}
  91. <optgroup label="{{material.label}}">
  92. {{#each material.grades as |grade gradeKey|}}
  93. <option value="{{materialKey}}|{{gradeKey}}">
  94. {{localize "PF2E.Item.Weapon.MaterialAndRunes.MaterialOption" type=material.label grade=grade.label}}
  95. </option>
  96. {{/each}}
  97. </optgroup>
  98. {{/each}}
  99. {{/select}}
  100. </select>
  101. </div>
  102. {{#unless abpEnabled}}
  103. <div class="form-group">
  104. <label>{{localize "PF2E.PotencyRuneLabel"}}</label>
  105. <select name="system.potencyRune.value" data-dtype="Number">
  106. {{#select data.potencyRune.value}}
  107. <option value="0"></option>
  108. {{#each weaponPotencyRunes as |name type|}}
  109. <option value="{{type}}">{{localize name}}</option>
  110. {{/each}}
  111. {{/select}}
  112. </select>
  113. </div>
  114. <div class="form-group">
  115. <label>{{localize "PF2E.StrikingRuneLabel"}}</label>
  116. <select name="system.strikingRune.value">
  117. {{#select data.strikingRune.value}}
  118. <option value=""></option>
  119. {{#each weaponStrikingRunes as |name type|}}
  120. <option value="{{type}}">{{localize name}}</option>
  121. {{/each}}
  122. {{/select}}
  123. </select>
  124. </div>
  125. {{/unless}}
  126. {{#each propertyRuneSlots as |slot|}}
  127. <div class="form-group">
  128. <label>{{slot.label}}</label>
  129. {{#if @root.data.specific.value}}
  130. <input type="hidden" name="{{slot.name}}" value="{{slot.value}}" data-dtype="String" />
  131. {{/if}}
  132. <select{{#if (not @root.data.specific.value)}} name="{{slot.name}}"{{/if}} {{disabled @root.data.specific.value}}>
  133. {{#select slot.value}}
  134. <option value=""></option>
  135. {{#each @root.weaponPropertyRunes as |label type|}}
  136. <option value="{{type}}">{{localize label}}</option>
  137. {{/each}}
  138. {{/select}}
  139. </select>
  140. </div>
  141. {{/each}}
  142. <div class="form-group">
  143. <label class="large">
  144. {{localize "PF2E.Item.Weapon.SpecificMagicWeapon.Label"}}
  145. <i class="fas fa-info-circle large" title="{{localize "PF2E.Item.Weapon.SpecificMagicWeapon.Hint"}}"></i>
  146. </label>
  147. <input type="checkbox" name="system.specific.value" {{checked data.specific.value}} />
  148. </div>
  149. </ol>
  150. {{/unless}}
  151. <ol class="form-list">
  152. <h3>
  153. {{localize "PF2E.DamageLabel"}}
  154. <i class="fas fa-info-circle large" title="{{localize "PF2E.WeaponBaseDamageTitle"}}"></i>
  155. </h3>
  156. <div class="form-group">
  157. <label>
  158. {{localize "PF2E.WeaponBaseLabel"}}
  159. {{#if adjustedDiceHint}}<i class="fas fa-info-circle small" title="{{adjustedDiceHint}}"></i>{{/if}}
  160. </label>
  161. <div class="dice-data">
  162. <input type="number"{{#if adjustedDiceHint}} class="adjusted"{{/if}} data-property="system.damage.dice" data-value-base="{{baseDice}}" value="{{data.damage.dice}}" />
  163. <select name="system.damage.die">
  164. {{#select data.damage.die}}
  165. <option value=""></option>
  166. {{#each damageDie as |name type|}}
  167. <option value="{{type}}">{{localize name}}</option>
  168. {{/each}}
  169. {{/select}}
  170. </select>
  171. <select name="system.damage.damageType">
  172. {{#select data.damage.damageType}}
  173. {{#each damageTypes as |label slug|}}
  174. {{#unless (eq slug "bleed")}}<option value="{{slug}}">{{label}}</option>{{/unless}}
  175. {{/each}}
  176. {{/select}}
  177. </select>
  178. </div>
  179. </div>
  180. <div class="form-group">
  181. <label{{#unless data.splashDamage.value}} class="no-data"{{/unless}}>{{localize "PF2E.TraitSplash"}}</label>
  182. <input type="number" name="system.splashDamage.value" value="{{data.splashDamage.value}}" />
  183. </div>
  184. <div class="form-group">
  185. <label{{#unless data.damage.persistent}} class="no-data"{{/unless}}>{{localize "PF2E.ConditionTypePersistentShort"}}</label>
  186. <div class="dice-data">
  187. <input type="number" data-action="update-persistent" data-persistent-field="number" value="{{coalesce data.damage.persistent.number 0}}" />
  188. <select data-action="update-persistent" data-persistent-field="faces">
  189. {{#select data.damage.persistent.faces}}
  190. <option value=""></option>
  191. {{#each damageDieFaces as |label value|}}
  192. <option value="{{value}}">{{localize label}}</option>
  193. {{/each}}
  194. {{/select}}
  195. </select>
  196. <select data-action="update-persistent" data-persistent-field="type" value="{{data.damage.persistent.damageType}}">
  197. {{#select data.damage.persistent.type}}
  198. <option value=""></option>
  199. {{#each damageTypes as |label slug|}}
  200. <option value="{{slug}}">{{label}}</option>
  201. {{/each}}
  202. {{/select}}
  203. </select>
  204. </div>
  205. </div>
  206. <div class="form-group">
  207. <label{{#unless data.bonusDamage.value}} class="no-data"{{/unless}}>{{localize "PF2E.Bonus"}}</label>
  208. <input type="number" name="system.bonusDamage.value" value="{{data.bonusDamage.value}}" />
  209. </div>
  210. </ol>
  211. <ol class="form-list">
  212. <h3>
  213. {{localize "PF2E.WeaponCustomDamageLabel"}}
  214. <i class="fas fa-info-circle large" title="{{localize "PF2E.WeaponCustomDamageTitle"}}"></i>
  215. </h3>
  216. <li class="form-group">
  217. <label>{{localize "PF2E.ItemDescription"}}</label>
  218. <input type="text" name="system.property1.value" value="{{data.property1.value}}" />
  219. </li>
  220. <li class="form-group">
  221. <label>{{localize "PF2E.WeaponPropertyStrikeDamageLabel"}}</label>
  222. <div class="dice-data">
  223. <input type="number" name="system.property1.dice" value="{{data.property1.dice}}" />
  224. <select name="system.property1.die">
  225. {{#select data.property1.die}}
  226. <option value=""></option>
  227. {{#each damageDie as |name type|}}
  228. <option value="{{type}}">{{localize name}}</option>
  229. {{/each}}
  230. {{/select}}
  231. </select>
  232. <select name="system.property1.damageType">
  233. {{#select data.property1.damageType}}
  234. <option value=""></option>
  235. {{#each damageTypes as |label slug|}}
  236. <option value="{{slug}}">{{label}}</option>
  237. {{/each}}
  238. {{/select}}
  239. </select>
  240. </div>
  241. </li>
  242. <li class="form-group">
  243. <label>{{localize "PF2E.WeaponPropertyStrikeEffectLabel"}}</label>
  244. <div class="effects-container">
  245. <select name="system.property1.strikeConditionType">
  246. {{#select data.property1.strikeConditionType}}
  247. <option value=""></option>
  248. {{#each conditionTypes as |label slug|}}
  249. <option value="{{slug}}">{{label}}</option>
  250. {{/each}}
  251. {{/select}}
  252. </select>
  253. <select name="system.property1.strikeConditionValue" data-dtype="Number">
  254. {{#select data.property1.strikeConditionValue}}
  255. <option value=""></option>
  256. {{#each damageDice as |name type|}}
  257. <option value="{{type}}">{{localize name}}</option>
  258. {{/each}}
  259. {{/select}}
  260. </select>
  261. </div>
  262. </li>
  263. <li class="form-group">
  264. <label>{{localize "PF2E.WeaponPropertyCriticalDamageLabel"}}</label>
  265. <div class="dice-data">
  266. <input type="number" name="system.property1.critDice" value="{{data.property1.critDice}}" />
  267. <select name="system.property1.critDie">
  268. {{#select data.property1.critDie}}
  269. <option value=""></option>
  270. {{#each damageDie as |name type|}}
  271. <option value="{{type}}">{{localize name}}</option>
  272. {{/each}}
  273. {{/select}}
  274. </select>
  275. <select name="system.property1.critDamageType">
  276. {{#select data.property1.critDamageType}}
  277. <option value=""></option>
  278. {{#each damageTypes as |name type|}}
  279. <option value="{{type}}">{{localize name}}</option>
  280. {{/each}}
  281. {{/select}}
  282. </select>
  283. </div>
  284. </li>
  285. <li class="form-group">
  286. <label>{{localize "PF2E.WeaponPropertyCriticalEffectLabel"}}</label>
  287. <div class="effects-container">
  288. <select name="system.property1.criticalConditionType">
  289. {{#select data.property1.criticalConditionType}}
  290. <option value=""></option>
  291. {{#each conditionTypes as |label slug|}}
  292. <option value="{{slug}}">{{localize label}}</option>
  293. {{/each}}
  294. {{/select}}
  295. </select>
  296. <select name="system.property1.criticalConditionValue" data-dtype="Number">
  297. {{#select data.property1.criticalConditionValue}}
  298. <option value=""></option>
  299. {{#each damageDice as |name type|}}
  300. <option value="{{type}}">{{localize name}}</option>
  301. {{/each}}
  302. {{/select}}
  303. </select>
  304. </div>
  305. </li>
  306. </ol>
  307. {{#if isComboWeapon}}
  308. <ol class="form-list">
  309. <h3>
  310. {{localize "PF2E.Item.Weapon.MeleeUsage.Label"}}
  311. <i class="fas fa-info-circle large" title="{{localize "PF2E.Item.Weapon.MeleeUsage.Hint"}}"></i>
  312. </h3>
  313. <div class="form-group">
  314. <label>{{localize "PF2E.WeaponGroupLabel"}}</label>
  315. <select name="system.meleeUsage.group">
  316. {{#select meleeUsage.group}}
  317. {{#each meleeGroups as |label slug|}}
  318. <option value="{{slug}}">{{label}}</option>
  319. {{/each}}
  320. {{/select}}
  321. </select>
  322. </div>
  323. <div class="form-group">
  324. <label>{{localize "PF2E.WeaponDamageLabel"}}</label>
  325. <div class="details-container-three-columns">
  326. <select name="system.meleeUsage.damage.die">
  327. {{#select meleeUsage.damage.die}}
  328. {{#each damageDie as |value faces|}}
  329. <option value="{{faces}}">1{{faces}}</option>
  330. {{/each}}
  331. {{/select}}
  332. </select>
  333. <select name="system.meleeUsage.damage.type">
  334. {{#select meleeUsage.damage.type}}
  335. {{#each damageTypes as |label type|}}
  336. <option value="{{type}}">{{label}}</option>
  337. {{/each}}
  338. {{/select}}
  339. </select>
  340. </div>
  341. </div>
  342. <div class="form-group-stacked">
  343. <label>
  344. {{localize "PF2E.TraitsLabel"}}
  345. <a class="tag-selector" data-tag-selector="basic" data-config-types="weaponTraits" data-property="system.meleeUsage.traits" data-no-custom="true" data-flat="true">
  346. <i class="fas fa-edit"></i>
  347. </a>
  348. </label>
  349. <ul class="traits-list tags">
  350. {{#each meleeUsageTraits as |trait|}}
  351. <li class="tag">{{trait.label}}</li>
  352. {{/each}}
  353. </ul>
  354. </div>
  355. </ol>
  356. {{/if}}
  357. <div class="form-group-stacked">
  358. <label>
  359. {{localize "PF2E.Item.Physical.OtherTags.Label"}}
  360. <i class="fas fa-info-circle other-tags-hint" title="PF2E.Item.Physical.OtherTags.Hint"></i>
  361. {{#if editable}}
  362. <a class="tag-selector" data-tag-selector="basic" data-config-types="otherWeaponTags" data-title="PF2E.Item.Physical.OtherTags.Label" data-property="system.traits.otherTags"><i class="fas fa-edit"></i></a>
  363. {{/if}}
  364. </label>
  365. <ul class="traits-list tags">
  366. {{#each otherTags as |tag|}}
  367. <li class="tag tag_alt">{{tag.label}}</li>
  368. {{/each}}
  369. </ul>
  370. </div>