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

77 lines
2.1 KiB
Handlebars
Raw Normal View History

2023-02-01 14:28:08 +01:00
<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>
2023-02-01 19:48:35 +01:00
{{#if attr}}
<li>{{attr.label}} : {{attr.value}}
2023-02-01 14:28:08 +01:00
</li>
{{/if}}
2023-02-01 19:48:35 +01:00
<li>Bonus/Malus perso: {{bonusMalusPerso}} </li>
<li>Bonus/Malus situation: {{bonusMalusSituation}} </li>
<li>Seuil final: {{target}} </li>
<li>Resultat {{roll.total}} </li>
2023-02-01 14:28:08 +01:00
2023-02-01 19:48:35 +01:00
{{#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}}
2023-02-01 14:28:08 +01:00
2023-02-01 19:48:35 +01:00
{{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>
2023-02-01 14:28:08 +01:00
{{else}}
2023-02-01 19:48:35 +01:00
<li><strong>Echec !</strong></li>
2023-02-01 14:28:08 +01:00
{{/if}}
{{/if}}
2023-02-01 21:30:35 +01:00
{{#if isReroll}}
{{else}}
2023-02-02 22:20:35 +01:00
{{#if (gt destin 0)}}
2023-02-01 21:30:35 +01:00
<button class="chat-card-button roll-destin">Relancer (1 Destin)</button>
{{/if}}
{{/if}}
2023-02-01 14:28:08 +01:00
</ul>
</div>
</div>