73 lines
2.8 KiB
Handlebars
73 lines
2.8 KiB
Handlebars
<section class="dnc-chat-card dnc-chat-card-spell">
|
|
<header class="chat-card-header">
|
|
<div class="chat-card-heading">
|
|
<p class="chat-card-kicker">Magie</p>
|
|
<h2>{{title}}</h2>
|
|
{{#if subtitle}}<p class="chat-card-subtitle">{{subtitle}}</p>{{/if}}
|
|
</div>
|
|
<div class="chat-card-seal {{#if success}}success{{else}}failure{{/if}}">
|
|
{{#if success}}OK{{else}}KO{{/if}}
|
|
</div>
|
|
</header>
|
|
<div class="chat-pill-row">
|
|
<span class="chat-pill {{#if success}}success{{else}}failure{{/if}}">{{#if success}}Reussite{{else}}Echec{{/if}}</span>
|
|
{{#if modeLabel}}<span class="chat-pill">{{modeLabel}}</span>{{/if}}
|
|
{{#if favorLabel}}<span class="chat-pill">Faveur {{favorLabel}}</span>{{/if}}
|
|
<span class="chat-pill">{{targetPillLabel}} {{targetPillValue}}</span>
|
|
<span class="chat-pill">Jet {{keptPillValue}}</span>
|
|
</div>
|
|
<div class="chat-keyline">
|
|
<span class="chat-keyline-label">Lancers</span>
|
|
<p class="roll-values">{{#each values}}<span>{{this}}</span>{{/each}}</p>
|
|
</div>
|
|
{{#if autoDisadvantage}}
|
|
<p class="chat-note">
|
|
<strong>Desavantage automatique</strong> :
|
|
{{#if autoDisadvantageCanceled}}
|
|
le cout du sort depasse le rang du lanceur, mais une faveur l'a annule.
|
|
{{else}}
|
|
le cout du sort depasse le rang du lanceur.
|
|
{{/if}}
|
|
</p>
|
|
{{/if}}
|
|
{{#if favorNote}}
|
|
<p class="chat-note"><strong>Faveur</strong> : {{favorNote}}</p>
|
|
{{/if}}
|
|
{{#if focusValue}}
|
|
<p class="chat-note">
|
|
<strong>Focus</strong> : {{focusValue}} depuis {{focusBeforeLabel}}
|
|
{{#if focusSpent}} · {{focusSpent}} utilise{{/if}}
|
|
· {{focusRemaining}} restant
|
|
{{#if focusDegraded}} · le focus descend a {{focusAfterLabel}}{{/if}}
|
|
{{#if focusRolled}} · premier sort de la scene{{/if}}
|
|
</p>
|
|
{{else}}
|
|
{{#if focusRolled}}
|
|
<p class="chat-note"><strong>Focus</strong> : aucun apport pour cette scene.</p>
|
|
{{/if}}
|
|
{{/if}}
|
|
<p class="chat-note"><strong>PV depenses</strong> : {{spentPv}} · <strong>PV restants</strong> : {{remainingPv}}</p>
|
|
{{#if specialNote}}
|
|
<p class="chat-note warning">{{specialNote}}</p>
|
|
{{/if}}
|
|
{{#if showDamageButton}}
|
|
<div class="chat-actions">
|
|
<button type="button" class="chat-action-button" data-action="rollChatDamage" data-item-uuid="{{itemUuid}}">
|
|
<i class="fa-solid fa-burst"></i> Lancer les degats
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
{{#if showChaosButton}}
|
|
<div class="chat-actions">
|
|
<button type="button" class="chat-action-button" data-action="rollSpellChaos" data-actor-uuid="{{actorUuid}}" data-item-uuid="{{itemUuid}}">
|
|
<i class="fa-solid fa-dice-d20"></i> Risquer le Chaos
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
<ul class="chat-details chat-details-ornate">
|
|
{{#each details}}
|
|
<li><strong>{{this.label}}</strong> : {{this.value}}</li>
|
|
{{/each}}
|
|
</ul>
|
|
</section>
|