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.

86 lines
3.7 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. <article id="effects-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. </article>
  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" data-tooltip="{{localize "PF2E.NPC.SendToChat"}}"><i class="fa-solid fa-fw fa-comment-alt" ></i></a>
  21. {{#if (or (ne effect.type "condition") (eq effect.slug "persistent-damage"))}}
  22. <a data-action="edit" data-tooltip="{{localize "PF2E.EditItemTitle"}}"><i class="fa-solid fa-fw fa-pencil" ></i></a>
  23. {{/if}}
  24. </h1>
  25. {{#if (or (eq effect.type "effect") effect.breakdown)}}
  26. <div class="tags">
  27. {{#if (and effect.system.duration.sustained (not effect.system.expired))}}
  28. <div class="tag tag_secondary">{{localize "PF2E.EffectPanel.Sustained"}}</div>
  29. {{/if}}
  30. {{#unless effect.isIdentified}}
  31. <div class="tag tag_secondary">{{localize "PF2E.EffectPanel.Unidentified"}}</div>
  32. {{/unless}}
  33. {{#if effect.breakdown}}
  34. <div class="tag tag_secondary">{{effect.breakdown}}</div>
  35. {{/if}}
  36. {{#if effect.system.remaining}}
  37. <div class="tag tag_secondary">{{effect.system.remaining}}</div>
  38. {{/if}}
  39. </div>
  40. {{/if}}
  41. {{#if (eq effect.slug "persistent-damage")}}
  42. <a class="inline-check" data-action="recover-persistent-damage">
  43. <i class="fa-solid fa-dice-d20 icon"></i>
  44. <span class="label">{{localize "PF2E.Item.Condition.PersistentDamage.AssistedRecovery"}}</span>
  45. </a>
  46. {{/if}}
  47. <div class="instructions">
  48. {{#if (nor effect.isLocked effect.inMemoryOnly)}}
  49. {{#if (eq effect.badge.type "formula")}}
  50. <div>{{localize "PF2E.EffectPanel.RollDamageToolTip"}}</div>
  51. {{/if}}
  52. {{#if (eq effect.badge.type "counter")}}
  53. <div>{{localize "PF2E.EffectPanel.IncrementToolTip"}}</div>
  54. <div>{{localize "PF2E.EffectPanel.DecrementToolTip"}}</div>
  55. {{else}}
  56. <div>{{localize "PF2E.EffectPanel.RemoveToolTip"}}</div>
  57. {{/if}}
  58. {{/if}}
  59. </div>
  60. <div class="description">
  61. {{{lookup descriptions @index}}}
  62. </div>
  63. </div>
  64. <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}})">
  65. {{#if effect.isLocked}}
  66. <div class="linked"><i class="fa-solid fa-link"></i></div>
  67. {{/if}}
  68. {{#if effect.system.expired}}
  69. <span class="expired">{{localize "PF2E.EffectPanel.Expired"}}</span>
  70. {{else if effect.badge}}
  71. <div class="value-wrapper">
  72. <div class="value"><strong>{{coalesce effect.badge.label effect.badge.value}}</strong></div>
  73. </div>
  74. {{/if}}
  75. </div>
  76. </div>
  77. {{/if}}
  78. {{/inline}}