|
|
- <form class="{{cssClass}}{{#if editing}} editing{{/if}}" autocomplete="off">
- {{> "systems/pf2e/templates/actors/hazard/partials/header.hbs"}}
- <div class="container">
- {{> "systems/pf2e/templates/actors/hazard/partials/sidebar.hbs"}}
- <!-- BODY -->
- <section class="content">
- {{#if (or hasStealth editing)}}
- <div class="section-container">
- <div class="section-header">
- <h4>
- {{localize "PF2E.Check.DC.Specific.stealth"}}
- <input type="text" value="{{stealthDC}}" data-value="{{stealthDC}}" data-property="system.attributes.stealth.value" data-dtype="Number" placeholder="N/A" />
- </h4>
- <div class="controls">
- {{#if editing}}
- <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
- {{/if}}
- </div>
- </div>
- <div class="section-body hazard-editor">
- {{editor enrichedContent.stealthDetails target="system.attributes.stealth.details" button=true owner=owner editable=editable}}
- </div>
- </div>
- {{/if}}
-
- {{#if (or hasDescription editing)}}
- <div class="section-container">
- <div class="section-header">
- <h4>{{localize "PF2E.HazardDescriptionLabel"}}</h4>
- <div class="controls">
- {{#if editing}}
- <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
- {{/if}}
- </div>
- </div>
- <div class="section-body hazard-editor">
- {{editor enrichedContent.description target="system.details.description" button=true owner=owner editable=editable}}
- </div>
- </div>
- {{/if}}
-
- {{#if (or hasDisable editing)}}
- <div class="section-container">
- <div class="section-header">
- <h4>{{localize "PF2E.HazardDisableLabel"}}</h4>
- <div class="controls">
- {{#if editing}}
- <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
- {{/if}}
- </div>
- </div>
- <div class="section-body hazard-editor">
- {{editor enrichedContent.disable target="system.details.disable" button=true owner=owner editable=editable}}
- </div>
- </div>
- {{/if}}
-
- {{#if (or hasRoutineDetails editing)}}
- <div class="section-container">
- <div class="section-header">
- <h4>{{localize "PF2E.HazardRoutineLabel"}}</h4>
- <div class="controls">
- {{#if editing}}
- <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
- {{/if}}
- </div>
- </div>
- <div class="section-body hazard-editor">
- {{editor enrichedContent.routine target="system.details.routine" button=true owner=owner editable=editable}}
- </div>
- </div>
- {{/if}}
-
- {{#if (or hasResetDetails editing)}}
- <div class="section-container">
- <div class="section-header">
- <h4>{{localize "PF2E.HazardResetLabel"}}</h4>
- <div class="controls">
- {{#if editing}}
- <a data-action="edit-section"><i class="fa-solid fa-edit"></i></a>
- {{/if}}
- </div>
- </div>
- <div class="section-body hazard-editor">
- {{editor enrichedContent.reset target="system.details.reset" button=true owner=owner editable=editable}}
- </div>
- </div>
- {{/if}}
-
- <div class="section-container">
- <div class="section-header">
- <h4>{{localize "PF2E.ActionActionsLabel"}}</h4>
- <div class="controls">
- {{#if editing}}
- <a class="item-create" title="{{localize "PF2E.CreateActionTitle"}}" data-type="action" data-action-type="action"><i class="fa-solid fa-fw fa-plus"></i> {{localize "TYPES.Item.action"}}</a>
- <a class="attack-add item-create" data-type="melee" data-action-type="melee"><i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.NPCAttackMelee"}}</a>
- <a class="attack-add item-create" data-type="melee" data-action-type="ranged"><i class="fa-solid fa-fw fa-plus"></i> {{localize "PF2E.NPCAttackRanged"}}</a>
- {{/if}}
- </div>
- </div>
-
- <div class="section-body">
- {{#each actions as |section sid|}}
- {{#if section}}
- <ol class="actions-list attacks-list item-list">
- <!-- List Actions -->
- {{#each section as |action|}}
- <li class="item action flexrow" data-item-id="{{action.id}}">
- <h4 class="item-name">
- <a data-action="toggle-summary">{{action.name}} {{{actionGlyph action.actionCost}}}</a>
- </h4>
- <div class="controls">
- <a class="item-chat chat" title="{{localize "PF2E.NPC.SendToChat"}}"><i class="fa-solid fa-fw fa-comment-alt"></i></a>
- {{#if @root.editing}}
- <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
- <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fa-solid fa-fw fa-trash"></i></a>
- {{/if}}
- </div>
- <div class="item-summary" hidden></div>
- </li>
- {{/each}}
- </ol>
- {{/if}}
- {{/each}}
-
- {{#if actor.system.actions}}
- <!-- List Attacks -->
- <ol class="actions-list attacks-list strikes-list item-list">
- {{#each actor.system.actions as |action index|}}
- <li class="item attack flexrow" data-action-index="{{index}}" data-strike="" data-item-id="{{action.item.id}}">
- <h4 class="attack-name tags">
- <span>
- <strong>{{localize action.attackRollType}}</strong>
- <span class="action-glyph">{{{actionGlyph 1}}}</span>
- {{action.label}}
- </span>
- {{#each action.traits as |trait|}}
- <div class="tag tag_transparent" title="{{localize trait.description}}">{{localize trait.label}}</div>
- {{/each}}
- {{#each action.additionalEffects as |effect|}}
- <div class="tag tag_transparent" data-tag="{{effect.tag}}">{{localize effect.label}}</div>
- {{/each}}
- </h4>
- <div class="controls">
- {{#if @root.editing}}
- <a class="item-edit edit" title="{{localize "PF2E.NPC.Edit"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
- <a class="item-delete delete" title="{{localize "PF2E.NPC.Remove"}}"><i class="fa-solid fa-fw fa-trash"></i></a>
- {{/if}}
- </div>
-
- <div class="button-group">
- <div class="attacks sub-section">
- {{#each action.variants as |variant vi|}}
- <button type="button" class="btn attack-button" {{#if (eq vi 0)}}title="{{action.breakdown}}"{{/if}} data-action="strike-attack" data-variant-index="{{vi}}">{{variant.label}}</button>
- {{/each}}
- </div>
- {{#if action.item.dealsDamage}}
- <div class="damage sub-section">
- <button type="button" class="damage-button" data-action="strike-damage">{{action.damageFormula}}</button>
- <button type="button" class="critical-button" data-action="strike-critical">{{localize "PF2E.CriticalDamageLabel"}}</button>
- </div>
- {{/if}}
- </div>
- <div class="item-summary">
- {{{action.description}}}
- </div>
- </li>
- {{/each}}
- </ol>
- {{/if}}
- </div>
- </div>
-
- <div class="section-container publication">
- <div class="section-header">
- <h4>{{localize "PF2E.Publication.Label"}}</h4>
- </div>
- <div class="section-body">
- {{> "systems/pf2e/templates/partials/publication-data.hbs" path="system.details.publication" data=data.details.publication}}
- </div>
- </div>
- </section>
- </div>
- </form>
|