Files
RingBRP/templates/chat-roll.hbs
T
slaguru666andClaude Opus 5 1e0deb2ef0 Attack card: humanoid and quadruped damage buttons
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>
2026-09-16 18:12:48 +01:00

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">&rarr;</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">&le;{{bands.critical}}</span>
<span title="special">&le;{{bands.special}}</span>
<span title="success">&le;{{bands.effective}}</span>
<span title="fumble">&ge;{{bands.fumbleStart}}</span>
</div>
</div>