39 lines
1.6 KiB
Handlebars
39 lines
1.6 KiB
Handlebars
<article class="mgne-chat-card mode-{{modeClass}} {{#if outcomeClass}}outcome-{{outcomeClass}}{{/if}}"
|
||
{{#if showApplyButton}}data-damage-total="{{damageTotal}}" data-damage-critical="{{damageCritical}}"{{/if}}>
|
||
<header class="chat-card-header">
|
||
{{#if actorImg}}<img src="{{actorImg}}" alt="{{actorName}}" />{{/if}}
|
||
<div>
|
||
<h3>{{label}}</h3>
|
||
<p class="chat-actor">{{actorName}}</p>
|
||
</div>
|
||
</header>
|
||
<div class="chat-card-body">
|
||
{{#if subtitle}}<p class="chat-subtitle"><strong>{{subtitle}}</strong></p>{{/if}}
|
||
{{#if formula}}<p class="chat-formula">{{localize "MGNE.Chat.Formula"}}: <code>{{formula}}</code></p>{{/if}}
|
||
<div class="chat-result-line">
|
||
<span class="chat-result-label">{{localize "MGNE.Chat.Result"}}</span>
|
||
<strong class="chat-result-total">{{total}}</strong>
|
||
</div>
|
||
<p class="chat-outcome">{{outcome}}</p>
|
||
{{#if specialText}}<p class="chat-special">{{specialText}}</p>{{/if}}
|
||
{{#if showDamageButton}}
|
||
<div class="chat-card-actions">
|
||
<button type="button" class="mgne-roll-damage-btn {{#if damageCritical}}is-critical{{/if}}"
|
||
data-actor-id="{{damageActorId}}"
|
||
data-item-id="{{damageItemId}}">
|
||
<i class="fa-solid fa-burst"></i>
|
||
{{localize "MGNE.Roll.RollDamage"}}
|
||
<span class="dmg-formula">({{damageFormula}}{{#if damageCritical}} ×2{{/if}})</span>
|
||
</button>
|
||
</div>
|
||
{{/if}}
|
||
{{#if showApplyButton}}
|
||
<div class="chat-card-actions chat-apply-actions">
|
||
<select class="mgne-apply-damage-select">
|
||
<option value="">— {{localize "MGNE.Roll.ApplyTo"}} —</option>
|
||
</select>
|
||
</div>
|
||
{{/if}}
|
||
</div>
|
||
</article>
|