|
|
- <!-- HEALTH -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.HitPointsHeader"}}</h2>
- <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-hp-modifiers">
- <i class="fas fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
- </button>
- </div>
- <div class="hitpoints">
- <div class="hp-big">
- <div class="container temp-hp">
- <label for="{{options.id}}-pc-hp-temp" class="sidebar_label">{{localize "PF2E.TempHitPointsShortLabel"}}</label>
- <div class="data-value" title="{{localize "PF2E.TempHPTitle"}}">
- <input name="system.attributes.hp.temp" id="{{options.id}}-pc-hp-temp" type="number" value="{{data.attributes.hp.temp}}" placeholder="0" />
- </div>
- </div>
- <div class="container current-hp">
- <label for="{{options.id}}-pc-hp" class="sidebar_label">{{localize "PF2E.CurrentHitPointsShortLabel"}}</label>
- <div class="data-value" title="{{localize "PF2E.CurrentHPTitle"}}">
- <input name="system.attributes.hp.value" id="{{options.id}}-pc-hp" type="number" value="{{data.attributes.hp.value}}" placeholder="10" />
- </div>
- </div>
- <div class="container max-hp">
- <span class="sidebar_label">{{localize "PF2E.MaxHitPointsShortLabel"}}</span>
- <div class="data-value">
- <h2>
- {{~data.attributes.hp.max~}}
- {{~#if data.attributes.hp.unrecoverable~}}
- <span class="unrecoverable" data-tooltip="{{localize "PF2E.Actor.HitPoints.Unrecoverable" value=data.attributes.hp.unrecoverable}}">*</span>
- {{~/if~}}
- </h2>
- </div>
- </div>
- </div>
- <div class="hp-small">
- <a class="rollable roll-icon{{#if (not data.attributes.dying.value)}} disabled{{/if}}" data-action="recovery-check" title="{{localize "PF2E.Check.Specific.Recovery"}}">
- {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
- </a>
- <a class="dots dying" title="{{localize "PF2E.condition.dying.summary"}}">
- <span class="sidebar_label">{{localize "PF2E.condition.dying.name"}}</span>
- {{> "systems/pf2e/templates/actors/partials/dying-pips.hbs"}}
- </a>
- <a class="dots wounded" title="{{localize "PF2E.condition.wounded.summary"}}">
- <span class="sidebar_label">{{localize "PF2E.condition.wounded.name"}}</span>
- <span class="pips">
- {{#times data.attributes.wounded.value}}<i class="fas fa-dot-circle"></i>{{/times}}
- {{#times dying.remainingWounded}}<i class="far fa-circle"></i>{{/times}}
- </span>
- </a>
- <a class="roll-icon rest" data-action="rest" title="{{localize "PF2E.Actor.Character.Rest.Label"}}">
- <i class="fas fa-bed"></i>
- </a>
- </div>
- </div>
- {{#with data.attributes.hp}}
- {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.HitPointsHeader"}}
- {{/with}}
-
- <!-- STAMINA (if enabled) -->
- {{#if hasStamina}}
- <div class="sidebar_title">
- <h2>{{localize "PF2E.StaminaPointsHeader"}}</h2>
- </div>
- <ol class="stamina">
- <li class="sp">
- <label for="{{options.id}}-pc-stamina" class="sidebar_label">{{localize "PF2E.StaminaPointsShortLabel"}}</label>
- <span class="hp-current stamina-group" title="{{localize "PF2E.CurrentStaminaTitle"}}">
- <input
- id="{{options.id}}-pc-stamina"
- class="left"
- type="number"
- inputmode="numeric"
- min="0"
- max="{{data.attributes.sp.max}}"
- name="system.attributes.sp.value"
- value="{{data.attributes.sp.value}}"
- />
- <span class="divider">/</span>
- <input class="right" type="number" value="{{data.attributes.sp.max}}" disabled="disabled" />
- </span>
- </li>
- <li class="resolve">
- <label for="{{options.id}}-pc-resolve" class="sidebar_label">{{localize "PF2E.ResolvePointsShortLabel"}}</label>
- <span class="hp-max stamina-group" title="{{localize "PF2E.ResolveTitle"}}">
- <input
- id="{{options.id}}-pc-resolve"
- class="left"
- type="number"
- inputmode="numeric"
- min="0"
- max="{{data.attributes.resolve.max}}"
- name="system.attributes.resolve.value"
- value="{{data.attributes.resolve.value}}"
- />
- <span class="divider">/</span>
- <input class="right" type="number" value="{{data.attributes.resolve.max}}" disabled="disabled" />
- </span>
- </li>
- </ol>
- {{/if}}
-
- <!-- ARMOR CLASS -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.ArmorClassLabel"}}</h2>
- <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-armor-modifiers">
- <i class="fas fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
- </button>
- </div>
- <div class="armor-class">
- <div class="shield ac">
- <div class="data-value">
- <h2>{{data.attributes.ac.value}}</h2>
- </div>
- <span class="sidebar_label">{{localize "PF2E.ArmorClassShortLabel"}}</span>
- </div>
- <div class="shield hp">
- <div class="data-value">
- <input id="{{@root.options.id}}-shield-hp" type="number" placeholder="0" name="system.attributes.shield.hp.value" value="{{data.attributes.shield.hp.value}}" title="{{localize "PF2E.ShieldCurrentTitle"}}" />
- </div>
- <label for="{{@root.options.id}}-shield-hp" class="sidebar_label">{{localize "PF2E.ShieldCurrentLabel"}}</label>
- </div>
- <div class="shield-stats">
- <ol>
- <li>
- <div class="shield-label">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
- <path
- d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
- fill="#fff"
- />
- <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ArmorClassShortLabel"}}</text>
- </svg>
- </div>
- <span class="data-value" title="{{localize "PF2E.ShieldACBonusTitle"}}">
- <input type="number" placeholder="0" value="{{data.attributes.shield.ac}}" title="{{localize "PF2E.ShieldACBonusTitle"}}" readonly="readonly" />
- </span>
- </li>
- <li>
- <div class="shield-label">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
- <path
- d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
- fill="#fff"
- />
- <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ShieldHardnessShortLabel"}}</text>
- </svg>
- </div>
- <span class="data-value" title="{{localize "PF2E.ShieldHardnessTitle"}}">
- <input type="number" placeholder="0" value="{{data.attributes.shield.hardness}}" readonly="readonly" />
- </span>
- </li>
- <li>
- <div class="shield-label">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
- <path
- d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
- fill="#fff"
- />
- <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ShieldBTShortLabel"}}</text>
- </svg>
- </div>
- <span class="data-value" title="{{localize "PF2E.ShieldBTTitle"}}">
- <input type="number" value="{{data.attributes.shield.brokenThreshold}}" readonly="readonly" />
- </span>
- </li>
- </ol>
- </div>
- <div class="armor_footer">
- <div class="shield-max">
- <label for="{{@root.options.id}}-shield-max" class="sidebar_label" title="{{localize "PF2E.ShieldMaxTitle"}}">
- {{localize "PF2E.ShieldLabel"}}<br />{{localize "PF2E.MaxHitPointsShortLabel"}}
- </label>
- <span class="data-value" title="{{localize "PF2E.ShieldMaxTitle"}}">
- <input id="{{@root.options.id}}-shield-max" type="number" placeholder="0" value="{{data.attributes.shield.hp.max}}" readonly="readonly" />
- </span>
- </div>
- <div class="shield-status">
- {{#if data.attributes.shield.destroyed}}
- <span class="sidebar_label">{{localize "PF2E.Item.Physical.Destroyed"}}</span>
- <i class="far fa-times-circle"></i>
- {{else}}
- <span class="sidebar_label">{{localize "PF2E.Item.Physical.Broken"}}</span>
- {{#if data.attributes.shield.broken}}<i class="far fa-times-circle"></i>{{else}}<i class="far fa-circle"></i>{{/if}}
- {{/if}}
- </div>
- </div>
- </div>
- {{#with data.attributes.ac}}
- {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.ArmorClassLabel"}}
- {{/with}}
-
- <!-- Perception -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.PerceptionHeader"}}</h2>
- <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-perception-modifiers">
- <i class="fas fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
- </button>
- </div>
- <div class="roll-data perception-sidebar">
- <a class="roll-icon attribute-name" data-action="perception-check" title="{{localize "PF2E.Check.Specific.Perception.Label"}}">
- {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
- </a>
-
- <a class="roll-icon attribute-name" data-action="perception-check" data-secret="true" title="{{localize "PF2E.Check.Specific.Perception.Secret"}}">
- <i class="fas fa-eye-slash"></i>
- </a>
- <h3>{{numberFormat data.attributes.perception.value decimals=0 sign=true}}</h3>
-
- <div class="perception-prof button-group skill-container">
- <select class="perception-proficiency pf-rank adjust-stat-select{{#if rank.immutable}} readonly{{/if}}" data-property="system.attributes.perception.rank" data-rank="{{data.attributes.perception.rank}}" data-dtype="Number">
- {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=data.attributes.perception.rank}}
- </select>
- </div>
-
- </div>
- {{#with data.attributes.perception}}
- {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.PerceptionHeader"}}
- {{/with}}
-
- <!-- Initiative -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.InitiativeLabel"}}</h2>
- <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-initiative-modifiers">
- <i class="fas fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
- </button>
- </div>
- <div class="roll-data initiative-sidebar">
- <a class="roll-icon roll-init" data-action="roll-initiative">
- {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
- </a>
- <h3>{{numberFormat data.attributes.initiative.totalModifier decimals=0 sign=true}}</h3>
- <h4 class="initiative-select">
- <select name="system.attributes.initiative.statistic">
- {{#select data.attributes.initiative.statistic}}
- <option value="perception">{{localize "PF2E.PerceptionLabel"}}</option>
- {{#each data.skills as |skill|}}
- <option value="{{skill.slug}}">{{localize skill.label}}</option>
- {{/each}}
- {{/select}}
- </select>
- </h4>
- </div>
- {{#with data.attributes.initiative}}
- {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title=label}}
- {{/with}}
-
- <!-- Saves -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.SavesHeader"}}</h2>
- </div>
- <ul class="sidebar-saves">
- {{#each data.saves as |save sid|}}
- <li class="roll-data" data-save="{{sid}}">
- <h2 class="sidebar_label">{{localize save.label}}</h2>
-
- <div class="save-prof button-group skill-container">
- <select class="save-proficiency pf-rank adjust-stat-select{{#if rank.immutable}} readonly{{/if}}" data-property="system.saves.{{sid}}.rank" data-rank="{{save.rank}}" data-dtype="Number">
- {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=save.rank}}
- </select>
- </div>
-
- <div class="save-roll">
- <a class="roll-icon save-name">
- {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
- </a>
- <h3>{{numberFormat save.totalModifier decimals=0 sign=true}}</h3>
- </div>
- <button type="button" class="modifiers_button hover" data-tooltip-content="#{{@root.options.id}}-{{save.slug}}-modifiers">
- {{localize "PF2E.ModifiersTitle"}}
- </button>
- {{#with save}}
- {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title=label}}
- {{/with}}
- </li>
- {{/each}}
- </ul>
-
- <!-- Class DC -->
- {{#if classDCs.dcs}}
- <div class="sidebar_title">
- <h2>{{#if (gt classDCs.dcs.length 1)}}{{localize "PF2E.Actor.Character.ClassDC.Plural"}}{{else}}{{localize "PF2E.Actor.Character.ClassDC.Label"}}{{/if}}</h2>
- {{#unless classDCs.perDCDetails}}
- <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-{{classDCs.primary}}-modifiers"><i class="fas fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}</button>
- {{/unless}}
- </div>
- {{#each classDCs.dcs as |classDC|}}
- <div class="roll-data difficulty-checks class-dc{{#unless classDC.primary}} secondary{{/unless}}">
- <h3>
- {{classDC.dc}}
- {{#if ../classDCs.perDCDetails}}<span class="sidebar_label">{{classDC.label}}</span>{{/if}}
- </h3>
- <div class="classdc-rank">
- <span class="pf-rank {{classDC.rankSlug}}">{{classDC.rankName}}</span>
- {{#if ../classDCs.perDCDetails}}
- <button type="button" class="modifiers_button hover" data-tooltip-content="#{{../options.id}}-{{classDC.slug}}-modifiers"><i class="fas fa-eye"></i></button>
- {{/if}}
- </div>
- {{#with classDC}}
- {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.Actor.Character.ClassDC.Label"}}
- {{/with}}
- </div>
- {{/each}}
- {{/if}}
-
- <!-- Immunities -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.ImmunitiesLabel"}}</h2>
- </div>
- <ol class="immunities tags">
- {{#each data.attributes.immunities as |immunity|}}
- <li class="tag tag_secondary" data-immunity="{{immunity.type}}">{{immunity.label}}</li>
- {{/each}}
- {{#if editable}}
- <li class="tag edit-btn">
- <a data-action="edit-immunities" title="{{localize "PF2E.NPC.EditImmunities"}}"><i class="fa-solid fa-edit"></i></a>
- </li>
- {{/if}}
- </ol>
-
- <!-- Weaknesses -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.WeaknessesLabel"}}</h2>
- </div>
- <ol class="weaknesses tags">
- {{#each data.attributes.weaknesses as |weakness|}}
- <li class="tag tag_secondary" data-weakness="{{weakness.type}}">{{weakness.label}}</li>
- {{/each}}
- {{#if editable}}
- <li class="tag edit-btn">
- <a data-action="edit-weaknesses" title="{{localize "PF2E.NPC.EditWeaknesses"}}"><i class="fa-solid fa-edit"></i></a>
- </li>
- {{/if}}
- </ol>
-
- <!-- Resistances -->
- <div class="sidebar_title">
- <h2>{{localize "PF2E.ResistancesLabel"}}</h2>
- </div>
- <ol class="resistances tags">
- {{#each data.attributes.resistances as |resistance|}}
- <li class="tag tag_secondary" data-resistance="{{resistance.type}}">{{resistance.label}}</li>
- {{/each}}
- {{#if editable}}
- <li class="tag edit-btn">
- <a data-action="edit-resistances" title="{{localize "PF2E.NPC.EditResistances"}}"><i class="fa-solid fa-edit"></i></a>
- </li>
- {{/if}}
- </ol>
|