CSS rework et autres améliorations
This commit is contained in:
@@ -1,99 +1,110 @@
|
||||
<div class="chat-message-header">
|
||||
{{#if actorImg}}
|
||||
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||
{{/if}}
|
||||
<h4 class="chat-actor-name">{{alias}}</h4>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<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}}
|
||||
|
||||
{{#if img}}
|
||||
<div>
|
||||
<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>
|
||||
|
||||
<div class="flexcol">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
<li><strong>{{alias}}</strong> attaque <strong>{{defenderName}}</strong></li>
|
||||
<ul style="margin: 0; padding-left: 0.5rem;">
|
||||
|
||||
{{#if arme}}
|
||||
<li><label class="chat-weapon-name">Dégats {{arme.name}} : {{degats}} ({{degatsFormula}})</label></li>
|
||||
<li style="margin: 0.2rem 0;"><span class="chat-info-badge">Dégâts
|
||||
{{arme.name}}
|
||||
:
|
||||
{{degats}}
|
||||
({{degatsFormula}})</span></li>
|
||||
{{/if}}
|
||||
{{#if loc}}
|
||||
<li>Localisation : {{loc.label}}</li>
|
||||
<li>Touché : {{touche}}</li>
|
||||
<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>
|
||||
<li>Poing avec gantelet: +1 dégat</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if isChargeAPied}}
|
||||
<li>Charge à pied (+Course)</li>
|
||||
<li>Charge à pied (+Course)</li>
|
||||
{{/if}}
|
||||
{{#if isChargeACheval}}
|
||||
<li>Charge à cheval (+Equitation)</li>
|
||||
<li>Charge à cheval (+Equitation)</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if isReussiteCritique}}
|
||||
<li><strong class="chat-result-success">Réussite critique : La blessure a été augmentée d'un niveau</strong></li>
|
||||
<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><strong>{{defenderName}} a subi une blessure!</strong></li>
|
||||
<li>Gravité : {{blessure.name}}</li>
|
||||
<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 "tete")}}
|
||||
{{#if (gt blessure.system.value 0)}}
|
||||
<li><strong class="chat-result-warning">{{defenderName}} doit réussir un test d'Endurance de difficulté 7 ou être
|
||||
assommé</strong></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 "bras")}}
|
||||
{{#if (gt blessure.system.value 2)}}
|
||||
<li><strong class="chat-result-warning">{{defenderName}} lache l'objet tenu par son bras. Il doit faire un test
|
||||
d'endurance
|
||||
pour l'utiliser désormais.</strong></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 "jambe")}}
|
||||
{{#if (gt blessure.system.value 2)}}
|
||||
<li><strong class="chat-result-warning">{{defenderName}} tombe au sol. Pour se relever et marcher, il doit réussir
|
||||
un test
|
||||
d'Endurance à chaque tour.
|
||||
</strong></li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq loc.categorie "main")}}
|
||||
{{#if (gt blessure.system.value 1)}}
|
||||
<li><strong class="chat-result-warning">{{defenderName}} lache l'objet tenu par sa main. Il doit faire un test
|
||||
d'endurance
|
||||
pour l'utiliser désormais.</strong></li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq loc.categorie "pied")}}
|
||||
{{#if (gt blessure.system.value 1)}}
|
||||
<li><strong class="chat-result-warning">{{defenderName}} tombe au sol. Pour se relever et marcher, il doit réussir
|
||||
un test
|
||||
d'Endurance à chaque tour.
|
||||
</strong></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>Aucune blessure subie par {{defenderName}}</li>
|
||||
<li style="margin: 0.3rem 0;"><span class="chat-result-success">✓ Aucune
|
||||
blessure subie par
|
||||
{{defenderName}}</span></li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user