fvtt-cthulhu-eternal/templates/chat-message.hbs

56 lines
2.1 KiB
Handlebars
Raw Normal View History

{{!log 'chat-message' this}}
<div class="{{cssClass}}">
<div class="intro-chat">
2024-12-17 09:25:02 +01:00
<div class="intro-img">
<img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
</div>
2024-12-17 15:47:36 +01:00
<div class="intro-right">
<ul>
2024-12-18 18:45:47 +01:00
{{#if (eq rollType "char")}}
<li><strong>{{localize "CTHULHUETERNAL.Label.charRoll"}}</strong></li>
{{/if}}
2025-01-04 22:24:39 +01:00
2024-12-17 15:47:36 +01:00
{{#if (eq rollType "skill")}}
2024-12-18 18:45:47 +01:00
<li><strong>{{localize "CTHULHUETERNAL.Label.skillRoll"}}</strong></li>
2024-12-17 15:47:36 +01:00
{{/if}}
2025-01-04 22:24:39 +01:00
{{#if weapon}}
<li><strong>Weapon : {{weapon.name}}</strong></li>
{{/if}}
2024-12-18 18:45:47 +01:00
<li><strong>{{rollItem.name}} : {{initialScore}}%</strong></li>
<li>{{localize "CTHULHUETERNAL.Label.modifier"}} : {{modifier}}%</li>
<li>{{localize "CTHULHUETERNAL.Label.targetScore"}} : {{targetScore}}%</li>
2024-12-17 15:47:36 +01:00
{{#if isSuccess}}
{{#if isCritical}}
<li class="result-critical-success">{{localize "CTHULHUETERNAL.Label.criticalSuccess"}}</li>
{{else}}
<li class="result-success">{{localize "CTHULHUETERNAL.Label.success"}}</li>
{{/if}}
{{/if}}
{{#if isFailure}}
{{#if isCritical}}
<li class="result-critical-failure">{{localize "CTHULHUETERNAL.Label.criticalFailure"}}</li>
{{else}}
<li class="result-failure">{{localize "CTHULHUETERNAL.Label.failure"}}</li>
{{/if}}
{{/if}}
</ul>
</div>
</div>
{{#if isDamage}}
<div>
{{#if (and isGM hasTarget)}}
2024-12-17 15:47:36 +01:00
{{{localize "CTHULHUETERNAL.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>