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

100 lines
3.0 KiB
Handlebars
Raw Normal View History

2022-11-27 08:58:19 +01:00
<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>
2024-06-10 14:30:12 +02:00
2022-11-27 08:58:19 +01:00
{{#if skill}}
2023-04-14 17:01:29 +02:00
<li>Skill : {{skill.name}} ({{skill.total}}%)</li>
2022-11-27 08:58:19 +01:00
{{/if}}
2023-04-14 17:01:29 +02:00
{{#if weapon}}
<li>Weapon : {{weapon.name}}</li>
{{/if}}
{{#if isAboveEffectiveRange}}
<li>Above effective range: yes, -30% applied</li>
{{/if}}
<li>Bonus/Malus: {{bonusMalus}}% </li>
2024-06-10 14:30:12 +02:00
{{#if extraTime}}
<li>Extra time: +30%, time x 2</li>
{{/if}}
{{#if synergyBonus}}
<li>Synergy Bonus: +{{synergyBonus}}% </li>
{{/if}}
2023-10-21 14:16:06 +02:00
<li>Target Number: {{percentValue}}% </li>
2023-04-14 17:01:29 +02:00
<li>Result: {{diceResult}} </li>
2024-06-10 14:30:12 +02:00
<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>
2022-11-27 08:58:19 +01:00
2024-06-10 14:30:12 +02:00
{{#if taskId}}
<li>Task : {{taskName}}</li>
<li>Nb rolls : {{taskNbrolls}} </li>
<li>Cumulated : {{taskCumulated}} </li>
{{/if}}
2023-01-02 14:54:59 +01:00
{{#if isCriticalSuccess}}
2024-06-10 14:30:12 +02:00
<li><strong>Special Success !</strong></li>
2022-12-30 22:27:38 +01:00
{{else}}
2023-01-02 14:54:59 +01:00
{{#if isSuccess}}
<li><strong>Success !</strong></li>
{{else}}
{{#if isCriticalFailure}}
2024-06-10 14:30:12 +02:00
<li><strong>Mishap !</strong></li>
2023-01-02 14:54:59 +01:00
{{else}}
<li><strong>Failure ...</strong></li>
{{/if}}
{{/if}}
2022-11-27 08:58:19 +01:00
{{/if}}
2023-04-14 17:01:29 +02:00
{{#if (and weapon isSuccess)}}
2023-10-23 16:38:34 +02:00
<li>Location hit : {{upperFirst weaponAiming}} ({{locationMalus}})</li>
2023-10-21 10:25:39 +02:00
{{#if weapon.ammo}}
2023-10-23 16:38:34 +02:00
<li>Roll Ammo Damage ({{weapon.ammo.name}}): [[/r {{weapon.ammo.system.damage}}*{{damageMultiplier}}]]</li>
2023-10-21 14:16:06 +02:00
<li>BR: {{weapon.ammo.system.br}}</li>
2023-10-21 10:25:39 +02:00
{{else}}
{{#if weapon.system.hashpdamage}}
2023-10-23 16:38:34 +02:00
<li>Roll HP Damage: [[/r {{weapon.system.damage}}*{{damageMultiplier}}]]</li>
2023-10-21 10:25:39 +02:00
{{/if}}
{{#if weapon.system.hasfatiguedamage}}
2023-10-23 16:38:34 +02:00
<li>Roll Fatigue Damage: [[/r {{weapon.ammo.system.fatiguedamage}}*{{damageMultiplier}}]]</li>
2023-10-21 10:25:39 +02:00
{{/if}}
2023-10-24 07:05:01 +02:00
<li>BR: {{weapon.system.br}}</li>
2023-10-02 23:07:58 +02:00
{{/if}}
2023-10-21 14:16:06 +02:00
<li>Penetration : {{mul weapon.system.penetrationmin damageMultiplier}} - {{mul weapon.system.penetrationmax damageMultiplier}}</li>
2023-04-14 17:01:29 +02:00
{{/if}}
{{#if (and (not isSuccess) rerolls)}}
<button class="chat-card-button chat-reroll">Reroll !</button>
{{/if}}
2022-11-27 08:58:19 +01:00
</ul>
</div>
</div>