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.

80 lines
4.1 KiB

1 year ago
  1. <div class="inventory-details">
  2. <div class="form-group">
  3. <label for="{{#if (eq data.duration.unit "unlimited")}}effect-duration-unit{{else}}effect-duration-value{{/if}}">{{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="effect-duration-sustained">{{localize "PF2E.Item.Effect.Sustained"}}</label>
  8. <div class="form-fields">
  9. <input 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="effect-duration-expiry">{{localize "PF2E.Item.Effect.Expiry.ExpiresOn"}}</label>
  15. <div class="form-fields">
  16. <select 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="data.tokenIcon.show">{{localize "PF2E.Item.Effect.ShowTokenIcon"}}</label>
  27. <div class="form-fields">
  28. <input 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="data.unidentified">{{localize "PF2E.Item.Effect.Unidentified"}}</label>
  34. <div class="form-fields">
  35. <input type="checkbox" name="system.unidentified" {{checked data.unidentified}} />
  36. </div>
  37. </div>
  38. {{/if}}
  39. <hr/>
  40. {{#if data.badge.labels}}
  41. {{#each data.badge.labels as |label idx|}}
  42. <div class="badge-label-row details-container-flex-row">
  43. <label>
  44. <input type="radio" name="system.badge.value" {{checked (eq @root.data.badge.value (add idx 1))}} value="{{add idx 1}}" data-dtype="Number" tabindex="-1"/>
  45. <span class="badge-value">{{add idx 1}}</span>
  46. </label>
  47. <input type="text" name="system.badge.labels.{{idx}}" value="{{label}}" placeholder="{{localize "PF2E.Item.Effect.LabelPlaceholder"}}"/>
  48. {{#if @root.options.editable}}
  49. <div class="item-controls">
  50. <a data-action="badge-delete-label" data-idx="{{idx}}"><i class="fas fa-fw fa-times"></i></a>
  51. </div>
  52. {{/if}}
  53. </div>
  54. {{/each}}
  55. <div class="form-fields">
  56. <button type="button" data-action="badge-add-label"><i class="fas fa-plus"></i> {{localize "PF2E.Item.Effect.AddLabel"}}</button>
  57. </div>
  58. {{else if data.badge}}
  59. <div class="form-group">
  60. <label>{{badgeType}}</label>
  61. <div class="form-fields">
  62. <input type={{#if (eq data.badge.type "counter")}}"number"{{else}}"text"{{/if}} name="system.badge.value" value="{{data.badge.value}}"/>
  63. {{#if @root.options.editable}}
  64. <div class="item-controls">
  65. <a data-action="badge-delete"><i class="fas fa-fw fa-times"></i></a>
  66. </div>
  67. {{/if}}
  68. </div>
  69. </div>
  70. {{else}}
  71. <div class="add-badge">
  72. <select class="badge-type">
  73. <option value="counter">{{localize "PF2E.Item.Effect.BadgeType.counter"}}</option>
  74. <option value="labels">{{localize "PF2E.Item.Effect.ExtraSelections.Labels"}}</option>
  75. <option value="formula">{{localize "PF2E.Item.Effect.BadgeType.formula"}}</option>
  76. </select>
  77. <button type="button" data-action="badge-add"><i class="fas fa-plus"></i> {{localize "PF2E.Item.Effect.AddBadge"}}</button>
  78. </div>
  79. {{/if}}
  80. </div>