Files
fvtt-machine-gods-noxian-ex…/templates/chat-message.hbs
T
2026-05-08 23:05:29 +02:00

45 lines
2.0 KiB
Handlebars
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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"><code>{{formula}}</code></p>{{/if}}
{{#if outcome}}
<div class="chat-outcome">
<span class="chat-outcome-label">{{outcome}}</span>
<span class="chat-outcome-total">{{total}}</span>
</div>
{{else if total}}
<div class="chat-damage-total">{{total}}</div>
{{/if}}
{{#if specialText}}<p class="chat-special">{{specialText}}</p>{{/if}}
{{#if omenNeutralizeReminder}}<p class="chat-omen-remind chat-omen-neutralize">💡 {{omenNeutralizeReminder}}</p>{{/if}}
{{#if omenRerollReminder}}<p class="chat-omen-remind">💡 {{omenRerollReminder}}</p>{{/if}}
{{#if omenMaximized}}<p class="chat-omen-used">★ {{localize "MGNE.Roll.OmenMaximizedDamage"}}</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>