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.

95 lines
5.8 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. <div class="tab spellcasting spellbook-pane" data-group="primary" data-tab="spellcasting">
  2. <ol class="spellcastingEntry-list directory-list" data-foundry-list>
  3. {{#each spellcastingEntries as |entry eid|}}
  4. <li class="item item-container spellcasting-entry" data-item-id="{{entry.id}}" {{#if entry.hasCollection}}data-container-type="spellcastingEntry" data-container-id="{{entry.id}}"{{/if}}>
  5. <div class="action-header">
  6. {{#unless entry.isRitual}}
  7. <a class="drag-handle"><i class="fa-solid fa-bars"></i></a>
  8. {{/unless}}
  9. <h3 class="item-name">
  10. <input type="text" data-item-id="{{entry.id}}" data-item-property="name" class="item-name-input" value="{{entry.name}}"{{#if entry.isRitual}} readonly{{/if}} />
  11. </h3>
  12. {{#if @root.options.editable}}
  13. <div class="item-controls">
  14. {{#if entry.isFocusPool}}
  15. <a class="item-control spell-browse" data-tooltip="PF2E.OpenSpellBrowserTitle"
  16. data-type="focus"
  17. data-traditions="{{entry.tradition}}"
  18. data-location="{{entry.id}}"><i class="fa-solid fa-fw fa-search"></i></a>
  19. {{/if}}
  20. {{#if (or entry.isPrepared entry.isSpontaneous entry.isInnate)}}
  21. <a class="skill-name slotless-level-toggle" data-tooltip="PF2E.ToggleSlotlessSpellLevelsTitle">
  22. <i class="{{#if entry.showSlotlessLevels}}fa-solid{{else}}fa-regular{{/if}} fa-fw fa-list-alt"></i>
  23. </a>
  24. {{/if}}
  25. {{#unless entry.isRitual}}
  26. <a class="item-control" data-action="spellcasting-edit" data-tooltip="PF2E.EditItemTitle"><i class="fa-solid fa-fw fa-edit"></i></a>
  27. <a class="item-control" data-action="spellcasting-remove" data-tooltip="PF2E.RemoveSpellcastingEntryTitle"><i class="fa-solid fa-fw fa-trash"></i></a>
  28. {{/unless}}
  29. </div>
  30. {{/if}}
  31. </div>
  32. {{#unless entry.isRitual}}
  33. <div class="spell-ability-data">
  34. <div class="statistic-values">
  35. <section class="skill-data" data-tooltip="{{entry.statistic.dc.breakdown}}">
  36. <span class="skill-score spellcasting">{{entry.statistic.dc.value}}</span>
  37. <h4 class="skill-name spellcasting">{{localize "PF2E.SpellSaveLabel"}}</h4>
  38. </section>
  39. <section>
  40. (
  41. <div class="skill-data rollable" data-tooltip="{{entry.statistic.check.breakdown}}" data-action="spell-attack">
  42. {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
  43. <span class="skill-score">{{numberFormat entry.statistic.check.mod decimals=0 sign=true}}</span>
  44. </div>
  45. )
  46. </section>
  47. </div>
  48. {{#if entry.isPrepared}}
  49. <button type="button" class="skill-name prepared-toggle blue-button">
  50. <i class="fa-solid fa-book"></i>{{localize "PF2E.ToggleSpellVisibilityTitle"}}
  51. </button>
  52. {{/if}}
  53. {{#if entry.isFocusPool}}
  54. <section class="focus-pool">
  55. <span class="pips">
  56. {{#times @root.data.resources.focus.max}}
  57. <i class="{{#if (gt @root.data.resources.focus.value this)}}fa-solid fa-dot-circle{{else}}far fa-circle{{/if}}"></i>
  58. {{/times}}
  59. </span>
  60. <h4>{{localize "PF2E.Focus.Pool"}}</h4>
  61. </section>
  62. {{/if}}
  63. <section class="spell-ability">
  64. <span class="spell-tradition">{{localize entry.statistic.label}}</span>
  65. <div class="spellcasting-prof button-group">
  66. <select class="skill-proficiency pf-rank adjust-item-stat-select" data-item-property="system.proficiency.value" data-rank="{{entry.statistic.rank}}" data-dtype="Number">
  67. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" excludeUntrained=true proflevel=entry.statistic.rank}}
  68. </select>
  69. </div>
  70. </section>
  71. </div>
  72. {{/unless}}
  73. {{#if entry.hasCollection}}
  74. {{> "systems/pf2e/templates/actors/spell-collection.hbs" entry=entry}}
  75. {{/if}}
  76. </li>
  77. {{/each}}
  78. {{#if @root.options.editable}}
  79. <li class="item spellbook-empty">
  80. <div class="item-controls pf-add-item-row">
  81. <a class="item-control blue-button" data-action="spellcasting-create" data-tooltip="PF2E.CreateSpellTitle" data-type="spell" data-level="{{lvl}}">
  82. <i class="fa-solid fa-plus"></i>{{localize "PF2E.AddSpellcastingEntryTitle"}}
  83. </a>
  84. </div>
  85. </li>
  86. {{/if}}
  87. </ol>
  88. </div>