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.

82 lines
3.3 KiB

1 year ago
  1. <section class="effect-panel">
  2. {{#each afflictions as |affliction|}}
  3. {{> effect effect=affliction descriptions=../descriptions.afflictions}}
  4. {{/each}}
  5. {{#if (and afflictions.length conditions.length)}}<hr />{{/if}}
  6. {{#each conditions as |condition|}}
  7. {{> effect effect=condition descriptions=../descriptions.conditions}}
  8. {{/each}}
  9. {{#if (and conditions.length effects.length)}}<hr />{{/if}}
  10. {{#each effects as |effect|}}
  11. {{> effect effect=effect descriptions=../descriptions.effects}}
  12. {{/each}}
  13. </section>
  14. {{#*inline "effect"}}
  15. {{#if (or effect.isIdentified @root.user.isGM)}}
  16. <div class="effect-item" data-item-id="{{effect.id}}" data-badge-type="{{effect.badge.type}}">
  17. <div class="effect-info">
  18. <h1>
  19. {{effect.name}}
  20. <a data-action="send-to-chat" title="{{localize "PF2E.NPC.SendToChat"}}"><i class="fa-solid fa-comment-alt" ></i></a>
  21. </h1>
  22. {{#if (or (eq effect.type "effect") effect.breakdown)}}
  23. <div class="tags">
  24. {{#if (and effect.system.duration.sustained (not effect.system.expired))}}
  25. <div class="tag tag_secondary">{{localize "PF2E.EffectPanel.Sustained"}}</div>
  26. {{/if}}
  27. {{#unless effect.isIdentified}}
  28. <div class="tag tag_secondary">{{localize "PF2E.EffectPanel.Unidentified"}}</div>
  29. {{/unless}}
  30. {{#if effect.breakdown}}
  31. <div class="tag tag_secondary">{{effect.breakdown}}</div>
  32. {{/if}}
  33. {{#if effect.system.remaining}}
  34. <div class="tag tag_secondary">{{effect.system.remaining}}</div>
  35. {{/if}}
  36. </div>
  37. {{/if}}
  38. {{#if (eq effect.slug "persistent-damage")}}
  39. <a data-action="recover-persistent-damage">
  40. {{localize "PF2E.Item.Condition.PersistentDamage.AssistedRecovery"}}
  41. </a>
  42. {{/if}}
  43. <div class="instructions">
  44. {{#if (not effect.isLocked)}}
  45. {{#if (eq effect.badge.type "formula")}}
  46. <p>{{localize "PF2E.EffectPanel.RollDamageToolTip"}}</p>
  47. {{/if}}
  48. {{#if (eq effect.badge.type "counter")}}
  49. <p>{{localize "PF2E.EffectPanel.IncrementToolTip"}}</p>
  50. <p>{{localize "PF2E.EffectPanel.DecrementToolTip"}}</p>
  51. {{else}}
  52. <p>{{localize "PF2E.EffectPanel.RemoveToolTip"}}</p>
  53. {{/if}}
  54. {{/if}}
  55. </div>
  56. <div class="description">
  57. {{{lookup descriptions @index}}}
  58. </div>
  59. </div>
  60. <div class="icon{{#if effect.isAura}} aura{{/if}}{{#unless effect.isIdentified}} unidentified{{/unless}}" data-locked="{{#if effect.isLocked}}true{{/if}}" style="background-image: url({{effect.img}})">
  61. {{#if effect.isLocked}}
  62. <div class="linked"><i class="fa-solid fa-link"></i></div>
  63. {{/if}}
  64. {{#if effect.system.expired}}
  65. <span class="expired">{{localize "PF2E.EffectPanel.Expired"}}</span>
  66. {{else if effect.badge}}
  67. <div class="value-wrapper">
  68. <div class="value"><strong>{{coalesce effect.badge.label effect.badge.value}}</strong></div>
  69. </div>
  70. {{/if}}
  71. </div>
  72. </div>
  73. {{/if}}
  74. {{/inline}}