Various automations fixes
This commit is contained in:
@@ -1,75 +0,0 @@
|
||||
<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>
|
||||
<li><strong>Fight result !</strong></li>
|
||||
{{#if successDetails.fumbleDetails}}
|
||||
<li>Fumble ! : {{successDetails.fumbleDetails.data.text}} </li>
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{#if armorResult}}
|
||||
<li>Armor initial result : {{armorResult.rawArmor}}</li>
|
||||
{{#each armorResult.messages as |message idx|}}
|
||||
<li>{{message}}</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
{{#if successDetails.hack_vs_shields}}
|
||||
<li>Hack weapon : check shield !</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if successDetails.entangle}}
|
||||
<li>Entangle weapon : attacker can entangle !</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if successDetails.knockback}}
|
||||
<li>Knockback weapon : check knockback !</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if successDetails.hack_armors}}
|
||||
<li>Hack weapon : check armor damage !</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if successDetails.penetrating_impale}}
|
||||
<li>Penetrating weapon : apply the Impale condition !</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (or successDetails.critical_1 successDetails.critical_2)}}
|
||||
<li>Critical {{#if successDetails.critical_1}} 1 {{else}} 2 {{/if}} : {{successDetails.criticalText}} </li>
|
||||
{{/if}}
|
||||
|
||||
{{#if successDetails.attackerHPLossValue}}
|
||||
<li>Attacker has lost HP : {{successDetails.attackerHPLossValue}} HP </li>
|
||||
{{/if}}
|
||||
|
||||
{{#if successDetails.defenderHPLossValue}}
|
||||
<li>Defender has lost HP : {{successDetails.defenderHPLossValue}} HP </li>
|
||||
{{/if}}
|
||||
|
||||
<li>Success details : {{successDetails.result}} </li>
|
||||
|
||||
<li><strong>Final successes</strong> {{sumSuccess}} </li>
|
||||
|
||||
<!-- <button class="chat-card-button reroll-level-remaining" data-roll-id="{{rollId}}">Reroll</button> -->
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
30
templates/chat/chat-attribute-result.hbs
Normal file
30
templates/chat/chat-attribute-result.hbs
Normal file
@@ -0,0 +1,30 @@
|
||||
<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>
|
||||
|
||||
<div class="flexcol">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
|
||||
<li>Attribute : {{attr.label}} ({{attr.value}})</li>
|
||||
<li>Modifier : {{attributeModifier}}</li>
|
||||
<li>Target : {{targetNumber}}</li>
|
||||
<li>Result : {{diceResult}}</li>
|
||||
|
||||
{{#if isSuccess}}
|
||||
<li><strong>Success !</strong></li>
|
||||
{{else}}
|
||||
<li><strong>Failure ...</strong></li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
@@ -18,7 +18,7 @@
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
|
||||
|
||||
{{#if skill}}
|
||||
<li>Skill : {{skill.name}} ({{skill.total}}%)</li>
|
||||
{{/if}}
|
||||
@@ -30,18 +30,41 @@
|
||||
{{/if}}
|
||||
|
||||
<li>Bonus/Malus: {{bonusMalus}}% </li>
|
||||
|
||||
{{#if extraTime}}
|
||||
<li>Extra time: +30%, time x 2</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if synergyBonus}}
|
||||
<li>Synergy Bonus: +{{synergyBonus}}% </li>
|
||||
{{/if}}
|
||||
|
||||
<li>Target Number: {{percentValue}}% </li>
|
||||
<li>Result: {{diceResult}} </li>
|
||||
<li>Degrees: {{degrees}} </li>
|
||||
<li class="flexrow gm-actions">
|
||||
<span>Degrees: {{degrees}}</span>
|
||||
<a class="chat-roll-opposed">
|
||||
<span data-tooltip="Opposed" class="roll-opposed-icon fa-stack fa-1x">
|
||||
<i class="fa-thin fa-square fa-stack-1x"></i>
|
||||
<i class="fa-solid fa-arrow-right-arrow-left fa-stack-1x "></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{{#if taskId}}
|
||||
<li>Task : {{taskName}}</li>
|
||||
<li>Nb rolls : {{taskNbrolls}} </li>
|
||||
<li>Cumulated : {{taskCumulated}} </li>
|
||||
{{/if}}
|
||||
|
||||
{{#if isCriticalSuccess}}
|
||||
<li><strong>Critical Success !</strong></li>
|
||||
<li><strong>Special Success !</strong></li>
|
||||
{{else}}
|
||||
{{#if isSuccess}}
|
||||
<li><strong>Success !</strong></li>
|
||||
{{else}}
|
||||
{{#if isCriticalFailure}}
|
||||
<li><strong>Critical Failure !</strong></li>
|
||||
<li><strong>Mishap !</strong></li>
|
||||
{{else}}
|
||||
<li><strong>Failure ...</strong></li>
|
||||
{{/if}}
|
||||
|
@@ -1,11 +0,0 @@
|
||||
<div class="chat-message-header">
|
||||
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||
<h4 class=chat-actor-name>{{defenderName}}</h4>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div >
|
||||
{{defenderName}} wins the opposition against {{attackerName}} !
|
||||
</div>
|
||||
|
||||
</div>
|
19
templates/chat/chat-opposition-result.hbs
Normal file
19
templates/chat/chat-opposition-result.hbs
Normal file
@@ -0,0 +1,19 @@
|
||||
<div class="chat-message-header">
|
||||
|
||||
<img class="actor-icon" src="{{winner.actorImg}}" alt="{{winner.alias}}" />
|
||||
|
||||
<span data-tooltip="Opposed" class="roll-opposed-icon fa-stack fa-1x">
|
||||
<i class="fa-thin fa-square fa-stack-1x"></i>
|
||||
<i class="fa-solid fa-arrow-right-arrow-left fa-stack-1x "></i>
|
||||
</span>
|
||||
|
||||
<img class="actor-icon" src="{{looser.actorImg}}" alt="{{looser.alias}}" />
|
||||
<label class="chat-actor-name-opposition">{{winner.alias}} vs {{looser.alias}}</label>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div >
|
||||
<label class="chat-result-success">{{winner.alias}} ({{winner.skill.name}}, {{winner.diceResult}}) wins opposition against {{looser.alias}} ({{looser.skill.name}}, {{looser.diceResult}})</label>
|
||||
</div>
|
||||
|
||||
|
@@ -1,46 +0,0 @@
|
||||
<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>
|
||||
|
||||
{{#if isRangedAttack}}
|
||||
<div>{{defender.name}} is under Ranged attack. He must roll a Target Roll to defend himself.</div>
|
||||
{{else}}
|
||||
<div>{{defender.name}} is under Melee attack. He must roll a Defense Roll to defend himself.</div>
|
||||
{{/if}}
|
||||
|
||||
<ul>
|
||||
{{#if isRangedAttack}}
|
||||
<li>
|
||||
<button class="chat-card-button roll-defense-ranged" data-roll-id="{{@root.rollId}}">Roll Target !</button>
|
||||
</li>
|
||||
{{else}}
|
||||
<li>
|
||||
{{#each defenderWeapons as |weapon idx|}}
|
||||
<button class="chat-card-button roll-defense-melee" data-defense-weapon-id="{{weapon._id}}"
|
||||
data-roll-id="{{@root.rollId}}">{{weapon.name}}</button>
|
||||
{{/each}}
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<!-- <button class="chat-card-button reroll-level-remaining" data-roll-id="{{rollId}}">Reroll</button> -->
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user