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.

162 lines
6.5 KiB

1 year ago
1 year ago
  1. <form class="{{cssClass}} flexcol" autocomplete="off">
  2. {{!-- Item Sheet Header --}}
  3. <header class="sheet-header flexrow">
  4. <img class="profile" src="{{item.img}}" data-tooltip="{{item.name}}" data-edit="img"/>
  5. <div class="header-details flexrow">
  6. <h1 class="charname">
  7. <input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'DND5E.ItemName' }}"/>
  8. </h1>
  9. <div class="item-subtitle">
  10. <h4 class="item-type">{{itemType}}</h4>
  11. <span class="item-status">{{itemStatus}}</span>
  12. </div>
  13. <ul class="summary flexrow">
  14. <li>
  15. {{lookup config.equipmentTypes system.armor.type }}
  16. </li>
  17. <li>
  18. <select name="system.rarity">
  19. {{selectOptions config.itemRarity selected=system.rarity blank=""}}
  20. </select>
  21. </li>
  22. <li>
  23. <input type="text" name="system.source" value="{{system.source}}" placeholder="{{ localize 'DND5E.Source' }}"/>
  24. </li>
  25. </ul>
  26. </div>
  27. </header>
  28. {{!-- Item Sheet Navigation --}}
  29. <nav class="sheet-navigation tabs" data-group="primary">
  30. <a class="item active" data-tab="description">{{ localize "DND5E.Description" }}</a>
  31. <a class="item" data-tab="details">{{ localize "DND5E.Details" }}</a>
  32. <a class="item" data-tab="effects">{{ localize "DND5E.Effects" }}</a>
  33. </nav>
  34. {{!-- Item Sheet Body --}}
  35. <section class="sheet-body">
  36. {{!-- Description Tab --}}
  37. {{> "dnd5e.item-description"}}
  38. {{!-- Details Tab --}}
  39. <div class="tab details" data-group="primary" data-tab="details">
  40. <h3 class="form-header">{{ localize "DND5E.ItemEquipmentDetails" }}</h3>
  41. {{!-- Equipment Type --}}
  42. <div class="form-group">
  43. <label>{{ localize "DND5E.ItemEquipmentType" }}</label>
  44. <select name="system.armor.type">
  45. <option value=""></option>
  46. <optgroup label="{{ localize "DND5E.Armor" }}">
  47. {{selectOptions config.armorTypes selected=system.armor.type}}
  48. </optgroup>
  49. {{selectOptions config.miscEquipmentTypes selected=system.armor.type}}
  50. </select>
  51. </div>
  52. <div class="form-group">
  53. <label>{{ localize "DND5E.ItemEquipmentBase" }}</label>
  54. <select name="system.baseItem">
  55. {{selectOptions baseItems selected=system.baseItem blank=""}}
  56. </select>
  57. </div>
  58. {{#unless system.isMountable}}
  59. <div class="form-group">
  60. <label>{{localize "DND5E.Attunement"}}</label>
  61. <select name="system.attunement" data-dtype="Number">
  62. {{selectOptions config.attunements selected=system.attunement}}
  63. </select>
  64. </div>
  65. <div class="form-group">
  66. <label>{{localize "DND5E.Proficiency"}}</label>
  67. <select name="system.proficient" data-dtype="Number">
  68. {{selectOptions config.weaponAndArmorProficiencyLevels selected=system.proficient
  69. blank=(localize "DND5E.Automatic")}}
  70. </select>
  71. </div>
  72. {{!-- Equipment Status --}}
  73. <div class="form-group stacked">
  74. <label>{{ localize "DND5E.ItemEquipmentStatus" }}</label>
  75. <label class="checkbox">
  76. <input type="checkbox" name="system.equipped" {{checked system.equipped}}/> {{ localize "DND5E.Equipped" }}
  77. </label>
  78. <label class="checkbox">
  79. <input type="checkbox" name="system.identified" {{checked system.identified}}/> {{ localize "DND5E.Identified" }}
  80. </label>
  81. </div>
  82. {{/unless}}
  83. {{!-- Armor Class --}}
  84. {{#if (or system.isArmor system.isMountable)}}
  85. <div class="form-group">
  86. <label>{{ localize "DND5E.ArmorClass" }}</label>
  87. <div class="form-fields">
  88. {{numberInput system.armor.value name="system.armor.value"}}
  89. </div>
  90. </div>
  91. {{/if}}
  92. {{#if hasDexModifier}}
  93. {{!-- Dexterity Modifier --}}
  94. <div class="form-group">
  95. <label>{{ localize "DND5E.ItemEquipmentDexMod" }}</label>
  96. <div class="form-fields">
  97. {{numberInput system.armor.dex name="system.armor.dex" placeholder=(localize "DND5E.Unlimited")}}
  98. </div>
  99. </div>
  100. {{/if}}
  101. {{#if system.isArmor}}
  102. {{!-- Required Strength --}}
  103. <div class="form-group">
  104. <label>{{ localize "DND5E.ItemRequiredStr" }}</label>
  105. <div class="form-fields">
  106. {{numberInput system.strength name="system.strength" placeholder=(localize "DND5E.None")}}
  107. </div>
  108. </div>
  109. {{!-- Stealth Disadvantage --}}
  110. <div class="form-group">
  111. <label>{{ localize "DND5E.ItemEquipmentStealthDisav" }}</label>
  112. <input type="checkbox" name="system.stealth" {{checked system.stealth}}/>
  113. </div>
  114. {{/if}}
  115. {{#if system.isMountable}}
  116. {{> "dnd5e.item-mountable"}}
  117. <div class="form-group">
  118. <label>{{localize 'DND5E.Speed'}}</label>
  119. <div class="form-fields">
  120. {{numberInput system.speed.value name="system.speed.value" placeholder="0"}}
  121. <span class="sep">{{localize 'DND5E.FeetAbbr'}}</span>
  122. <input type="text" name="system.speed.conditions"
  123. value="{{system.speed.conditions}}">
  124. </div>
  125. </div>
  126. {{/if}}
  127. <h3 class="form-header">{{ localize "DND5E.ItemEquipmentUsage" }}</h3>
  128. {{!-- Item Activation Template --}}
  129. {{> "dnd5e.item-activation"}}
  130. <h3 class="form-header">{{ localize "DND5E.ItemEquipmentAction" }}</h3>
  131. {{!-- Item Action Template --}}
  132. {{> "dnd5e.item-action"}}
  133. </div>
  134. {{!-- Effects Tab --}}
  135. <div class="tab effects flexcol" data-group="primary" data-tab="effects">
  136. {{> "dnd5e.active-effects"}}
  137. </div>
  138. </section>
  139. </form>