fvtt-dark-stars/templates/chat/chat-generic-result.hbs

100 lines
3.0 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>
{{/if}}
{{#if isAboveEffectiveRange}}
<li>Above effective range: yes, -30% applied</li>
{{/if}}
<li>Bonus/Malus: {{bonusMalus}}% </li>
{{#if extraTime}}
<li>Extra time: +30%, time x 2</li>
{{/if}}
{{#if synergyBonus}}
<li>Synergy Bonus: +{{synergyBonus}}% </li>
{{/if}}
<li>Target Number: {{percentValue}}% </li>
<li>Result: {{diceResult}} </li>
<li class="flexrow gm-actions">
<span>Degrees: {{degrees}}</span>
<a class="chat-roll-opposed">
<span data-tooltip="Opposed" class="roll-opposed-icon fa-stack fa-1x">
<i class="fa-thin fa-square fa-stack-1x"></i>
<i class="fa-solid fa-arrow-right-arrow-left fa-stack-1x "></i>
</span>
</a>
</li>
{{#if taskId}}
<li>Task : {{taskName}}</li>
<li>Nb rolls : {{taskNbrolls}} </li>
<li>Cumulated : {{taskCumulated}} </li>
{{/if}}
{{#if isCriticalSuccess}}
<li><strong>Special Success !</strong></li>
{{else}}
{{#if isSuccess}}
<li><strong>Success !</strong></li>
{{else}}
{{#if isCriticalFailure}}
<li><strong>Mishap !</strong></li>
{{else}}
<li><strong>Failure ...</strong></li>
{{/if}}
{{/if}}
{{/if}}
{{#if (and weapon isSuccess)}}
<li>Location hit : {{upperFirst weaponAiming}} ({{locationMalus}})</li>
{{#if weapon.ammo}}
<li>Roll Ammo Damage ({{weapon.ammo.name}}): [[/r {{weapon.ammo.system.damage}}*{{damageMultiplier}}]]</li>
<li>BR: {{weapon.ammo.system.br}}</li>
{{else}}
{{#if weapon.system.hashpdamage}}
<li>Roll HP Damage: [[/r {{weapon.system.damage}}*{{damageMultiplier}}]]</li>
{{/if}}
{{#if weapon.system.hasfatiguedamage}}
<li>Roll Fatigue Damage: [[/r {{weapon.ammo.system.fatiguedamage}}*{{damageMultiplier}}]]</li>
{{/if}}
<li>BR: {{weapon.system.br}}</li>
{{/if}}
<li>Penetration : {{mul weapon.system.penetrationmin damageMultiplier}} - {{mul weapon.system.penetrationmax damageMultiplier}}</li>
{{/if}}
{{#if (and (not isSuccess) rerolls)}}
<button class="chat-card-button chat-reroll">Reroll !</button>
{{/if}}
</ul>
</div>
</div>