Files
fvtt-hellborn/templates/chat-message.hbs
LeRatierBretonnien eea83aa10e
All checks were successful
Release Creation / build (release) Successful in 51s
Various fixes
2025-06-15 16:32:47 +02:00

89 lines
2.4 KiB
Handlebars

<div class="{{cssClass}}">
<div class="intro-chat">
<div class="intro-img">
<img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
{{actorName}}
</div>
<div class="intro-right">
{{#if (eq rollType "stat")}}
<h2>{{localize "HELLBORN.Label.statRoll"}}</h2>
{{/if}}
{{#if weapon}}
<h2>{{weapon.name}}</strong></h2>
{{/if}}
<ul>
<li><strong>Properties :</strong> {{weapon.system.properties}}</li>
<li>
<span>
<span class="chat-roll-label"><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></span>
<span>{{localize "HELLBORN.Label.difficulty"}} : {{difficulty}}</span>
</span>
</li>
{{#if (gt nbAdvantages 0)}}
<li>With Advantage !</li>
{{/if}}
{{#if (gt nbDisadvantages 0)}}
<li>With Disadvantages ! </li>
{{/if}}
<li class="chat-results-spacing">Results :
{{#each results as |result|}}
{{result.result}}
{{/each}}
</li>
{{#if isSuccess}}
{{#if satanicSuccess}}
<li class="chat-results-spacing result-satanic-success">
{{localize "HELLBORN.Label.satanicSuccess"}}
</li>
{{else}}
<li class="chat-results-spacing result-success">
{{localize "HELLBORN.Label.success"}}
</li>
{{/if}}
{{/if}}
{{#if isFailure}}
{{#if fiendishFailure}}
<li class="chat-results-spacing result-fiendish-failure">
{{localize "HELLBORN.Label.fiendishFailure"}}
</li>
{{else}}
<li class="chat-results-spacing result-failure">
{{localize "HELLBORN.Label.failure"}}
</li>
{{/if}}
{{/if}}
{{#if (eq resultType "unknown")}}
<li class="chat-results-spacing result-unknown">
{{localize "HELLBORN.Label.unknown"}}
</li>
{{/if}}
</ul>
</div>
</div>
{{#if isDamage}}
<div>
{{#if (and isGM hasTarget)}}
{{{localize "HELLBORN.Roll.displayArmor" targetName=targetName targetArmor=targetArmor
realDamage=realDamage}}}
{{/if}}
</div>
{{/if}}
{{#unless isPrivate}}
<div class="dice-result">
<h4 class="dice-total">{{total}}</h4>
<div class="dice-formula">{{formula}}</div>
{{{tooltip}}}
</div>
{{/unless}}
</div>