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.

157 lines
6.3 KiB

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. {{!-- Equipment Status --}}
  66. <div class="form-group stacked">
  67. <label>{{ localize "DND5E.ItemEquipmentStatus" }}</label>
  68. <label class="checkbox">
  69. <input type="checkbox" name="system.proficient" {{checked system.proficient}}/> {{ localize "DND5E.Proficient" }}
  70. </label>
  71. <label class="checkbox">
  72. <input type="checkbox" name="system.equipped" {{checked system.equipped}}/> {{ localize "DND5E.Equipped" }}
  73. </label>
  74. <label class="checkbox">
  75. <input type="checkbox" name="system.identified" {{checked system.identified}}/> {{ localize "DND5E.Identified" }}
  76. </label>
  77. </div>
  78. {{/unless}}
  79. {{!-- Armor Class --}}
  80. {{#if (or system.isArmor system.isMountable)}}
  81. <div class="form-group">
  82. <label>{{ localize "DND5E.ArmorClass" }}</label>
  83. <div class="form-fields">
  84. {{numberInput system.armor.value name="system.armor.value"}}
  85. </div>
  86. </div>
  87. {{/if}}
  88. {{#if hasDexModifier}}
  89. {{!-- Dexterity Modifier --}}
  90. <div class="form-group">
  91. <label>{{ localize "DND5E.ItemEquipmentDexMod" }}</label>
  92. <div class="form-fields">
  93. {{numberInput system.armor.dex name="system.armor.dex" placeholder=(localize "DND5E.Unlimited")}}
  94. </div>
  95. </div>
  96. {{/if}}
  97. {{#if system.isArmor}}
  98. {{!-- Required Strength --}}
  99. <div class="form-group">
  100. <label>{{ localize "DND5E.ItemRequiredStr" }}</label>
  101. <div class="form-fields">
  102. {{numberInput system.strength name="system.strength" placeholder=(localize "DND5E.None")}}
  103. </div>
  104. </div>
  105. {{!-- Stealth Disadvantage --}}
  106. <div class="form-group">
  107. <label>{{ localize "DND5E.ItemEquipmentStealthDisav" }}</label>
  108. <input type="checkbox" name="system.stealth" {{checked system.stealth}}/>
  109. </div>
  110. {{/if}}
  111. {{#if system.isMountable}}
  112. {{> "dnd5e.item-mountable"}}
  113. <div class="form-group">
  114. <label>{{localize 'DND5E.Speed'}}</label>
  115. <div class="form-fields">
  116. {{numberInput system.speed.value name="system.speed.value" placeholder="0"}}
  117. <span class="sep">{{localize 'DND5E.FeetAbbr'}}</span>
  118. <input type="text" name="system.speed.conditions"
  119. value="{{system.speed.conditions}}">
  120. </div>
  121. </div>
  122. {{/if}}
  123. <h3 class="form-header">{{ localize "DND5E.ItemEquipmentUsage" }}</h3>
  124. {{!-- Item Activation Template --}}
  125. {{> "dnd5e.item-activation"}}
  126. <h3 class="form-header">{{ localize "DND5E.ItemEquipmentAction" }}</h3>
  127. {{!-- Item Action Template --}}
  128. {{> "dnd5e.item-action"}}
  129. </div>
  130. {{!-- Effects Tab --}}
  131. <div class="tab effects flexcol" data-group="primary" data-tab="effects">
  132. {{> "dnd5e.active-effects"}}
  133. </div>
  134. </section>
  135. </form>