110 lines
3.6 KiB
Handlebars
110 lines
3.6 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>
|
|
|
|
<div class="chat-roll-details" style="margin-top: 0.3rem;">
|
|
{{#if img}}
|
|
<div style="text-align: center; margin-bottom: 0.3rem;">
|
|
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="chat-info-badge" style="margin-bottom: 0.4rem;">
|
|
<strong>{{alias}}</strong>
|
|
attaque
|
|
<strong>{{defenderName}}</strong>
|
|
</div>
|
|
|
|
<ul style="margin: 0; padding-left: 0.5rem;">
|
|
|
|
{{#if arme}}
|
|
<li style="margin: 0.2rem 0;"><span class="chat-info-badge">Dégâts
|
|
{{arme.name}}
|
|
:
|
|
{{degats}}
|
|
({{degatsFormula}})</span></li>
|
|
{{/if}}
|
|
{{#if loc}}
|
|
<li style="margin: 0.2rem 0;"><span
|
|
class="chat-difficulty-badge"
|
|
>Localisation : {{loc.label}}</span></li>
|
|
<li style="margin: 0.2rem 0;">Touché : {{touche}}</li>
|
|
{{/if}}
|
|
|
|
{{#if gantelet}}
|
|
<li>Poing avec gantelet: +1 dégat</li>
|
|
{{/if}}
|
|
|
|
{{#if isChargeAPied}}
|
|
<li>Charge à pied (+Course)</li>
|
|
{{/if}}
|
|
{{#if isChargeACheval}}
|
|
<li>Charge à cheval (+Equitation)</li>
|
|
{{/if}}
|
|
|
|
{{#if isReussiteCritique}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-result-success">🎯
|
|
Réussite critique : La blessure a été augmentée d'un niveau</span></li>
|
|
{{/if}}
|
|
{{#if blessure}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-warning-badge">⚔️
|
|
{{defenderName}}
|
|
a subi une blessure!</span></li>
|
|
<li style="margin: 0.2rem 0;"><strong>Gravité :
|
|
{{blessure.name}}</strong></li>
|
|
|
|
{{#if (eq loc.categorie "tete")}}
|
|
{{#if (gt blessure.system.value 0)}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-result-failure">💥
|
|
{{defenderName}}
|
|
doit réussir un test d'Endurance de difficulté 7 ou être assommé</span></li>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if (eq loc.categorie "bras")}}
|
|
{{#if (gt blessure.system.value 2)}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-result-failure">💥
|
|
{{defenderName}}
|
|
lâche l'objet tenu par son bras. Il doit faire un test d'endurance
|
|
pour l'utiliser désormais.</span></li>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if (eq loc.categorie "jambe")}}
|
|
{{#if (gt blessure.system.value 2)}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-result-failure">💥
|
|
{{defenderName}}
|
|
tombe au sol. Pour se relever et marcher, il doit réussir un test
|
|
d'Endurance à chaque tour.</span></li>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if (eq loc.categorie "main")}}
|
|
{{#if (gt blessure.system.value 1)}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-result-failure">💥
|
|
{{defenderName}}
|
|
lâche l'objet tenu par sa main. Il doit faire un test d'endurance
|
|
pour l'utiliser désormais.</span></li>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if (eq loc.categorie "pied")}}
|
|
{{#if (gt blessure.system.value 1)}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-result-failure">💥
|
|
{{defenderName}}
|
|
tombe au sol. Pour se relever et marcher, il doit réussir un test
|
|
d'Endurance à chaque tour.</span></li>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
<li style="margin: 0.3rem 0;"><span class="chat-result-success">✓ Aucune
|
|
blessure subie par
|
|
{{defenderName}}</span></li>
|
|
{{/if}}
|
|
|
|
</ul>
|
|
</div> |