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.

133 lines
7.0 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. <form data-tooltip-class="pf2e">
  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. <div class="search">
  19. <input type="search" spellcheck="false" placeholder="{{localize "PF2E.Actor.Creature.SpellPreparation.Search"}}" />
  20. </div>
  21. </header>
  22. <section class="sheet-content">
  23. <ol class="directory-list item-list spell-list">
  24. {{#unless entry.spellPrepList}}
  25. {{#if @root.options.editable}}
  26. <li class="spellbook-header spellbook-empty">
  27. <h4>{{localize "PF2E.SpellSlotEmpty"}}</h4>
  28. <a
  29. class="control"
  30. data-action="create-spell"
  31. data-tooltip="PF2E.CreateSpellTitle"
  32. data-type="spell"
  33. data-location="{{entry.id}}"
  34. ><i class="fa-solid fa-plus fa-fw"></i>{{localize "PF2E.AddSpellTitle"}}</a>
  35. <a
  36. class="control"
  37. data-action="browse-spells"
  38. data-tooltip="PF2E.OpenSpellBrowserTitle"
  39. data-type="spell"
  40. data-location="{{entry.id}}"
  41. ><i class="fa-solid fa-search fa-fw"></i>{{localize "PF2E.OpenSpellBrowserTitle"}}</a>
  42. </li>
  43. {{/if}}
  44. {{/unless}}
  45. {{#each entry.spellPrepList as |spells rank|}}
  46. {{#if spells}}
  47. <li class="spell-level-header">
  48. <div class="item-name flexrow">
  49. <h3>
  50. {{#if (gt rank 0)}}
  51. {{localize "PF2E.Item.Spell.Rank.Ordinal" rank=(ordinal rank)}}
  52. {{else}}
  53. {{localize "PF2E.Actor.Creature.Spellcasting.Cantrips"}}
  54. {{/if}}
  55. </h3>
  56. </div>
  57. <div class="spell-range">{{localize "PF2E.SpellRangeLabel"}}</div>
  58. <div class="spell-components">{{localize "PF2E.SpellComponentsLabel"}}</div>
  59. {{#if @root.options.editable}}
  60. <div class="item-controls">
  61. <a
  62. class="control"
  63. data-action="create-spell"
  64. data-tooltip="PF2E.CreateSpellTitle"
  65. data-type="spell"
  66. data-level="{{rank}}"
  67. data-location="{{entry.id}}"
  68. ><i class="fa-solid fa-plus fa-fw"></i></a>
  69. <a
  70. class="control"
  71. data-action="browse-spells"
  72. data-tooltip="PF2E.OpenSpellBrowserTitle"
  73. data-type="spell"
  74. data-level="{{rank}}"
  75. data-location="{{entry.id}}"
  76. ><i class="fa-solid fa-search fa-fw"></i></a>
  77. </div>
  78. {{/if}}
  79. </li>
  80. <!-- Unprepared Spells -->
  81. {{#each spells as |item i|}}
  82. <li class="item spell spellbook-item" data-item-id="{{item.spell.id}}" data-item-type="spell" draggable="true">
  83. <div class="item-name rollable">
  84. <div class="item-image">
  85. <img class="item-icon" data-action="spell-to-chat" src="{{spell.img}}" alt="{{spell.name}}" />
  86. </div>
  87. <h4>{{spell.name}}{{{actionGlyph spell.system.time.value}}}</h4>
  88. </div>
  89. <div class="spell-range">{{spell.system.range.value}}</div>
  90. <div class="spell-components tags">
  91. {{#if spell.system.components.focus}}
  92. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortF"}}</span>
  93. {{/if}}
  94. {{#if spell.system.components.material}}
  95. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortM"}}</span>
  96. {{/if}}
  97. {{#if spell.system.components.somatic}}
  98. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortS"}}</span>
  99. {{/if}}
  100. {{#if spell.system.components.verbal}}
  101. <span class="tag tag_transparent">{{localize "PF2E.SpellComponentShortV"}}</span>
  102. {{/if}}
  103. </div>
  104. {{#unless spell.isCantrip}}
  105. {{#if @root.entry.isFlexible}}
  106. <div class="spell-cast">
  107. <input
  108. type="checkbox"
  109. data-action="toggle-flexible-collection"
  110. {{checked signature}}
  111. data-tooltip="{{#if signature}}PF2E.SpellCollectionRemove{{else}}PF2E.SpellCollectionAdd{{/if}}"
  112. />
  113. </div>
  114. {{/if}}
  115. {{/unless}}
  116. {{#if @root.editable}}
  117. <div class="item-controls">
  118. <a class="control" data-action="edit-spell" data-tooltip="PF2E.EditItemTitle"><i class="fa-solid fa-edit fa-fw"></i></a>
  119. <a class="control" data-action="delete-spell" data-tooltip="PF2E.DeleteItemTitle"><i class="fa-solid fa-trash fa-fw"></i></a>
  120. </div>
  121. {{/if}}
  122. </li>
  123. {{/each}}
  124. {{/if}}
  125. {{/each}}
  126. </ol>
  127. </section>
  128. </form>