Files
DeltaGreen2/templates/roll/damage-roll.hbs
T
tevansandClaude Fable 5 69e10765f2 Add GM automation: templated roll cards, apply buttons, ammo tracking
- Percentile roll cards: outcome banners (crit/success/failure) with icons
  and margin-of-success text instead of color-only inline styles.
- Damage and lethality cards: Apply Damage / Apply Lethality buttons that
  hit targeted or selected tokens, auto-subtracting equipped armor
  protection reduced by the weapon's armor-piercing value.
- Sanity damage cards: apply buttons for success/failure loss with GM
  whispers for temporary insanity (5+), breaking point crossings, and 0 SAN.
- Ammo: weapon ammo is now numeric with a magazine capacity; attack rolls
  expend a round (ammoTracking setting, default on), gear tab shows an
  ammo column with a reload control, compendium weapons carry capacities.
- CSS: drop live Google Fonts imports (offline reliability); DG2 styles
  with dark-theme support.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 17:36:30 +01:00

32 lines
1.1 KiB
Handlebars

<div class="dice-roll" data-action="expandRoll">
<div class="dice-result">
<div class="dice-formula">{{formula}}</div>
<div class="dice-tooltip">
<div class="wrapper">
<section class="tooltip-part">
<div class="dice">
<header class="part-header flexrow">
<span class="part-formula">{{formula}}</span>
<span class="part-total">{{total}}</span>
</header>
<ol class="dice-rolls">
{{#each dice}}
<li class="roll die d{{this.faces}}">{{this.result}}</li>
{{/each}}
</ol>
</div>
</section>
</div>
</div>
<h4 class="dice-total">{{total}}</h4>
<div class="dg2-apply-row">
<button type="button" class="dg2-apply-button" data-action="dg2-apply-damage"
data-damage="{{total}}" data-ap="{{ap}}"
data-tooltip="{{localize 'DG2.Apply.DamageTooltip'}}">
<i class="fas fa-heart-crack" aria-hidden="true"></i>
{{localize 'DG2.Apply.Damage'}} ({{total}}{{#if ap}}, AP {{ap}}{{/if}})
</button>
</div>
</div>
</div>