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

64 lines
1.6 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>
<li>Final score: {{percentValue}}% </li>
<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)}}
<li>Roll Damage: [[/r {{weapon.system.damage}}]]</li>
{{/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>