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

77 lines
2.6 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}}
2023-02-03 08:33:27 +01:00
<h4 class="chat-actor-name">{{alias}}</h4>
2023-02-01 14:28:08 +01:00
</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}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success ">Réussite Critique !</label></li>
2023-02-01 19:48:35 +01:00
{{#if arme}}
{{#if arme.system.dommagecritiquemort}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success">La victime est morte !</label></li>
2023-02-01 19:48:35 +01:00
{{else}}
{{#if arme.system.dommagecritiqueko}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success ">La victime est KO !</label></li>
2023-02-01 19:48:35 +01:00
{{/if}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagecritique}} dommages</label></li>
2023-02-01 19:48:35 +01:00
{{/if}}
{{/if}}
{{else}}
{{#if isPart}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success ">Réussite Particulière !</label></li>
2023-02-01 19:48:35 +01:00
{{#if arme}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagepart}} dommages</label></li>
2023-02-01 19:48:35 +01:00
{{/if}}
2023-02-01 14:28:08 +01:00
2023-02-01 19:48:35 +01:00
{{else}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success ">Succés !</label></li>
2023-02-01 19:48:35 +01:00
{{#if arme}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagenormale}} dommages</label></li>
2023-02-01 19:48:35 +01:00
{{/if}}
{{/if}}
{{/if}}
{{else}}
{{#if isFumble}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-failure ">Echec Critique !</label></li>
2023-02-01 14:28:08 +01:00
{{else}}
2023-02-03 08:33:27 +01:00
<li><label class="chat-result-text chat-result-failure">Echec !</label></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>