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

77 lines
2.4 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>
{{#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>
<li>Location hit : {{upperFirst weaponAiming}} ({{locationMalus}})</li>
{{/if}}
{{#if isAboveEffectiveRange}}
<li>Above effective range: yes, -30% applied</li>
{{/if}}
<li>Bonus/Malus: {{bonusMalus}}% </li>
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>
<li>Degrees: {{degrees}} </li>
2022-11-27 08:58:19 +01:00
2023-01-02 14:54:59 +01:00
{{#if isCriticalSuccess}}
<li><strong>Critical 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}}
<li><strong>Critical Failure !</strong></li>
{{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-21 10:25:39 +02:00
{{#if weapon.ammo}}
2023-10-21 14:16:06 +02:00
<li>Roll Ammo Damage ({{weapon.ammo.name}}): [[/r {{weapon.ammo.system.damage}}*{{damageMultiplier}}*{{locationMultiplier}}]]</li>
<li>BR: {{weapon.ammo.system.br}}</li>
2023-10-21 10:25:39 +02:00
{{else}}
{{#if weapon.system.hashpdamage}}
2023-10-21 14:16:06 +02:00
<li>Roll HP Damage: [[/r {{weapon.system.damage}}*{{damageMultiplier}}*{{locationMultiplier}}]]</li>
2023-10-21 10:25:39 +02:00
{{/if}}
{{#if weapon.system.hasfatiguedamage}}
2023-10-21 14:16:06 +02:00
<li>Roll Fatigue Damage: [[/r {{weapon.ammo.system.fatiguedamage}}*{{damageMultiplier}}*{{locationMultiplier}}]]</li>
2023-10-21 10:25:39 +02:00
{{/if}}
2023-10-21 14:16:06 +02:00
<li>BR: [[/r {{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>