Empoignade V2
This commit is contained in:
@@ -1,25 +1,24 @@
|
||||
{{log this}}
|
||||
<div class="roll-chat" data-passearme="{{passeArme}}">
|
||||
<div class="chat-img">
|
||||
<img src="{{opponent.img}}" data-tooltip="{{opponent.name}}" />
|
||||
<img src="{{active.img}}" data-tooltip="{{active.name}}" />
|
||||
</div>
|
||||
|
||||
<div class="chat-header">
|
||||
<h4>Défense de {{opponent.name}}</h4>
|
||||
<h4>Défense de {{active.name}}</h4>
|
||||
</div>
|
||||
|
||||
<div class="chat-resume">
|
||||
{{#if (eq opponent.surprise.key 'totale')}}
|
||||
<span><strong>{{opponent.name}}</strong> est totalement surpris</span>
|
||||
{{#if (eq active.surprise.key 'totale')}}
|
||||
<span><strong>{{active.name}}</strong> est totalement surpris</span>
|
||||
{{else}}
|
||||
<span><strong>{{opponent.name}}</strong> doit se défendre
|
||||
{{~#if (eq opponent.surprise.key 'demi')}} avec une significative {{/if}} d'une attaque
|
||||
{{~#if particuliere}} <strong>particulière en
|
||||
{{~#if (eq particuliere 'finesse')}} finesse
|
||||
<span><strong>{{active.name}}</strong> doit se défendre
|
||||
{{~#if (eq active.surprise.key 'demi')}} avec une significative {{/if}} d'une attaque
|
||||
{{~#if attackerRoll.particuliere}} <strong>particulière en
|
||||
{{~#if (eq attackerRoll.particuliere 'finesse')}} finesse
|
||||
{{else if (eq particuliere 'force')}} force
|
||||
{{else if (eq particuliere 'rapidite')}} rapidité
|
||||
{{/if~}}</strong>
|
||||
{{/if}} de {{active.name}} ({{current.attaque.label}}):
|
||||
{{/if}} de {{opponent.name}} ({{attackerRoll.current.attaque.label}}):
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
@@ -28,30 +27,23 @@
|
||||
</div>
|
||||
|
||||
<div class="chat-actions">
|
||||
{{#unless (eq opponent.surprise.key 'totale')}}
|
||||
{{#unless (eq active.surprise.key 'totale')}}
|
||||
<a class='chat-card-button button-defense'
|
||||
data-attackerId='{{ids.actorId}}'
|
||||
data-attackerTokenId='{{ids.actorTokenId}}'
|
||||
data-defenderTokenId='{{ids.opponentTokenId}}'
|
||||
data-attackerId='{{ids.opponentId}}'
|
||||
data-attackerTokenId='{{ids.opponentTokenId}}'
|
||||
data-defenderId='{{ids.actorId}}'
|
||||
data-defenderTokenId='{{ids.actorTokenId}}'
|
||||
>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/actions/defense.svg"/>
|
||||
Se défendre
|
||||
{{#if (or (eq attaqueCategorie 'tir') (eq attaqueCategorie 'lancer'))}}
|
||||
{{#if (or (eq attackerRoll.attaqueCategorie 'tir') (eq attackerRoll.attaqueCategorie 'lancer'))}}
|
||||
(difficulté à déterminer)
|
||||
{{else}}
|
||||
à {{current.diff.value}}
|
||||
à {{attackerRoll.current.diff.value}}
|
||||
{{/if}}
|
||||
</a>
|
||||
{{/unless}}
|
||||
{{#unless (eq dmg.mortalite 'empoignade')}}
|
||||
<a class='chat-card-button encaissement'
|
||||
data-tooltip="Encaisser à {{plusMoins dmg.total}} {{#if (eq dmg.mortalite 'non-mortel')~}}(non-mortel){{/if}}"
|
||||
>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/encaisser.svg"/>
|
||||
Encaisser à {{plusMoins dmg.total}}
|
||||
{{#if (eq dmg.mortalite 'non-mortel')~}}(non-mortel){{/if}}
|
||||
</a>
|
||||
{{/unless}}
|
||||
{{> 'partial-encaissement'}}
|
||||
</div>
|
||||
|
||||
<div class="chat-buttons">
|
||||
|
||||
Reference in New Issue
Block a user