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.

116 lines
4.3 KiB

1 year ago
  1. {{!-- Action Type --}}
  2. <div class="form-group select">
  3. <label>{{ localize "DND5E.ItemActionType" }}</label>
  4. <select name="system.actionType">
  5. {{selectOptions config.itemActionTypes selected=system.actionType blank=""}}
  6. </select>
  7. </div>
  8. {{#if system.actionType}}
  9. {{!-- Ability Modifier --}}
  10. <div class="form-group select">
  11. <label>{{ localize "DND5E.AbilityModifier" }}</label>
  12. <select name="system.ability">
  13. {{selectOptions config.abilities selected=system.ability labelAttr="label" blank=(localize "DND5E.Default")}}
  14. </select>
  15. </div>
  16. {{#if system.hasAttack}}
  17. {{!-- Attack Roll Bonus --}}
  18. <div class="form-group">
  19. <label>{{ localize "DND5E.ItemAttackBonus" }}</label>
  20. <div class="form-fields">
  21. <input type="text" name="system.attackBonus" value="{{system.attackBonus}}" data-formula-editor/>
  22. </div>
  23. </div>
  24. {{!-- Critical Hit Threshold --}}
  25. <div class="form-group">
  26. <label>{{ localize "DND5E.ItemCritThreshold" }}</label>
  27. <div class="form-fields">
  28. {{numberInput system.critical.threshold name="system.critical.threshold" placeholder="20" max=20 min=1 step=1}}
  29. </div>
  30. </div>
  31. {{!-- Critical Hit Damage --}}
  32. <div class="form-group">
  33. <label>{{ localize "DND5E.ItemCritExtraDamage" }}</label>
  34. <div class="form-fields">
  35. <input type="text" name="system.critical.damage" value="{{system.critical.damage}}">
  36. </div>
  37. </div>
  38. {{/if}}
  39. {{!-- Damage Formula --}}
  40. <h4 class="damage-header">
  41. {{#unless isHealing}}{{ localize "DND5E.Damage" }}{{ else }}{{ localize "DND5E.Healing" }}{{/unless}}
  42. {{ localize "DND5E.Formula" }}
  43. <a class="damage-control add-damage"><i class="fas fa-plus"></i></a>
  44. </h4>
  45. <ol class="damage-parts form-group">
  46. {{#each system.damage.parts as |part i| }}
  47. <li class="damage-part flexrow" data-damage-part="{{i}}">
  48. <input type="text" name="system.damage.parts.{{i}}.0" value="{{lookup this "0"}}" data-formula-editor/>
  49. <select name="system.damage.parts.{{i}}.1">
  50. {{#select (lookup this "1")}}
  51. <option value="">{{ localize "DND5E.None" }}</option>
  52. <optgroup label="{{localize 'DND5E.Damage'}}">
  53. {{selectOptions @root.config.damageTypes}}
  54. </optgroup>
  55. <optgroup label="{{localize 'DND5E.Healing'}}">
  56. {{selectOptions @root.config.healingTypes}}
  57. </optgroup>
  58. {{/select}}
  59. </select>
  60. <a class="damage-control delete-damage"><i class="fas fa-minus"></i></a>
  61. </li>
  62. {{/each}}
  63. </ol>
  64. {{!-- Versatile Damage --}}
  65. {{#if system.damage.parts.length }}
  66. <div class="form-group">
  67. <label>{{ localize "DND5E.VersatileDamage" }}</label>
  68. <div class="form-fields">
  69. <input type="text" name="system.damage.versatile" value="{{system.damage.versatile}}"
  70. placeholder="{{ localize 'DND5E.Formula' }}" data-formula-editor>
  71. </div>
  72. </div>
  73. {{/if}}
  74. {{!-- Other Formula --}}
  75. <div class="form-group">
  76. <label>{{ localize "DND5E.OtherFormula" }}</label>
  77. <div class="form-fields">
  78. <input type="text" name="system.formula" value="{{system.formula}}"
  79. placeholder="{{ localize 'DND5E.Formula' }}" data-formula-editor>
  80. </div>
  81. </div>
  82. {{!-- Saving Throw --}}
  83. <div class="form-group input-select">
  84. <label>{{ localize "DND5E.ActionSave" }}</label>
  85. <div class="form-fields">
  86. <select name="system.save.ability">
  87. {{selectOptions config.abilities selected=system.save.ability labelAttr="label" blank=""}}
  88. </select>
  89. <span>{{ localize "DND5E.VsDC" }}</span>
  90. <input type="number" step="any" name="system.save.dc"
  91. value="{{#if system.save.dc}}{{system.save.dc}}{{/if}}"
  92. placeholder="{{ localize 'DND5E.AbbreviationDC' }}" {{#unless isFlatDC}}disabled{{/unless}}>
  93. <select name="system.save.scaling">
  94. {{#select system.save.scaling}}
  95. <option value="spell">{{ localize "DND5E.Spellcasting" }}</option>
  96. {{selectOptions config.abilities labelAttr="label"}}
  97. <option value="flat">{{ localize "DND5E.Flat" }}</option>
  98. {{/select}}
  99. </select>
  100. </div>
  101. </div>
  102. {{!-- Chat Message Flavor --}}
  103. <div class="form-group stacked">
  104. <label>{{ localize "DND5E.ChatFlavor" }}</label>
  105. <input type="text" name="system.chatFlavor" value="{{system.chatFlavor}}"/>
  106. </div>
  107. {{/if}}