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.

109 lines
6.1 KiB

1 year ago
  1. <form>
  2. <header class="sheet-header">
  3. <h1>
  4. {{entry.name}}
  5. {{#with entry.flexibleAvailable}}
  6. <div class="item-controls flexible-available">
  7. {{localize "PF2E.SpellFlexibleAvailable" value=value max=max}}
  8. </div>
  9. {{/with}}
  10. </h1>
  11. <p class="hint">
  12. {{#if entry.isFlexible}}
  13. {{localize "PF2E.Actor.Creature.SpellPreparation.HintFlexible"}}
  14. {{else}}
  15. {{localize "PF2E.Actor.Creature.SpellPreparation.Hint"}}
  16. {{/if}}
  17. </p>
  18. </header>
  19. <section class="sheet-content">
  20. <ol class="directory-list item-list spell-list">
  21. {{#unless entry.spellPrepList}}
  22. {{#if @root.options.editable}}
  23. <li class="spellbook-header spellbook-empty">
  24. <h4>{{localize "PF2E.SpellSlotEmpty"}}</h4>
  25. <a class="item-control spell-create" title="{{localize "PF2E.CreateSpellTitle"}}" data-type="spell" data-location="{{entry.id}}">
  26. <i class="fas fa-plus fa-fw"></i>{{localize "PF2E.AddSpellTitle"}}
  27. </a>
  28. <a class="item-control spell-browse" title="{{localize "PF2E.OpenSpellBrowserTitle"}}" data-type="spell" data-location="{{entry.id}}">
  29. <i class="fas fa-search fa-fw"></i>{{localize "PF2E.OpenSpellBrowserTitle"}}
  30. </a>
  31. </li>
  32. {{/if}}
  33. {{/unless}}
  34. {{#each entry.spellPrepList as |spells level|}}
  35. {{#if spells}}
  36. <li class="spell-level-header">
  37. <div class="item-name flexrow">
  38. <h3>
  39. {{#if (gt level 0)}}
  40. {{localize "PF2E.SpellLevel" level=(ordinal level)}}
  41. {{else}}
  42. {{localize "PF2E.SpellCantripLabel"}}
  43. {{/if}}
  44. </h3>
  45. </div>
  46. <div class="spell-range">{{localize "PF2E.SpellRangeLabel"}}</div>
  47. <div class="spell-components">{{localize "PF2E.SpellComponentsLabel"}}</div>
  48. {{#if @root.options.editable}}
  49. <div class="item-controls">
  50. <a class="item-control spell-create" title="{{localize "PF2E.CreateSpellTitle"}}" data-type="spell"
  51. data-level="{{level}}" data-location="{{entry.id}}"><i class="fas fa-plus fa-fw"></i></a>
  52. <a class="item-control spell-browse" title="{{localize "PF2E.OpenSpellBrowserTitle"}}" data-type="spell"
  53. data-level="{{level}}" data-location="{{entry.id}}"><i class="fas fa-search fa-fw"></i></a>
  54. </div>
  55. {{/if}}
  56. </li>
  57. <!-- Unprepared Spells -->
  58. {{#each spells as |item i|}}
  59. <li class="item spell spellbook-item" data-item-id="{{item.spell.id}}" data-item-type="spell" draggable="true">
  60. <div class="item-name rollable">
  61. <div class="item-image">
  62. <img class="item-icon" src="{{spell.img}}" alt="{{spell.name}}">
  63. </div>
  64. <h4>{{spell.name}}{{{actionGlyph spell.system.time.value}}}</h4>
  65. </div>
  66. <div class="spell-range">{{spell.system.range.value}}</div>
  67. <div class="spell-components tags">
  68. {{#if spell.system.components.focus}}
  69. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortF"}}</span>
  70. {{/if}}
  71. {{#if spell.system.components.material}}
  72. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortM"}}</span>
  73. {{/if}}
  74. {{#if spell.system.components.somatic}}
  75. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortS"}}</span>
  76. {{/if}}
  77. {{#if spell.system.components.verbal}}
  78. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortV"}}</span>
  79. {{/if}}
  80. </div>
  81. {{#unless spell.isCantrip}}
  82. {{#if @root.entry.isFlexible}}
  83. <div class="spell-cast">
  84. <input
  85. type="checkbox"
  86. class="toggle-signature-spell"
  87. {{checked signature}}
  88. title="{{#if signature}}{{localize "PF2E.SpellCollectionRemove"}}{{else}}{{localize "PF2E.SpellCollectionAdd"}}{{/if}}"
  89. />
  90. </div>
  91. {{/if}}
  92. {{/unless}}
  93. {{#if @root.editable}}
  94. <div class="item-controls">
  95. <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fas fa-edit fa-fw"></i></a>
  96. <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fas fa-trash fa-fw"></i></a>
  97. </div>
  98. {{/if}}
  99. </li>
  100. {{/each}}
  101. {{/if}}
  102. {{/each}}
  103. </ol>
  104. </section>
  105. </form>