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.

121 lines
6.2 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 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. {{/select}}
  21. </select>
  22. </div>
  23. </div>
  24. {{/unless}}
  25. <div class="form-group">
  26. <label for="{{item.uuid}}-show-token-icon">{{localize "PF2E.Item.Effect.ShowTokenIcon"}}</label>
  27. <div class="form-fields">
  28. <input id="{{item.uuid}}-show-token-icon" type="checkbox" name="system.tokenIcon.show" {{checked data.tokenIcon.show}} />
  29. </div>
  30. </div>
  31. {{#if user.isGM}}
  32. <div class="form-group">
  33. <label for="{{item.uuid}}-unidentified">{{localize "PF2E.Item.Effect.Unidentified"}}</label>
  34. <div class="form-fields">
  35. <input id="{{item.uuid}}-unidentified" type="checkbox" name="system.unidentified" {{checked data.unidentified}} />
  36. </div>
  37. </div>
  38. {{/if}}
  39. <hr />
  40. {{#if data.badge}}
  41. {{#if (eq data.badge.type "formula")~}}
  42. <div class="form-group">
  43. <label for="{{item.uuid}}-badge-type">{{badgeType}}</label>
  44. <div class="form-fields">
  45. <input id="{{item.uuid}}-badge-type" type="text" name="system.badge.value" value="{{data.badge.value}}" />
  46. {{#if @root.options.editable}}
  47. <div class="item-controls">
  48. <a data-action="badge-delete"><i class="fa-solid fa-fw fa-times"></i></a>
  49. </div>
  50. {{/if}}
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label for="{{item.uuid}}-badge-reevaluate">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.Label"}}</label>
  55. <div class="form-fields">
  56. <select id="{{item.uuid}}-badge-reevaluate" name="system.badge.reevaluate">
  57. {{#select data.badge.reevaluate}}
  58. <option value="">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.Never"}}</option>
  59. <option value="turn-start">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.TurnStart"}}</option>
  60. <option value="turn-end">{{localize "PF2E.Item.Effect.Badge.ReevaluateFormula.TurnEnd"}}</option>
  61. {{/select}}
  62. </select>
  63. </div>
  64. </div>
  65. {{else}}
  66. <div class="form-group">
  67. <label for="{{item.uuid}}-badge-type">{{badgeType}}</label>
  68. <div class="form-fields">
  69. <input id="{{item.uuid}}-badge-type" type="number" {{#if data.badge.labels}}disabled{{else}}name="system.badge.value"{{/if}} value="{{data.badge.value}}" />
  70. {{#if @root.options.editable}}
  71. <div class="item-controls">
  72. <a data-action="badge-delete"><i class="fa-solid fa-fw fa-times"></i></a>
  73. </div>
  74. {{/if}}
  75. </div>
  76. </div>
  77. {{/if}}
  78. {{#if data.badge.labels}}
  79. <h4>{{localize "PF2E.Item.Effect.Badge.Labels.Label" type=badgeType}}</h4>
  80. {{/if}}
  81. {{#each data.badge.labels as |label idx|}}
  82. <div class="badge-label-row details-container-flex-row">
  83. {{#unless (eq @root.data.badge.type "formula")}}
  84. <label>
  85. <input
  86. type="radio"
  87. name="system.badge.value"
  88. value="{{add idx 1}}"
  89. data-dtype="Number"
  90. tabindex="-1"
  91. {{checked (eq @root.data.badge.value (add idx 1))}}
  92. />
  93. <span class="badge-value">{{add idx 1}}</span>
  94. </label>
  95. {{/unless}}
  96. <input type="text" name="system.badge.labels.{{idx}}" value="{{label}}" placeholder="{{localize "PF2E.Item.Effect.Badge.Labels.Placeholder"}}" />
  97. {{#if @root.options.editable}}
  98. <div class="item-controls">
  99. <a data-action="badge-delete-label" data-idx="{{idx}}"><i class="fa-solid fa-fw fa-times"></i></a>
  100. </div>
  101. {{/if}}
  102. </div>
  103. {{/each}}
  104. <div class="form-fields">
  105. <button type="button" data-action="badge-add-label">
  106. <i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.Item.Effect.Badge.Labels.Add"}}
  107. </button>
  108. </div>
  109. {{else}}
  110. <div class="add-badge">
  111. <select class="badge-type">
  112. <option value="counter">{{localize "PF2E.Item.Effect.Badge.Type.counter"}}</option>
  113. <option value="formula">{{localize "PF2E.Item.Effect.Badge.Type.formula"}}</option>
  114. </select>
  115. <button type="button" data-action="badge-add">
  116. <i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.Item.Effect.Badge.Add"}}
  117. </button>
  118. </div>
  119. {{/if}}
  120. </div>