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.

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