The single Roll damage button becomes two, with person and paw icons. Each rolls damage and then a hit location. A targeted token still uses its own anatomy; with no target the blow is placed on the chosen body plan and shown, with nothing applied. Both buttons disable after either is used. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
46 lines
2.2 KiB
Handlebars
46 lines
2.2 KiB
Handlebars
<div class="ringbrp-chat rb-roll rb-{{level}}">
|
|
<h3 class="rb-chat-title">{{label}}</h3>
|
|
<div class="rb-chat-line">
|
|
<span class="rb-chat-rating">{{rating}}%</span>
|
|
{{#unless (rbEq difficulty "average")}}<span class="rb-chat-diff">{{difficultyLabel}}</span>{{/unless}}
|
|
{{#if situational}}<span class="rb-chat-mod">{{rbSign situational}}%</span>{{/if}}
|
|
<span class="rb-chat-arrow">→</span>
|
|
<span class="rb-chat-eff">{{bands.effective}}%</span>
|
|
</div>
|
|
{{#if flavourLines.length}}
|
|
<ul class="rb-chat-flavour">{{#each flavourLines as |l|}}<li>{{l}}</li>{{/each}}</ul>
|
|
{{/if}}
|
|
<div class="rb-chat-result">
|
|
<div class="rb-dice" aria-label="{{roll}}">
|
|
<span class="rb-die rb-die-tens">{{faces.tens}}</span>
|
|
<span class="rb-die rb-die-units">{{faces.units}}</span>
|
|
</div>
|
|
<div class="rb-chat-outcome">
|
|
<span class="rb-chat-roll">{{roll}}</span>
|
|
<span class="rb-chat-level">{{levelLabel}}</span>
|
|
</div>
|
|
</div>
|
|
{{#if damage}}
|
|
<div class="rb-chat-damage">
|
|
<button type="button" class="rb-dmg-btn" data-action="chat-damage" data-plan="baseline"
|
|
title="{{localize "RINGBRP.Chat.DamageHumanoidHint"}}">
|
|
<i class="fa-solid fa-person" aria-hidden="true"></i>
|
|
{{localize "RINGBRP.Chat.RollDamageHumanoid"}} <strong>{{damage.label}}</strong>
|
|
</button>
|
|
<button type="button" class="rb-dmg-btn" data-action="chat-damage" data-plan="quadruped"
|
|
title="{{localize "RINGBRP.Chat.DamageQuadrupedHint"}}">
|
|
<i class="fa-solid fa-paw" aria-hidden="true"></i>
|
|
{{localize "RINGBRP.Chat.RollDamageQuadruped"}} <strong>{{damage.label}}</strong>
|
|
</button>
|
|
{{#if damage.critical}}<span class="rb-dmg-note">{{localize "RINGBRP.Chat.DamageCritical"}}</span>{{/if}}
|
|
{{#if damage.special}}<span class="rb-dmg-note">{{localize "RINGBRP.Chat.DamageSpecial"}}</span>{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
<div class="rb-chat-bands">
|
|
<span title="critical">≤{{bands.critical}}</span>
|
|
<span title="special">≤{{bands.special}}</span>
|
|
<span title="success">≤{{bands.effective}}</span>
|
|
<span title="fumble">≥{{bands.fumbleStart}}</span>
|
|
</div>
|
|
</div>
|