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.

122 lines
6.2 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 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-location="{{entry.id}}"
  40. ><i class="fa-solid fa-search fa-fw"></i>{{localize "PF2E.OpenSpellBrowserTitle"}}</a>
  41. </li>
  42. {{/if}}
  43. {{/unless}}
  44. {{#each entry.spellPrepList as |spells rank|}}
  45. {{#if spells}}
  46. <li class="spell-level-header">
  47. <div class="item-name flexrow">
  48. <h3>
  49. {{#if (gt rank 0)}}
  50. {{localize "PF2E.Item.Spell.Rank.Ordinal" rank=(ordinal rank)}}
  51. {{else}}
  52. {{localize "PF2E.Actor.Creature.Spellcasting.Cantrips"}}
  53. {{/if}}
  54. </h3>
  55. </div>
  56. <div class="spell-range">{{localize "PF2E.SpellRangeLabel"}}</div>
  57. {{#if @root.options.editable}}
  58. <div class="item-controls">
  59. <a
  60. class="control"
  61. data-action="create-spell"
  62. data-tooltip="PF2E.CreateSpellTitle"
  63. data-type="spell"
  64. data-level="{{rank}}"
  65. data-location="{{entry.id}}"
  66. ><i class="fa-solid fa-plus fa-fw"></i></a>
  67. <a
  68. class="control"
  69. data-action="browse-spells"
  70. data-tooltip="PF2E.OpenSpellBrowserTitle"
  71. data-category="{{#if (eq rank "0")}}cantrip{{else}}spell{{/if}}"
  72. data-rank="{{#if (eq rank "0")}}10{{else}}{{rank}}{{/if}}"
  73. data-location="{{entry.id}}"
  74. ><i class="fa-solid fa-search fa-fw"></i></a>
  75. </div>
  76. {{/if}}
  77. </li>
  78. <!-- Unprepared Spells -->
  79. {{#each spells as |item i|}}
  80. <li class="item spell spellbook-item" data-item-id="{{item.spell.id}}" data-item-type="spell" draggable="true">
  81. <div class="item-name rollable">
  82. <div class="item-image">
  83. <img class="item-icon" data-action="spell-to-chat" src="{{spell.img}}" alt="{{spell.name}}" />
  84. </div>
  85. <h4 class="name">
  86. <a data-action="toggle-summary">{{spell.name}}</a>
  87. {{{actionGlyph spell.system.time.value}}}
  88. </h4>
  89. </div>
  90. <div class="spell-range">{{spell.system.range.value}}</div>
  91. {{#unless spell.isCantrip}}
  92. {{#if @root.entry.isFlexible}}
  93. <div class="cast-spell">
  94. <input
  95. type="checkbox"
  96. data-action="toggle-flexible-collection"
  97. {{checked signature}}
  98. data-tooltip="{{#if signature}}PF2E.SpellCollectionRemove{{else}}PF2E.SpellCollectionAdd{{/if}}"
  99. />
  100. </div>
  101. {{/if}}
  102. {{/unless}}
  103. {{#if @root.editable}}
  104. <div class="item-controls">
  105. <a class="control" data-action="edit-spell" data-tooltip="PF2E.EditItemTitle"><i class="fa-solid fa-edit fa-fw"></i></a>
  106. <a class="control" data-action="delete-spell" data-tooltip="PF2E.DeleteItemTitle"><i class="fa-solid fa-trash fa-fw"></i></a>
  107. </div>
  108. {{/if}}
  109. <div class="item-summary" hidden="hidden"></div>
  110. </li>
  111. {{/each}}
  112. {{/if}}
  113. {{/each}}
  114. </ol>
  115. </section>
  116. </form>