62 lines
2.1 KiB
HTML
62 lines
2.1 KiB
HTML
<div class="chat-message-header">
|
|
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
|
<h4 class=chat-actor-name>{{alias}}</h4>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div >
|
|
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
|
|
<h4>
|
|
{{#if (eq mode "skill")}}
|
|
Skill : {{skill.name}}
|
|
{{else}}
|
|
{{#if (eq mode "technique")}}
|
|
Technique : {{technique.name}}
|
|
{{else}}
|
|
{{#if (eq mode "weapon")}}
|
|
Weapon attack : {{weapon.name}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</h4>
|
|
</div>
|
|
|
|
<div class="flexcol">
|
|
<div class="dice-total">
|
|
{{#each diceResults as |diceResult key|}}
|
|
<div class="dice">
|
|
{{#if (gt @root.nbDice 2)}}
|
|
<a class="dice-to-river" data-actor-id="{{@root.actorId}}" data-roll-id="{{@root.rollId}}" data-dice-index="{{key}}" data-dice-value="{{diceResult.result}}">
|
|
{{/if}}
|
|
<label>{{diceResult.result}}</label>
|
|
<img src="systems/fvtt-weapons-of-the-gods/images/dice/d10black.svg" />
|
|
{{#if (gt @root.nbDice 2)}}
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
|
|
<div>
|
|
<ul>
|
|
{{#if (eq mode "technique")}}
|
|
<li>{{technique.data.chicolor}} Chi cost : {{technique.data.chicost}} </li>
|
|
<li><button class="chat-card-button apply-technique-cost" data-actor-id="{{actorId}}" data-roll-id="{{@root.rollId}}" data-technique-id="{{technique._id}}">Apply Chi cost</button></li>
|
|
<li>Effect description : {{technique.data.effectdescription}}</li>
|
|
{{/if}}
|
|
{{#if (eq mode "weapon")}}
|
|
<li>Effect description : {{weapon.data.effectdescription}}</li>
|
|
{{/if}}
|
|
<li>Modifiers : {{negativeModifier}} / {{positiveModifier}} </li>
|
|
<li><strong>Total Roll : {{finalScore}}</strong>
|
|
|
|
{{#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>
|