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.

37 lines
2.3 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. {{#each effects as |effect|}}
  2. {{#if (or effect.isIdentified @root.user.isGM)}}
  3. <li class="item effects expandable{{#unless effect.isIdentified}} unidentified{{/unless}}" data-item-type="{{effect.type}}" data-item-id="{{effect.id}}">
  4. <div class="item-name rollable">
  5. <div class="item-image framed">
  6. <img class="item-icon" src="{{effect.img}}" alt="{{effect.name}}" />
  7. <i class="fa-solid fa-message"></i>
  8. </div>
  9. <h4 class="action-name">
  10. {{effect.name}}
  11. {{#if (and (eq effect.type "effect") (eq effect.badge.type "counter"))}}
  12. ({{coalesce effect.badge.label effect.badge.value}})
  13. {{/if}}
  14. {{#if (eq effect.type "condition")}}{{#unless effect.active}}<span> (Inactive)</span>{{/unless}}{{/if}}
  15. </h4>
  16. </div>
  17. <div class="item-controls">
  18. {{#if (and @root.options.editable (not effect.readonly))}}
  19. {{#if (eq effect.badge.type "counter")}}
  20. <a class="item-control increment" title="{{localize "PF2E.IncrementEffectTitle"}}"><i class="fa-solid fa-fw fa-plus"></i></a>
  21. <a class="item-control decrement" title="{{localize "PF2E.DecrementEffectTitle"}}"><i class="fa-solid fa-fw fa-minus"></i></a>
  22. {{/if}}
  23. {{#if (and (eq effect.type "effect") @root.user.isGM)}}
  24. <a class="item-control" data-action="effect-toggle-unidentified" title="{{localize "PF2E.ToggleEffectUnidentified"}}"><i class="fa-solid fa-fw fa-eye"></i></a>
  25. {{/if}}
  26. {{#if (eq effect.type "effect")}}
  27. <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
  28. {{/if}}
  29. <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fa-solid fa-fw fa-trash"></i></a>
  30. {{else if effect.readonly}}
  31. <a class="item-control info-only" title="{{effect.breakdown}}"><i class="fa-solid fa-fw fa-info-circle"></i></a>
  32. {{/if}}
  33. </div>
  34. </li>
  35. {{/if}}
  36. {{/each}}