64 lines
1.6 KiB
Handlebars
64 lines
1.6 KiB
Handlebars
<div class="chat-message-header">
|
|
{{#if actorImg}}
|
|
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
|
{{/if}}
|
|
<h4 class=chat-actor-name>{{alias}}</h4>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
{{#if img}}
|
|
<div >
|
|
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="flexcol">
|
|
</div>
|
|
|
|
<div>
|
|
<ul>
|
|
|
|
{{#if skill}}
|
|
<li>Skill : {{skill.name}} ({{skill.total}}%)</li>
|
|
{{/if}}
|
|
{{#if weapon}}
|
|
<li>Weapon : {{weapon.name}}</li>
|
|
<li>Location hit : {{upperFirst weaponAiming}} ({{locationMalus}})</li>
|
|
{{/if}}
|
|
{{#if isAboveEffectiveRange}}
|
|
<li>Above effective range: yes, -30% applied</li>
|
|
{{/if}}
|
|
|
|
<li>Bonus/Malus: {{bonusMalus}}% </li>
|
|
<li>Final score: {{percentValue}}% </li>
|
|
<li>Result: {{diceResult}} </li>
|
|
<li>Degrees: {{degrees}} </li>
|
|
|
|
{{#if isCriticalSuccess}}
|
|
<li><strong>Critical Success !</strong></li>
|
|
{{else}}
|
|
{{#if isSuccess}}
|
|
<li><strong>Success !</strong></li>
|
|
{{else}}
|
|
{{#if isCriticalFailure}}
|
|
<li><strong>Critical Failure !</strong></li>
|
|
{{else}}
|
|
<li><strong>Failure ...</strong></li>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if (and weapon isSuccess)}}
|
|
<li>Roll Damage: [[/r {{weapon.system.damage}}]]</li>
|
|
{{/if}}
|
|
|
|
{{#if (and (not isSuccess) rerolls)}}
|
|
<button class="chat-card-button chat-reroll">Reroll !</button>
|
|
{{/if}}
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|