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.

92 lines
4.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. <h3>Developers / Testing Only</h3>
  2. <section>
  3. {{#each activations}}
  4. <div class="activation form-list" data-activation-id="{{id}}">
  5. <header>
  6. <strong>{{localize "PF2E.Item.Activation.Label"}}</strong>
  7. {{#unless action.components.cast}}
  8. {{{actionGlyph action.actionCost}}}
  9. {{/unless}}
  10. {{action.componentsLabel}}
  11. <div class="item-controls">
  12. <a data-action="activation-delete"><i class="fas fa-trash"></i></a>
  13. </div>
  14. </header>
  15. <div class="form-fields spell-components">
  16. <label>
  17. <input type="checkbox" name="{{base}}.components.command" {{checked action.components.command}} data-dtype="Boolean"/>
  18. <span>{{localize "PF2E.Item.Activation.CommandSheetLabel"}}</span>
  19. </label>
  20. <label>
  21. <input type="checkbox" name="{{base}}.components.envision" {{checked action.components.envision}} data-dtype="Boolean"/>
  22. <span>{{localize "PF2E.Item.Activation.EnvisionSheetLabel"}}</span>
  23. </label>
  24. <label>
  25. <input type="checkbox" name="{{base}}.components.interact" {{checked action.components.interact}} data-dtype="Boolean"/>
  26. <span>{{localize "PF2E.Item.Activation.Interact"}}</span>
  27. </label>
  28. <label>
  29. <input type="checkbox" name="{{base}}.components.cast" {{checked action.components.cast}} data-dtype="Boolean"/>
  30. <span>{{localize "PF2E.Item.Activation.Cast"}}</span>
  31. </label>
  32. </div>
  33. <div class="form-fields">
  34. <div class="form-fields activation-time">
  35. <select name="{{base}}.actionCost.type" data-dtype="String">
  36. {{#select action.actionCost.type}}
  37. {{#each @root.actionTypes as |name type|}}
  38. <option value="{{type}}">{{localize name}}</option>
  39. {{/each}}
  40. {{/select}}
  41. </select>
  42. {{#if (eq action.actionCost.type "action")}}
  43. <select name="{{base}}.actionCost.value" data-dtype="Number">
  44. {{#select action.actionCost.value}}
  45. {{#each @root.actionsNumber as |name type|}}
  46. <option value="{{type}}">{{localize name}}</option>
  47. {{/each}}
  48. {{/select}}
  49. </select>
  50. {{/if}}
  51. </div>
  52. {{#if action.frequency}}
  53. <div class="form-fields frequency">
  54. <input type="number" name="{{base}}.frequency.max" value="{{action.frequency.max}}" data-dtype="Number"/>
  55. <span>{{localize "PF2E.Frequency.per"}}</span>
  56. <select name="{{base}}.frequency.per" data-dtype="String">
  57. {{#select action.frequency.per}}
  58. {{#each @root.frequencies as |name type|}}
  59. <option value="{{type}}">{{localize name}}</option>
  60. {{/each}}
  61. {{/select}}
  62. </select>
  63. <a data-action="activation-frequency-delete"><i class="fas fa-times"></i></a>
  64. </div>
  65. {{else}}
  66. <span class="frequency empty">
  67. {{localize "PF2E.Frequency.AtWill"}}
  68. <a data-action="activation-frequency-add">({{localize "PF2E.AddShortLabel"}})</a>
  69. </span>
  70. {{/if}}
  71. </div>
  72. <div class="tags">
  73. <label>
  74. {{localize "PF2E.TraitsLabel"}}
  75. <a class="tag-selector" data-tag-selector="basic" data-config-types="actionTraits" data-property="{{base}}.traits"><i class="fas fa-edit"></i></a>
  76. </label>
  77. {{#each traits as |trait|}}
  78. <div class="tag" data-trait="{{trait.value}}">{{localize trait.label}}</div>
  79. {{/each}}
  80. </div>
  81. {{editor description target=(concat base ".description.value") button=true owner=@root.owner editable=@root.editable}}
  82. <input type="hidden" name="{{base}}.description.value" value="{{action.description.value}}"/>
  83. </div>
  84. {{/each}}
  85. <button type="button" data-action="activation-add"><i class="fas fa-plus"></i>{{localize "PF2E.Item.Activation.Add"}}</button>
  86. </section>