131 lines
4.8 KiB
Handlebars
131 lines
4.8 KiB
Handlebars
{{!log 'chat-message' this}}
|
|
<div class="{{cssClass}}">
|
|
<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 isNudgedRoll}}
|
|
<li><strong>{{localize "CTHULHUETERNAL.Label.nudgedRoll"}} : {{wpCost}} {{localize "CTHULHUETERNAL.Label.WPSpent"}}</strong></li>
|
|
{{/if}}
|
|
|
|
{{#if weapon}}
|
|
<li><strong>{{localize "CTHULHUETERNAL.Label.Weapon"}} : {{weapon.name}}</strong></li>
|
|
{{/if}}
|
|
|
|
{{#if (eq rollType "resource")}}
|
|
<li><strong>{{rollItem.name}} : {{initialScore}}</strong></li>
|
|
{{else}}
|
|
<li><strong>{{rollItem.name}} : {{initialScore}}%</strong></li>
|
|
{{/if}}
|
|
|
|
{{#if isZeroWP}}
|
|
<li class="red-warning">{{localize "CTHULHUETERNAL.Label.ZeroWP"}}</li>
|
|
{{else}}
|
|
{{#if isLowWP}}
|
|
<li class="orange-warning">{{localize "CTHULHUETERNAL.Label.LowWP"}} : -20%</li>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if isExhausted}}
|
|
<li class="orange-warning">{{localize "CTHULHUETERNAL.Label.Exhausted"}} : -20%</li>
|
|
{{/if}}
|
|
|
|
{{#if (eq rollType "resource")}}
|
|
<li>{{localize "CTHULHUETERNAL.Label.multiplier"}} : {{multiplier}}</li>
|
|
{{else}}
|
|
<li>{{localize "CTHULHUETERNAL.Label.modifier"}} : {{totalModifier}}%</li>
|
|
{{/if}}
|
|
|
|
<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"}}
|
|
{{#if isNudge}}
|
|
<a class="nudge-roll" data-tooltip="{{localize "CTHULHUETERNAL.Label.rollNudge"}}"><i class="fa-solid fa-circle-sort-down"></i></a>
|
|
{{/if}}
|
|
|
|
</li>
|
|
{{/if}}
|
|
{{#if (eq rollType "weapon")}}
|
|
<li>
|
|
{{#if (eq weapon.system.weaponType "rangedfirearm")}}
|
|
{{#if weapon.system.hasDamageDistance}}
|
|
{{#each weapon.system.damageDistance as |damageDistance|}}
|
|
{{#if (gt damageDistance.distance 0)}}
|
|
<a class="damage-roll" data-item-id="{{weapon.id}}" data-action="roll" data-roll-type="damage"
|
|
data-roll-value="{{damageDistance.damage}}" >
|
|
<i class="fa-solid fa-gun"></i>
|
|
<span class="damage-distance">{{damageDistance.distance}}:{{damageDistance.damage}} </span>
|
|
</a>
|
|
{{/if}}
|
|
{{/each}}
|
|
{{else}}
|
|
<a class="damage-roll" data-roll-value="{{weapon.system.damage}}" data-tooltip="{{localize "CTHULHUETERNAL.Label.rollDamage"}}"><i class="fa-solid fa-gun"></i></a>
|
|
{{/if}}
|
|
{{else}}
|
|
<a class="damage-roll" data-roll-value="{{weapon.system.damage}}" data-tooltip="{{localize "CTHULHUETERNAL.Label.rollDamage"}}"><i class="fa-solid fa-sword"></i></a>
|
|
{{/if}}
|
|
</li>
|
|
{{/if}}
|
|
{{#if (eq rollType "skill") }}
|
|
{{#if rollItem.system.isHealing}}
|
|
<li>
|
|
<a class="healing-roll" data-tooltip="{{localize "CTHULHUETERNAL.Label.rollHealing"}}"><i class="fa-solid fa-heart"></i></a>
|
|
</li>
|
|
{{/if}}
|
|
{{/if}}
|
|
</li>
|
|
|
|
{{/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 isNudge}}
|
|
<li>
|
|
<a class="nudge-roll" data-tooltip="{{localize "CTHULHUETERNAL.Label.rollNudge"}}"><i class="fa-solid fa-circle-sort-down"></i></a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
|
|
{{/if}}
|
|
</ul>
|
|
</div>
|
|
</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> |