{{#each afflictions as |affliction|}} {{> effect effect=affliction descriptions=../descriptions.afflictions}} {{/each}} {{#if (and afflictions.length conditions.length)}}
{{/if}} {{#each conditions as |condition|}} {{> effect effect=condition descriptions=../descriptions.conditions}} {{/each}} {{#if (and conditions.length effects.length)}}
{{/if}} {{#each effects as |effect|}} {{> effect effect=effect descriptions=../descriptions.effects}} {{/each}}
{{#*inline "effect"}} {{#if (or effect.isIdentified @root.user.isGM)}}

{{effect.name}} {{#if (or (ne effect.type "condition") (eq effect.slug "persistent-damage"))}} {{/if}}

{{#if (or (eq effect.type "effect") effect.breakdown)}}
{{#if (and effect.system.duration.sustained (not effect.system.expired))}}
{{localize "PF2E.EffectPanel.Sustained"}}
{{/if}} {{#unless effect.isIdentified}}
{{localize "PF2E.EffectPanel.Unidentified"}}
{{/unless}} {{#if effect.breakdown}}
{{effect.breakdown}}
{{/if}} {{#if effect.system.remaining}}
{{effect.system.remaining}}
{{/if}}
{{/if}} {{#if (eq effect.slug "persistent-damage")}} {{localize "PF2E.Item.Condition.PersistentDamage.AssistedRecovery"}} {{/if}}
{{#if (nor effect.isLocked effect.inMemoryOnly)}} {{#if (eq effect.badge.type "formula")}}
{{localize "PF2E.EffectPanel.RollDamageToolTip"}}
{{/if}} {{#if (eq effect.badge.type "counter")}}
{{localize "PF2E.EffectPanel.IncrementToolTip"}}
{{localize "PF2E.EffectPanel.DecrementToolTip"}}
{{else}}
{{localize "PF2E.EffectPanel.RemoveToolTip"}}
{{/if}} {{/if}}
{{{lookup descriptions @index}}}
{{#if effect.isLocked}}
{{/if}} {{#if effect.system.expired}} {{localize "PF2E.EffectPanel.Expired"}} {{else if effect.badge}}
{{coalesce effect.badge.label effect.badge.value}}
{{/if}}
{{/if}} {{/inline}}