{{> "systems/pf2e/templates/actors/hazard/partials/header.hbs"}}
{{> "systems/pf2e/templates/actors/hazard/partials/sidebar.hbs"}}
{{#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}}
{{/if}} {{#if (or hasDescription editing)}}

{{localize "PF2E.HazardDescriptionLabel"}}

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

{{localize "PF2E.HazardDisableLabel"}}

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

{{localize "PF2E.HazardRoutineLabel"}}

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

{{localize "PF2E.HazardResetLabel"}}

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

    {{#if @root.editing}} {{/if}}
  2. {{/each}}
{{/if}} {{/each}} {{#if actor.system.actions}}
    {{#each actor.system.actions as |action index|}}
  1. {{localize action.attackRollType}} {{{actionGlyph 1}}} {{action.label}} {{#each action.traits as |trait|}}
    {{localize trait.label}}
    {{/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}}
  2. {{/each}}
{{/if}}