fvtt-malefices/templates/chat/chat-generic-result.hbs

77 lines
2.1 KiB
Handlebars

<div class="chat-message-header">
{{#if actorImg}}
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
{{/if}}
<h4 class=chat-actor-name>{{alias}}</h4>
</div>
<hr>
{{#if img}}
<div >
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
</div>
{{/if}}
<div class="flexcol">
</div>
<div>
<ul>
{{#if attr}}
<li>{{attr.label}} : {{attr.value}}
</li>
{{/if}}
<li>Bonus/Malus perso: {{bonusMalusPerso}} </li>
<li>Bonus/Malus situation: {{bonusMalusSituation}} </li>
<li>Seuil final: {{target}} </li>
<li>Resultat {{roll.total}} </li>
{{#if isSuccess}}
{{#if isCritical}}
<li><strong>Réussite Critique !</strong></li>
{{#if arme}}
{{#if arme.system.dommagecritiquemort}}
<li><strong>La victime est morte !</strong></li>
{{else}}
{{#if arme.system.dommagecritiqueko}}
<li><strong>La victime est KO !</strong></li>
{{/if}}
<li><strong>La victime subit {{arme.system.dommagecritique}} dommages</strong></li>
{{/if}}
{{/if}}
{{else}}
{{#if isPart}}
<li><strong>Réussite Particulière !</strong></li>
{{#if arme}}
<li><strong>La victime subit {{arme.system.dommagepart}} dommages</strong></li>
{{/if}}
{{else}}
<li><strong>Succés !</strong></li>
{{#if arme}}
<li><strong>La victime subit {{arme.system.dommagenormale}} dommages</strong></li>
{{/if}}
{{/if}}
{{/if}}
{{else}}
{{#if isFumble}}
<li><strong>Echec Critique !</strong></li>
{{else}}
<li><strong>Echec !</strong></li>
{{/if}}
{{/if}}
{{#if isReroll}}
{{else}}
{{#if destin}}
<button class="chat-card-button roll-destin">Relancer (1 Destin)</button>
{{/if}}
{{/if}}
</ul>
</div>
</div>