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.

99 lines
4.1 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <div class="form-group">
  2. <label>{{localize "PF2E.Category"}}</label>
  3. <select name="system.category">
  4. {{#select data.category}}
  5. {{#each categories as |name type|}}
  6. <option value="{{type}}">{{localize name}}</option>
  7. {{/each}}
  8. {{/select}}
  9. </select>
  10. </div>
  11. <div class="form-group">
  12. <label for="{{fieldIdPrefix}}uses-value">{{localize "PF2E.Item.Consumable.Uses.Label"}}</label>
  13. <div class="form-fields">
  14. <input id="{{fieldIdPrefix}}uses-value" type="number" name="system.uses.value" value="{{data.uses.value}}" />
  15. /
  16. <input type="number" name="system.uses.max" value="{{data.uses.max}}" />
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label for="{{fieldIdPrefix}}uses-auto-destroy">{{localize "PF2E.Item.Consumable.Uses.AutoDestroy"}}</label>
  21. <input type="checkbox" name="system.uses.autoDestroy" id="{{fieldIdPrefix}}uses-auto-destroy" {{checked data.uses.autoDestroy}} />
  22. </div>
  23. {{#if canHaveDamageOrHealing}}
  24. <div class="form-group damage">
  25. <label for="{{fieldIdPrefix}}damage">{{localize "PF2E.Item.Consumable.Damage.Label"}}</label>
  26. {{#if data.damage}}
  27. <div class="form-fields">
  28. <input type="text" name="system.damage.formula" id="{{fieldIdPrefix}}damage" value="{{data.damage.formula}}" />
  29. <select name="system.damage.type">
  30. {{#select data.damage.type}}
  31. {{#each @root.damageTypes as |name type|}}
  32. <option value="{{type}}">{{localize name}}</option>
  33. {{/each}}
  34. {{/select}}
  35. </select>
  36. <select class="kinds" name="system.damage.kind" {{disabled (not canHaveHealing)}}>
  37. {{#select data.damage.kind}}
  38. <option value="damage">{{localize "PF2E.DamageLabel"}}</option>
  39. <option value="healing">{{localize "PF2E.TraitHealing"}}</option>
  40. {{/select}}
  41. </select>
  42. <a data-action="remove-damage" data-tooltip="PF2E.DeleteShortLabel"><i class="fa-solid fa-trash"></i></a>
  43. </div>
  44. {{else}}
  45. <button type="button" id="{{fieldIdPrefix}}damage" data-action="add-damage">
  46. <i class="fa-regular fa-plus"></i>
  47. {{localize "PF2E.AddShortLabel"}}
  48. </button>
  49. {{/if}}
  50. </div>
  51. {{/if}}
  52. {{#unless (or item.isAmmo (eq data.damage.kind "healing"))}}
  53. <div class="form-group stacked">
  54. <label>
  55. <span>{{localize "PF2E.Item.MaterialEffects.Label"}}</span>
  56. <i class="fa-solid fa-info-circle" data-tooltip="PF2E.Item.MaterialEffects.Hint"></i>
  57. {{#if editable}}
  58. <a
  59. class="tag-selector"
  60. data-tag-selector="basic"
  61. data-title="PF2E.Item.Action.MaterialEffects.Label"
  62. data-config-types="materialDamageEffects"
  63. data-property="system.material.effects"
  64. ><i class="fa-solid fa-fw fa-edit"></i></a>
  65. {{/if}}
  66. </label>
  67. <ul class="traits-list tags">
  68. {{#each materialEffects as |material|}}
  69. <li class="tag tag_material" data-slug="{{material.value}}">{{material.label}}</li>
  70. {{/each}}
  71. </ul>
  72. </div>
  73. {{/unless}}
  74. <div class="form-group stacked">
  75. <label>
  76. <span>{{localize "PF2E.Item.Physical.OtherTags.Label"}}</span>
  77. <i class="fa-solid fa-info-circle" data-tooltip="PF2E.Item.Physical.OtherTags.Hint"></i>
  78. {{#if editable}}
  79. <a
  80. class="tag-selector"
  81. data-tag-selector="basic"
  82. data-config-types="otherConsumableTags"
  83. data-title="PF2E.Item.Physical.OtherTags.Label"
  84. data-property="system.traits.otherTags"
  85. ><i class="fa-solid fa-edit"></i></a>
  86. {{/if}}
  87. </label>
  88. <ul class="traits-list tags">
  89. {{#each otherTags as |tag|}}
  90. <li class="tag tag_alt">{{tag.label}}</li>
  91. {{/each}}
  92. </ul>
  93. </div>