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.

99 lines
4.7 KiB

1 year ago
  1. <form>
  2. <div class="dialog-content" autocomplete="off">
  3. <div class="form-group">
  4. <label>{{localize "PF2E.SpellcastingTypeLabel"}}</label>
  5. <select name="system.prepared.value" {{disabled object.id}}>
  6. {{#select data.prepared.value}}
  7. {{#each spellcastingTypes as |label mode|}}
  8. <option value="{{mode}}">{{localize label}}</option>
  9. {{/each}}
  10. {{/select}}
  11. </select>
  12. </div>
  13. {{#if object.isPrepared}}
  14. <div class="form-group">
  15. <label>{{localize "PF2E.SpellFlexibleLabel"}}</label>
  16. <input name="system.prepared.flexible" type="checkbox" {{checked data.prepared.flexible}}/>
  17. </div>
  18. {{/if}}
  19. {{#if (eq data.prepared.value "items")}}
  20. <div class="form-group">
  21. <label>{{localize "PF2E.Actor.Creature.Spellcasting.MagicItemTypesLabel"}}</label>
  22. <select name="system.prepared.validItems">
  23. {{#select data.prepared.validItems}}
  24. <option>{{localize "PF2E.Actor.Creature.Spellcasting.ValidItemTypes.All"}}</option>
  25. <option value="scroll">{{localize "PF2E.Actor.Creature.Spellcasting.ValidItemTypes.Scroll"}}</option>
  26. {{/select}}
  27. </select>
  28. </div>
  29. {{/if}}
  30. <hr/>
  31. {{#unless object.isRitual}}
  32. <div class="form-group">
  33. <label>{{localize "PF2E.MagicTraditionLabel"}}</label>
  34. <select name="system.tradition.value">
  35. {{#select data.tradition.value}}
  36. {{#if (eq data.prepared.value "items")}}
  37. <option value="">{{localize "PF2E.MagicTraditionUseSpellLabel"}}</option>
  38. {{/if}}
  39. {{#each magicTraditions as |label mode|}}
  40. <option value="{{mode}}">{{localize label}}</option>
  41. {{/each}}
  42. {{/select}}
  43. </select>
  44. </div>
  45. {{#if (eq actor.type "character")}}
  46. <div class="form-group">
  47. <label>{{localize "PF2E.ProficiencyLabel"}}</label>
  48. <select name="system.proficiency.slug">
  49. {{#select data.proficiency.slug}}
  50. {{#if data.tradition.value}}
  51. <option value="">
  52. {{localize "PF2E.Actor.Creature.Spellcasting.TraditionSpellcasting" tradition=(localize (lookup @root.magicTraditions data.tradition.value))}}
  53. </option>
  54. {{/if}}
  55. {{#each classDCs as |classDC|}}
  56. <option value="{{classDC.slug}}">{{localize "PF2E.Actor.Character.ClassDC.LabelSpecific" class=classDC.label}}</option>
  57. {{/each}}
  58. {{/select}}
  59. </select>
  60. </div>
  61. {{/if}}
  62. {{#if hasAbility}}
  63. <div class="form-group">
  64. <label>{{localize "PF2E.SpellAbilityLabel"}}</label>
  65. <select name="system.ability.value">
  66. {{#select data.ability.value}}
  67. {{#each abilities as |label key|}}
  68. <option value="{{key}}">{{localize label}}</option>
  69. {{/each}}
  70. {{/select}}
  71. </select>
  72. </div>
  73. {{/if}}
  74. {{#if (eq actor.type "npc")}}
  75. <div class="form-group">
  76. <label>{{localize "PF2E.SpellcastingSettings.AutoHeightenLabel"}}</label>
  77. <select name="system.autoHeightenLevel.value" data-dtype="Number">
  78. {{#select data.autoHeightenLevel.value}}
  79. <option>{{localize "PF2E.SpellcastingSettings.AutoHeightenDefault"}}</option>
  80. {{#times 10}}
  81. <option value="{{add this 1}}">{{localize "PF2E.SpellLevel" level=(ordinal (add this 1))}}</option>
  82. {{/times}}
  83. {{/select}}
  84. </select>
  85. </div>
  86. {{/if}}
  87. {{/unless}}
  88. </div>
  89. <div class="dialog-buttons">
  90. <button type="submit" class="dialog-button finish default">
  91. {{#if object.id}}
  92. {{localize "PF2E.UpdateLabelUniversal"}}
  93. {{else}}
  94. {{localize "PF2E.CreateLabelUniversal"}}
  95. {{/if}}
  96. </button>
  97. </div>
  98. <form>