This repository has been archived on 2024-05-29. You can view files and clone it, but cannot push or open issues or pull requests.
fvtt-warhero/templates/chat-generic-result.html

63 lines
1.7 KiB
HTML
Raw Normal View History

2023-01-04 21:24:56 +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}}
2023-01-29 18:32:30 +01:00
<div>
<ul>
2023-02-07 15:18:00 +01:00
{{#if (eq mode "save")}}
<li>{{localize "WH.chat.save"}} {{localize stat.label}} : {{stat.save}}</li>
{{else}}
{{#if stat}}
<li>{{localize stat.label}} : {{stat.value}}</li>
{{/if}}
2023-01-29 18:32:30 +01:00
{{/if}}
2023-02-07 15:18:00 +01:00
2023-01-29 18:32:30 +01:00
{{#if weapon}}
<li>{{localize "WH.ui.weapon"}} : {{weapon.name}}</li>
{{/if}}
{{#if hasBM}}
<li>Bonus/Malus : {{bonusMalus}}</li>
{{/if}}
2023-02-07 15:18:00 +01:00
2023-02-06 07:37:39 +01:00
{{#if usemWeaponMalus}}
2023-02-14 13:46:59 +01:00
<li>{{localize "WH.chat.mweaponmalus"}}: {{mWeaponMalus}}</li>
2023-02-06 07:37:39 +01:00
{{/if}}
2023-02-08 19:38:09 +01:00
{{#if diceFormula}}
<li>Formula : {{diceFormula}}</li>
{{#if isCriticalSuccess}}
2023-02-14 13:46:59 +01:00
<li><span class="crit-success">{{localize "WH.chat.diceresult"}} : {{diceResult}}</span></li>
2023-02-07 15:18:00 +01:00
{{else}}
2023-02-08 19:38:09 +01:00
{{#if isCriticalFailure}}
2023-02-14 13:46:59 +01:00
<li><span class="crit-failure">{{localize "WH.chat.diceresult"}} : {{diceResult}}</span></li>
2023-02-08 19:38:09 +01:00
{{else}}
2023-02-14 13:46:59 +01:00
<li>{{localize "WH.chat.diceresult"}} : <span>{{diceResult}}</span></li>
2023-02-08 19:38:09 +01:00
{{/if}}
2023-02-07 15:18:00 +01:00
{{/if}}
{{/if}}
2023-01-29 18:32:30 +01:00
{{#if power}}
<li>{{localize "WH.ui.power"}} : {{power.name}}</li>
2023-02-08 19:38:09 +01:00
<li>{{localize "WH.ui.magicschool"}} : {{power.system.magicschool}}</li>
<li>{{localize "WH.ui.level"}} : {{power.system.level}}</li>
2023-01-29 18:32:30 +01:00
<li>{{{powerText}}}</li>
{{else}}
2023-02-14 13:46:59 +01:00
<li><strong>{{localize "WH.chat.result"}} : {{roll.total}} </strong></li>
2023-01-29 18:32:30 +01:00
{{/if}}
2023-01-04 21:24:56 +01:00
2023-01-29 18:32:30 +01:00
</ul>
</div>
2023-01-04 21:24:56 +01:00
</div>