{{#if identified}}
|
|
{{#if item.system.traits}}
|
|
<div class="tags item-properties" data-tooltip-class="pf2e">
|
|
{{#if (and rarityLabel (ne item.system.traits.rarity "common"))}}
|
|
<span class="tag rarity {{item.system.traits.rarity}}">{{localize rarityLabel}}</span>
|
|
{{/if}}
|
|
{{#each chatData.traits as |trait|}}
|
|
<span class="tag" data-tooltip="{{trait.description}}">{{localize trait.label}}</span>
|
|
{{/each}}
|
|
{{#each chatData.properties as |property|}}
|
|
<span class="tag tag_secondary">{{localize property}}</span>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if item.price}}
|
|
<section>
|
|
<div>{{localize "PF2E.LevelN" level=item.level}}</div>
|
|
<div>{{localize "PF2E.Item.Physical.PriceLabel" price=item.price.value}}</div>
|
|
</section>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
<div class="item-description">
|
|
{{{description}}}
|
|
{{#if selfEffect}}<p>{{{selfEffect}}}</p>{{/if}}
|
|
</div>
|
|
|
|
{{#if (and identified isCreature)}}
|
|
<div class="item-buttons">
|
|
{{#if chatData.save}}
|
|
<span>{{{chatData.save.label}}}</span>
|
|
{{/if}}
|
|
|
|
{{#unless item.hasVariants}}
|
|
{{#if chatData.isAttack}}
|
|
<button type="button" class="spell_attack" data-action="spellAttack">{{localize "PF2E.AttackLabel"}}</button>
|
|
{{/if}}
|
|
{{#if chatData.hasDamage}}
|
|
<button type="button" class="spell_damage" data-action="spellDamage">{{localize chatData.damageLabel}}: {{chatData.formula}}</button>
|
|
{{/if}}
|
|
{{#if (and chatData.area (not chatData.isAura))}}
|
|
<button type="button" data-action="spellTemplate" data-visibility="owner">
|
|
{{localize "PF2E.Item.Spell.MeasuredTemplate.Place" area=chatData.area.label}}
|
|
</button>
|
|
{{/if}}
|
|
{{/unless}}
|
|
|
|
{{#if (and (eq item.type "consumable") chatData.isUsable (not item.isAmmo))}}
|
|
{{#if (gt item.system.uses.value 0)}}
|
|
<button type="button" data-action="consume">{{localize "PF2E.Item.Consumable.Uses.Use"}}</button>
|
|
{{else}}
|
|
<button type="button" disabled>{{localize "PF2E.Item.Consumable.Uses.None"}}</button>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if (and (eq item.type "condition") item.references)}}
|
|
<div class="condition-references">
|
|
{{#if item.parents.length}}
|
|
<div class="condition-parents">
|
|
<p>
|
|
Applied From:
|
|
{{#each item.parents as |parent|}}
|
|
<span data-item-id="{{parent.id}}">{{{parent.enrichedText}}}</span>
|
|
{{/each}}
|
|
</p>
|
|
</div>
|
|
{{/if}}
|
|
{{#if item.children.length}}
|
|
<div class="condition-children">
|
|
<p>Also Applied:{{#each item.children as |child|}} {{{child.enrichedText}}}{{/each}}</p>
|
|
</div>
|
|
{{/if}}
|
|
{{#if item.overrides.length}}
|
|
<div class="condition-overriding">
|
|
<p>Overriding:{{#each item.overrides as |o|}} {{{o.enrichedText}}}{{/each}}</p>
|
|
</div>
|
|
{{/if}}
|
|
{{#if item.overriddenBy.length}}
|
|
<div class="condition-overridden">
|
|
<p>Overridden by:{{#each item.overriddenBy as |o|}} {{{o.enrichedText}}}{{/each}}</p>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|