{{> (resolvePath "templates/actors/hazard/partials/header.hbs")}}
{{> (resolvePath "templates/actors/hazard/partials/sidebar.hbs")}} {{!-- BODY --}}
{{#if toggles.actions}}
{{> (resolvePath "templates/actors/partials/toggles.hbs") toggles=toggles.actions}}
{{/if}} {{#if (or hasStealth editing)}}

{{localize "PF2E.Check.DC.Specific.stealth"}}

{{#if editing}} {{/if}}
{{editor enrichedContent.stealthDetails target="system.attributes.stealth.details" button=true owner=owner editable=editable engine="prosemirror"}}
{{/if}} {{#if (or hasDescription editing)}}

{{localize "PF2E.HazardDescriptionLabel"}}

{{#if editing}} {{/if}}
{{editor enrichedContent.description target="system.details.description" button=true owner=owner editable=editable engine="prosemirror"}}
{{/if}} {{#if (or hasDisable editing)}}

{{localize "PF2E.HazardDisableLabel"}}

{{#if editing}} {{/if}}
{{editor enrichedContent.disable target="system.details.disable" button=true owner=owner editable=editable engine="prosemirror"}}
{{/if}} {{#if (or hasRoutineDetails editing)}}

{{localize "PF2E.HazardRoutineLabel"}}

{{#if editing}} {{/if}}
{{editor enrichedContent.routine target="system.details.routine" button=true owner=owner editable=editable engine="prosemirror"}}
{{/if}} {{#if (or hasResetDetails editing)}}

{{localize "PF2E.HazardResetLabel"}}

{{#if editing}} {{/if}}
{{editor enrichedContent.reset target="system.details.reset" button=true owner=owner editable=editable engine="prosemirror"}}
{{/if}}
{{#each actions as |section sid|}} {{#if section}}
    {{!-- Actions --}} {{#each section as |action|}}
  1. {{action.name}} {{{actionGlyph action.actionCost}}}

    {{#if @root.editing}} {{/if}}
  2. {{/each}}
{{/if}} {{/each}} {{#if attacks}} {{!-- Attacks --}}
    {{#each attacks as |action index|}}
  1. {{localize action.attackRollType}} {{action.glyph}} {{action.label}} {{#each action.traitsAndTags as |trait|}}
  2. {{trait.label}}
  3. {{/each}} {{#each action.additionalEffects as |effect|}}
    {{localize effect.label}}
    {{/each}}

    {{#if @root.editing}} {{/if}}
    {{#each action.variants as |variant vi|}} {{/each}}
    {{#if action.item.dealsDamage}}
    {{/if}}
    {{{action.description}}}
  4. {{/each}}
{{/if}}

{{localize "PF2E.Publication.Label"}}

{{> (resolvePath "templates/partials/publication-data.hbs") path="system.details.publication" data=data.details.publication}}