fvtt-pegasus-rpg/templates/chat-generic-result.html

58 lines
1.5 KiB
HTML
Raw Normal View History

2021-12-02 07:38:59 +01:00
<div class="chat-message-header">
2022-01-13 16:13:00 +01:00
{{#if actorImg}}
2021-12-02 07:38:59 +01:00
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
2022-01-13 16:13:00 +01:00
{{/if}}
2021-12-02 07:38:59 +01:00
<h4 class=chat-actor-name>{{alias}}</h4>
</div>
<hr>
2022-01-13 16:13:00 +01:00
{{#if img}}
2021-12-02 07:38:59 +01:00
<div >
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
</div>
2022-01-13 16:13:00 +01:00
{{/if}}
2021-12-02 07:38:59 +01:00
<div class="flexcol">
</div>
<div>
<ul>
2022-01-14 14:49:16 +01:00
{{#if weapon}}
<li>Weapon : {{weapon.name}}</li>
{{/if}}
2022-01-14 18:20:15 +01:00
{{#if power}}
<li>Power : {{power.name}}</li>
{{/if}}
2022-01-14 14:49:16 +01:00
{{#if isDamage}}
<li>Weapon Damage Dice : {{weapon.data.damageDice}}</li>
{{/if}}
2022-01-14 18:20:15 +01:00
{{#if isResistance}}
<li>Armor Resistance Dice : {{armor.data.resistanceDice}}</li>
{{/if}}
2022-01-11 23:35:23 +01:00
{{#if stat}}
<li>Statistic : {{stat.label}}</li>
{{/if}}
{{#if spec}}
<li>Specialisation : {{spec.name}}</li>
2021-12-02 07:38:59 +01:00
{{/if}}
2022-01-14 18:20:15 +01:00
{{#if isResistance}}
<li><strong>Defense Result : {{finalScore}}</strong>
2022-01-14 14:49:16 +01:00
{{else}}
2022-01-14 18:20:15 +01:00
{{#if isDamage}}
<li><strong>Damages : {{finalScore}}</strong>
{{else}}
<li><strong>Final Result : {{finalScore}}</strong>
{{/if}}
2022-01-14 14:49:16 +01:00
{{/if}}
2021-12-02 07:38:59 +01:00
{{#if linkedRollId}}
<li><button class="chat-card-button apply-defense-roll" data-roll-score="{{finalScore}}" data-roll-id="{{@root.rollId}}" data-actor-id="{{actorId}}" data-defender-id="{{defenseAttackerId}}">Use this Roll as defense</button></li>
{{/if}}
</ul>
</div>
</div>