Files
DeltaGreen2/templates/roll/percentile-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

42 lines
1.5 KiB
Handlebars

<div class="dice-roll" data-action="expandRoll">
<div class="dice-result">
<div class="dg2-outcome {{outcomeClass}}">
<i class="fas {{outcomeIcon}}" aria-hidden="true"></i>
<span class="dg2-outcome-text">{{resultString}}</span>
{{#if marginText}}<span class="dg2-margin">{{marginText}}</span>{{/if}}
</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">
<li class="roll die {{formula}}">{{total}}</li>
</ol>
</div>
</section>
</div>
</div>
<h4 class="dice-total">{{total}}</h4>
{{#if ammoLine}}
<div class="dg2-ammo-line {{#if outOfAmmo}}dg2-out-of-ammo{{/if}}">
<i class="fas fa-crosshairs" aria-hidden="true"></i> {{ammoLine}}
</div>
{{/if}}
</div>
{{#if failureMark}}
<div class="rollback-section">
<label>{{localize 'DG.Messages.Skillsmark.Marked'}}</label>
<i class="fa fa-book" aria-hidden="true" data-tooltip="<p>{{localize 'DG.Messages.Skillsmark.Tooltip'}}</p>"></i>
<button type="button" data-action="rollback-skill-failure-state">
<i class="fa fa-undo" aria-hidden="true"></i>
</button>
</div>
{{/if}}
</div>