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.

80 lines
5.1 KiB

1 year ago
  1. <div class="tab spells" data-group="primary" data-tab="spells">
  2. <ol class="entries-list">
  3. {{#each spellcastingEntries as |entry eid|}}
  4. <li class="spellcasting-entry item item-container" data-item-id="{{entry.id}}" {{#if entry.hasCollection}}data-container-type="spellcastingEntry" data-container-id="{{entry.id}}"{{/if}}>
  5. <div class="header">
  6. {{#unless entry.isRitual}}
  7. <a class="drag-handle"><i class="fa-solid fa-fw fa-bars"></i></a>
  8. {{/unless}}
  9. {{#if entry.isPrepared}}
  10. <a class="skill-name prepared-toggle" title="{{localize "PF2E.ToggleSpellVisibilityTitle"}}"><i class="fa-solid fa-fw fa-book"></i></a>
  11. {{/if}}
  12. <h4 class="name">
  13. <input type="text" data-item-id="{{entry.id}}" data-item-property="name" value="{{entry.name}}"{{#if entry.isRitual}} readonly{{/if}} />
  14. </h4>
  15. {{#unless entry.isRitual}}
  16. <div class="spellDC inline-field">
  17. <label title="{{entry.statistic.dc.breakdown}}">{{localize "PF2E.NPC.Spells.DCLabel"}}</label>
  18. <input type="number"
  19. class="dc-input modifier adjustable{{#if entry.adjustedHigher.dc}} adjusted-higher{{/if}}{{#if entry.adjustedLower.dc}} adjusted-lower{{/if}}"
  20. data-display-value="{{entry.statistic.dc.value}}"
  21. data-base-property="data.items.{{eid}}.system.spelldc.dc"
  22. value="{{entry.statistic.dc.value}}"
  23. placeholder="0"
  24. />
  25. </div>
  26. <div class="spellAttack inline-field">
  27. <label class="rollable" title="{{entry.statistic.check.breakdown}}">{{localize "PF2E.NPC.Spells.AttackLabel"}}</label>
  28. <input type="number"
  29. class="attack-input modifier adjustable{{#if entry.adjustedHigher.mod}} adjusted-higher{{/if}}{{#if entry.adjustedLower.mod}} adjusted-lower{{/if}}"
  30. data-display-value="{{entry.statistic.check.mod}}"
  31. data-base-property="data.items.{{eid}}.system.spelldc.value"
  32. value="{{numberFormat entry.statistic.check.mod decimals=0}}"
  33. placeholder="0"
  34. />
  35. </div>
  36. <div class="ability-score inline-field">
  37. <select data-base-property="data.items.{{eid}}.system.ability.value">
  38. {{#select entry.ability}}
  39. <option value="str">{{localize "PF2E.AbilityId.str"}}</option>
  40. <option value="dex">{{localize "PF2E.AbilityId.dex"}}</option>
  41. <option value="con">{{localize "PF2E.AbilityId.con"}}</option>
  42. <option value="int">{{localize "PF2E.AbilityId.int"}}</option>
  43. <option value="wis">{{localize "PF2E.AbilityId.wis"}}</option>
  44. <option value="cha">{{localize "PF2E.AbilityId.cha"}}</option>
  45. {{/select}}
  46. </select>
  47. </div>
  48. {{/unless}}
  49. {{#if ../options.editable}}
  50. <div class="item-controls">
  51. {{#if (or entry.isPrepared entry.isSpontaneous entry.isInnate)}}
  52. <a class="skill-name slotless-level-toggle" title="{{localize "PF2E.ToggleSlotlessSpellLevelsTitle"}}">
  53. <i class="{{#if entry.showSlotlessLevels}}fa-solid{{else}}fa-regular{{/if}} fa-fw fa-list-alt"></i>
  54. </a>
  55. {{/if}}
  56. {{#unless entry.isRitual}}
  57. <a class="item-control" data-action="spellcasting-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
  58. <a class="item-control" data-action="spellcasting-remove" title="{{localize "PF2E.RemoveSpellcastingEntryTitle"}}" data-type="{{eid}}"><i class="fa-solid fa-fw fa-trash"></i></a>
  59. {{/unless}}
  60. </div>
  61. {{/if}}
  62. </div>
  63. {{#if entry.hasCollection}}
  64. <div class="body">
  65. {{> "systems/pf2e/templates/actors/spellcasting-spell-list.hbs" entry=entry}}
  66. </div>
  67. {{/if}}
  68. </li>
  69. {{/each}}
  70. </ol>
  71. {{#if options.editable}}
  72. <div class="footer">
  73. <button type="button" class="spellcasting-create" data-action="spellcasting-create"><i class="fas fa-plus"></i> {{localize "PF2E.AddSpellcastingEntryTitle"}}</button>
  74. </div>
  75. {{/if}}
  76. </div>