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.

83 lines
4.4 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. <div class="pf2e chat-card item-card"
  2. data-spell-lvl="{{data.castLevel}}"
  3. data-cast-level="{{data.castLevel}}"
  4. data-actor-id="{{actor.id}}"
  5. data-item-id="{{item.id}}"
  6. {{#if tokenId}}data-token-id="{{tokenId}}"{{/if}}
  7. >
  8. <header class="card-header flexrow">
  9. <img src="{{item.img}}" alt="{{item.name}}" />
  10. <h3>{{item.name}}{{#if item.actionGlyph}} <span class="action-glyph">{{item.actionGlyph}}</span>{{/if}}</h3>
  11. <h4 class="rank">{{data.rankLabel}}</h4>
  12. </header>
  13. <section class="item-properties tags" data-tooltip-class="pf2e">
  14. {{#each data.traits as |trait|}}
  15. <span class="tag" data-trait="{{trait.name}}" data-tooltip="{{trait.description}}">{{trait.label}}</span>
  16. {{/each}}
  17. </section>
  18. <section class="card-content">
  19. {{{data.description.value}}}
  20. {{#if data.materials.value}}
  21. <p><strong>{{localize "PF2E.SpellRequirementsLabel"}}</strong> {{data.materials.value}}</p>
  22. {{/if}}
  23. </section>
  24. <section class="card-buttons">
  25. {{#each data.variants as |variant|}}
  26. <button type="button" data-variant="{{json variant}}" data-action="spell-variant" data-visibility="owner" data-overlay-ids="{{variant.overlayIds}}">
  27. <span>{{variant.name}}</span>
  28. {{#if variant.actionGlyph}}<span class="action-glyph">{{variant.actionGlyph}}</span>{{/if}}
  29. </button>
  30. {{else}}
  31. {{#if data.isSave}}
  32. <button type="button" data-action="spell-save" data-save="{{data.save.type}}" data-dc="{{data.save.value}}" data-owner-title="{{data.save.breakdown}}">
  33. {{{data.save.label}}}
  34. </button>
  35. {{/if}}
  36. {{#if (or data.check data.hasDamage data.counteraction data.area.type)}}
  37. <section class="owner-buttons">
  38. {{#if data.check}}
  39. <div class="spell-attack-buttons">
  40. <button type="button" data-action="spell-attack" data-visibility="owner">{{localize "PF2E.AttackLabel"}}</button>
  41. <button type="button" data-action="spell-attack-2" data-visibility="owner">{{localize "PF2E.MAPAbbreviationLabel" penalty=data.check.map1}}</button>
  42. <button type="button" data-action="spell-attack-3" data-visibility="owner">{{localize "PF2E.MAPAbbreviationLabel" penalty=data.check.map2}}</button>
  43. </div>
  44. {{/if}}
  45. {{#if data.hasDamage}}
  46. <div class="spell-button">
  47. <button type="button" data-action="spell-damage" data-visibility="owner">{{localize data.damageLabel}}</button>
  48. </div>
  49. {{/if}}
  50. {{#if data.counteraction}}
  51. <div class="spell-button">
  52. <button type="button" data-action="spell-counteract" data-visibility="owner">{{localize "PF2E.Item.Spell.Counteract.Label"}}</button>
  53. </div>
  54. {{/if}}
  55. {{#if (and data.area (not data.isAura))}}
  56. <div class="spell-button">
  57. <button type="button" data-action="spell-template" data-visibility="owner">
  58. {{localize "PF2E.Item.Spell.MeasuredTemplate.Place" area=data.area.label}}
  59. </button>
  60. <button class="small hidden" type="button" data-action="spell-template-clear" data-visibility="owner" data-tooltip="{{localize "PF2E.Item.Spell.MeasuredTemplate.Clear"}}">
  61. <i class="fa-solid fa-fw fa-trash"></i>
  62. </button>
  63. </div>
  64. {{/if}}
  65. {{#if (gt item.appliedOverlays.size 0)}}
  66. <button type="button" data-action="spell-variant" data-visibility="owner" data-original-id="{{item.original.id}}">{{localize "PF2E.Item.Spell.Variants.SelectOtherVariantLabel"}}</button>
  67. {{/if}}
  68. </section>
  69. {{/if}}
  70. {{/each}}
  71. </section>
  72. {{#if data.properties}}
  73. <footer class="card-footer">
  74. {{#each data.properties as |property|}}
  75. <span>{{localize property}}</span>
  76. {{/each}}
  77. </footer>
  78. {{/if}}
  79. </div>