2024-12-04 00:11:23 +01:00
|
|
|
{{!log 'chat-message' this}}
|
|
|
|
<div class="{{cssClass}}">
|
2025-01-07 22:22:15 +01:00
|
|
|
<div class="intro-chat">
|
|
|
|
<div class="intro-img">
|
|
|
|
<img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
|
|
|
|
</div>
|
|
|
|
<div class="intro-right">
|
|
|
|
<ul>
|
|
|
|
{{#if (eq rollType "char")}}
|
|
|
|
<li><strong>{{localize "CTHULHUETERNAL.Label.charRoll"}}</strong></li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (eq rollType "skill")}}
|
|
|
|
<li><strong>{{localize "CTHULHUETERNAL.Label.skillRoll"}}</strong></li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if weapon}}
|
|
|
|
<li><strong>Weapon : {{weapon.name}}</strong></li>
|
|
|
|
{{/if}}
|
2025-01-25 18:24:20 +01:00
|
|
|
|
|
|
|
{{#if (eq rollType "resource")}}
|
|
|
|
<li><strong>{{rollItem.name}} : {{initialScore}}</strong></li>
|
|
|
|
{{else}}
|
2025-01-07 22:22:15 +01:00
|
|
|
<li><strong>{{rollItem.name}} : {{initialScore}}%</strong></li>
|
2025-01-25 18:24:20 +01:00
|
|
|
{{/if}}
|
2025-01-07 22:22:15 +01:00
|
|
|
|
|
|
|
{{#if isZeroWP}}
|
|
|
|
<li class="red-warning">Zero WP : Automatic failure (ie 0%)</li>
|
|
|
|
{{else}}
|
|
|
|
{{#if isLowWP}}
|
|
|
|
<li class="orange-warning">Low WP : -20%</li>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if isExhausted}}
|
|
|
|
<li class="orange-warning">Exhausted : -20%</li>
|
|
|
|
{{/if}}
|
2025-01-04 22:24:39 +01:00
|
|
|
|
2025-01-25 18:24:20 +01:00
|
|
|
{{#if (eq rollType "resource")}}
|
|
|
|
<li>{{localize "CTHULHUETERNAL.Label.multiplier"}} : {{multiplier}}</li>
|
|
|
|
{{else}}
|
2025-01-07 22:22:15 +01:00
|
|
|
<li>{{localize "CTHULHUETERNAL.Label.modifier"}} : {{modifier}}%</li>
|
2025-01-25 18:24:20 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2025-01-07 22:22:15 +01:00
|
|
|
<li>{{localize "CTHULHUETERNAL.Label.targetScore"}} : {{targetScore}}%</li>
|
|
|
|
{{#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>
|
2024-12-04 00:11:23 +01:00
|
|
|
</div>
|
2025-01-07 22:22:15 +01:00
|
|
|
</div>
|
|
|
|
{{#if isDamage}}
|
|
|
|
<div>
|
|
|
|
{{#if (and isGM hasTarget)}}
|
|
|
|
{{{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>
|