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.

111 lines
4.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
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.consumableTypes system.consumableType }}
  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.ItemConsumableDetails" }}</h3>
  41. {{!-- Consumable Type --}}
  42. <div class="form-group">
  43. <label>{{ localize "DND5E.ItemConsumableType" }}</label>
  44. <select name="system.consumableType">
  45. {{selectOptions config.consumableTypes selected=system.consumableType}}
  46. </select>
  47. </div>
  48. <div class="form-group">
  49. <label>{{localize "DND5E.Attunement"}}</label>
  50. <select name="system.attunement" data-dtype="Number">
  51. {{selectOptions config.attunements selected=system.attunement}}
  52. </select>
  53. </div>
  54. {{!-- Consumable Status --}}
  55. <div class="form-group stacked">
  56. <label>{{ localize "DND5E.ItemConsumableStatus" }}</label>
  57. <label class="checkbox">
  58. <input type="checkbox" name="system.equipped" {{checked system.equipped}}> {{ localize "DND5E.Equipped" }}
  59. </label>
  60. <label class="checkbox">
  61. <input type="checkbox" name="system.identified" {{checked system.identified}}> {{ localize "DND5E.Identified" }}
  62. </label>
  63. </div>
  64. {{#if (eq system.consumableType "ammo")}}
  65. {{!-- Consumable Properties --}}
  66. <div class="form-group stacked weapon-properties">
  67. <label>{{ localize "DND5E.ItemAmmoProperties" }}</label>
  68. {{#each config.physicalWeaponProperties as |name prop|}}
  69. <label class="checkbox">
  70. <input type="checkbox" name="system.properties.{{prop}}" {{checked (lookup ../system.properties prop)}}> {{ name }}
  71. </label>
  72. {{/each}}
  73. </div>
  74. {{/if}}
  75. <h3 class="form-header">{{ localize "DND5E.ItemConsumableUsage" }}</h3>
  76. {{!-- Item Activation Template --}}
  77. {{> "dnd5e.item-activation"}}
  78. {{#if system.activation.type}}
  79. <div class="form-group">
  80. <label class="checkbox">
  81. <input type="checkbox" name="system.uses.autoDestroy" {{checked system.uses.autoDestroy}}> {{ localize "DND5E.ItemDestroyEmpty" }}
  82. </label>
  83. </div>
  84. {{/if}}
  85. <h3 class="form-header">{{ localize "DND5E.ItemConsumableActivation" }}</h3>
  86. {{!-- Item Action Template --}}
  87. {{> "dnd5e.item-action"}}
  88. </div>
  89. {{!-- Effects Tab --}}
  90. <div class="tab effects flexcol" data-group="primary" data-tab="effects">
  91. {{> "dnd5e.active-effects"}}
  92. </div>
  93. </section>
  94. </form>