All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.

57 lines
2.0 KiB

1 year ago
  1. <div class="dnd5e chat-card item-card" data-actor-id="{{actor._id}}" data-item-id="{{item._id}}"
  2. {{#if tokenId}}data-token-id="{{tokenId}}"{{/if}} {{#if isSpell}}data-spell-level="{{item.system.level}}"{{/if}}>
  3. <header class="card-header flexrow">
  4. <img src="{{item.img}}" title="{{item.name}}" width="36" height="36"/>
  5. <h3 class="item-name">{{item.name}}</h3>
  6. </header>
  7. <div class="card-content">
  8. {{{data.description.value}}}
  9. {{#if data.materials.value}}
  10. <p><strong>{{ localize "DND5E.RequiredMaterials" }}.</strong> {{data.materials.value}}</p>
  11. {{/if}}
  12. </div>
  13. <div class="card-buttons">
  14. {{#if hasAttack}}<button data-action="attack">{{ localize "DND5E.Attack" }}</button>{{/if}}
  15. {{#if hasDamage}}
  16. <button data-action="damage">
  17. {{#if isHealing}}{{ localize "DND5E.Healing" }}
  18. {{else}}{{localize "DND5E.Damage" }}{{/if}}
  19. </button>
  20. {{/if}}
  21. {{#if isVersatile}}
  22. <button data-action="versatile">{{ localize "DND5E.Versatile" }}</button>
  23. {{/if}}
  24. {{#if hasSave}}
  25. <button data-action="save" data-ability="{{data.save.ability}}">
  26. {{ localize "DND5E.SavingThrow" }} {{labels.save}}
  27. </button>
  28. {{/if}}
  29. {{#if data.formula}}
  30. <button data-action="formula">{{ localize "DND5E.OtherFormula"}}</button>
  31. {{/if}}
  32. {{#if hasAreaTarget}}
  33. <button data-action="placeTemplate">{{ localize "DND5E.PlaceTemplate" }}</button>
  34. {{/if}}
  35. {{#if isTool}}
  36. <button data-action="toolCheck" data-ability="{{data.ability.value}}">{{ localize "DND5E.Use" }} {{item.name}}</button>
  37. {{/if}}
  38. {{#if hasAbilityCheck}}
  39. <button data-action="abilityCheck" data-ability="{{data.ability}}">{{labels.abilityCheck}}</button>
  40. {{/if}}
  41. </div>
  42. <footer class="card-footer">
  43. {{#each data.properties}}
  44. <span>{{this}}</span>
  45. {{/each}}
  46. </footer>
  47. </div>