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.

132 lines
7.0 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 year ago
1 year ago
1 year ago
1 year ago
  1. <div class="inventory-details" spellcheck="false">
  2. <div class="form-group duration">
  3. <label for="{{item.uuid}}-duration">{{localize "PF2E.Time.Duration"}}</label>
  4. {{> systems/pf2e/templates/items/partials/duration.hbs base="system.duration" duration=data.duration units=timeUnits}}
  5. </div>
  6. <div class="form-group">
  7. <label for="{{item.uuid}}-sustained">{{localize "PF2E.Item.Effect.Sustained"}}</label>
  8. <div class="form-fields">
  9. <input id="{{item.uuid}}-sustained" type="checkbox" name="system.duration.sustained" {{checked data.duration.sustained}} />
  10. </div>
  11. </div>
  12. {{#unless (or (eq data.duration.unit "unlimited") (eq data.duration.unit "encounter"))}}
  13. <div class="form-group">
  14. <label for="{{item.uuid}}-duration-expiry">{{localize "PF2E.Item.Effect.Expiry.ExpiresOn"}}</label>
  15. <div class="form-fields">
  16. <select id="{{item.uuid}}-duration-expiry" name="system.duration.expiry">
  17. {{#select data.duration.expiry}}
  18. <option value="turn-start">{{localize "PF2E.Item.Effect.Expiry.StartOfTurn"}}</option>
  19. <option value="turn-end">{{localize "PF2E.Item.Effect.Expiry.EndOfTurn"}}</option>
  20. <option value="round-end">{{localize "PF2E.Item.Effect.Expiry.EndOfRound"}}</option>
  21. {{/select}}
  22. </select>
  23. </div>
  24. </div>
  25. {{/unless}}
  26. <div class="form-group">
  27. <label for="{{item.uuid}}-show-token-icon">{{localize "PF2E.Item.Effect.ShowTokenIcon"}}</label>
  28. <div class="form-fields">
  29. <input id="{{item.uuid}}-show-token-icon" type="checkbox" name="system.tokenIcon.show" {{checked data.tokenIcon.show}} />
  30. </div>
  31. </div>
  32. {{#if user.isGM}}
  33. <div class="form-group">
  34. <label for="{{item.uuid}}-unidentified">{{localize "PF2E.Item.Effect.Unidentified"}}</label>
  35. <div class="form-fields">
  36. <input id="{{item.uuid}}-unidentified" type="checkbox" name="system.unidentified" {{checked data.unidentified}} />
  37. </div>
  38. </div>
  39. {{/if}}
  40. <hr />
  41. {{#if data.badge}}
  42. {{#if (eq data.badge.type "formula")~}}
  43. <div class="form-group">
  44. <label for="{{item.uuid}}-badge-type">{{badgeType}}</label>
  45. <div class="form-fields">
  46. <input id="{{item.uuid}}-badge-type" type="text" name="system.badge.value" value="{{data.badge.value}}" />
  47. {{#if @root.options.editable}}
  48. <div class="item-controls">
  49. <a data-action="badge-delete"><i class="fa-solid fa-fw fa-times"></i></a>
  50. </div>
  51. {{/if}}
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label for="{{item.uuid}}-badge-reevaluate">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.Label"}}</label>
  56. <div class="form-fields">
  57. <select id="{{item.uuid}}-badge-reevaluate" name="system.badge.reevaluate">
  58. {{#select data.badge.reevaluate}}
  59. <option value="">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.Never"}}</option>
  60. <option value="turn-start">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.TurnStart"}}</option>
  61. <option value="turn-end">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.TurnEnd"}}</option>
  62. {{/select}}
  63. </select>
  64. </div>
  65. </div>
  66. {{else}}
  67. <div class="form-group">
  68. <label for="{{item.uuid}}-badge-type">{{badgeType}}</label>
  69. <div class="form-fields">
  70. <input id="{{item.uuid}}-badge-type" type="number" {{#if data.badge.labels}}disabled{{else}}name="system.badge.value"{{/if}} value="{{data.badge.value}}" />
  71. {{#if @root.options.editable}}
  72. <div class="item-controls">
  73. <a data-action="badge-delete"><i class="fa-solid fa-fw fa-times"></i></a>
  74. </div>
  75. {{/if}}
  76. </div>
  77. </div>
  78. {{/if}}
  79. {{#if data.badge.labels}}
  80. <h4 class="badge-label-header">
  81. {{localize "PF2E.Item.Effect.Badge.Labels.Label" type=badgeType}}
  82. <a class="add-badge" data-action="badge-add-label"><i class="fa-solid fa-fw fa-plus"></i></a>
  83. </h4>
  84. {{#each data.badge.labels as |label idx|}}
  85. <div class="badge-label-row form-fields">
  86. {{#unless (eq @root.data.badge.type "formula")}}
  87. <label>
  88. <input
  89. type="radio"
  90. name="system.badge.value"
  91. value="{{add idx 1}}"
  92. data-dtype="Number"
  93. tabindex="-1"
  94. {{checked (eq @root.data.badge.value (add idx 1))}}
  95. />
  96. <span class="badge-value">{{add idx 1}}</span>
  97. </label>
  98. {{/unless}}
  99. <input type="text" name="system.badge.labels.{{idx}}" value="{{label}}" placeholder="{{localize "PF2E.Item.Effect.Badge.Labels.Placeholder"}}" />
  100. {{#if @root.options.editable}}
  101. <div class="item-controls">
  102. <a data-action="badge-delete-label" data-idx="{{idx}}"><i class="fa-solid fa-fw fa-times"></i></a>
  103. </div>
  104. {{/if}}
  105. </div>
  106. {{/each}}
  107. {{else}}
  108. <div class="form-group">
  109. <label>{{localize "PF2E.Item.Effect.Badge.Range"}}</label>
  110. <div class="form-fields">
  111. <input type="number" name="system.badge.min" value="{{document._source.system.badge.min}}" placeholder="1"/>
  112. -
  113. <input type="number" name="system.badge.max" value="{{document._source.system.badge.max}}" placeholder="Infinity"/>
  114. </div>
  115. </div>
  116. <button type="button" data-action="badge-add-label">
  117. <i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.Item.Effect.Badge.Labels.Add"}}
  118. </button>
  119. {{/if}}
  120. {{else}}
  121. <div class="add-badge">
  122. <select class="badge-type">
  123. <option value="counter">{{localize "PF2E.Item.Effect.Badge.Type.counter"}}</option>
  124. <option value="formula">{{localize "PF2E.Item.Effect.Badge.Type.formula"}}</option>
  125. </select>
  126. <button type="button" data-action="badge-add">
  127. <i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.Item.Effect.Badge.Add"}}
  128. </button>
  129. </div>
  130. {{/if}}
  131. </div>