Avancement messages défense & oeuvres
This commit is contained in:
@@ -1,31 +1,52 @@
|
||||
<h4>
|
||||
{{log this}}
|
||||
<img class="chat-icon" src="{{competence.img}}" data-tooltip="{{competence.name}}" />
|
||||
{{alias}} esquive une attaque à {{diffLibre}}</h4>
|
||||
<p>{{selectedCarac.label}}{{#unless (eq selectedCarac.label competence.name)}} / {{competence.name}}{{/unless}}</p>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.hbs"}}
|
||||
<hr>
|
||||
<p>
|
||||
{{#if rolled.isSuccess}}
|
||||
<span>Attaque esquivée!</span>
|
||||
{{#if rolled.isPart}}
|
||||
<!-- TODO: cas de parade à mains nues, texte à modifier -->
|
||||
<span><strong>{{alias}} peut faire une deuxième esquive!</strong></span>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<span>L'esquive de {{alias}} a échoué!</span>
|
||||
{{/if}}
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.hbs"}}
|
||||
</p>
|
||||
{{log this}}
|
||||
<div class="roll-chat">
|
||||
<div class="chat-img">
|
||||
<img src="{{active.img}}" data-tooltip="{{active.name}}" />
|
||||
<img src="{{competence.img}}" data-tooltip="{{competence.name}}" />
|
||||
</div>
|
||||
|
||||
{{#if attackerRoll.tactique}}
|
||||
<p>
|
||||
{{#if (eq attackerRoll.tactique 'charge')}}
|
||||
<img class="chat-icon" src="icons/svg/thrust.svg" data-tooltip="charge" height="32" width="32" />
|
||||
C'était une charge, les parades de l'adversaire de {{alias}} auront un -4 et il ne pourra pas esquiver!
|
||||
{{ else if (eq attackerRoll.tactique 'feinte')}}
|
||||
<img class="chat-icon" src="systems/foundryvtt-reve-de-dragon/icons/heures/hd06.svg" data-tooltip="feinte" height="32" width="32" />
|
||||
C'était une feinte!
|
||||
{{/if}}
|
||||
</p>
|
||||
{{/if}}
|
||||
<div class="chat-header">
|
||||
{{active.name}} {{#if current.defense.isEsquive}}esquive{{else}}pare{{/if}} une attaque {{grammar-apostrophe 'de' opponent.name}}
|
||||
</div>
|
||||
|
||||
<div class="chat-resume">
|
||||
{{current.carac.label}} / {{current.comp.label}} à {{current.diff.value}}
|
||||
<br>{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.hbs"}}
|
||||
</div>
|
||||
|
||||
<div class="chat-details">
|
||||
<hr>
|
||||
{{#if rolled.isSuccess}}
|
||||
<p>
|
||||
Attaque {{#if current.defense.isEsquive}}esquivée{{else}}parée{{/if}}
|
||||
{{#if rolled.isPart}}, {{active.name}} peut
|
||||
<strong>{{#if current.defense.isEsquive}}faire une deuxième esquive{{else}}réutiliser son arme{{/if}}</strong>
|
||||
{{/if}}
|
||||
</p>
|
||||
{{else}}
|
||||
<p>{{#if current.defense.isEsquive}}Esquive{{else}}parade{{/if}} échouée!</p>
|
||||
{{/if}}
|
||||
{{!-- {{else}}
|
||||
<!-- TODO: cas de parade à mains nues, texte à modifier -->
|
||||
{{/if}} --}}
|
||||
{{#if attackerRoll.tactique}}
|
||||
<p>
|
||||
{{#if (eq attackerRoll.tactique.key 'charge')}}
|
||||
<img class="chat-icon" src="icons/svg/thrust.svg" data-tooltip="charge" height="32" width="32" />
|
||||
C'était une charge, les parades de {{opponent.name}} auront un -4 et il ne pourra pas esquiver!
|
||||
{{else if (eq attackerRoll.tactique.key 'feinte')}}
|
||||
<img class="chat-icon" src="systems/foundryvtt-reve-de-dragon/icons/heures/hd06.svg" data-tooltip="feinte" height="32" width="32" />
|
||||
C'était une feinte!
|
||||
{{/if}}
|
||||
</p>
|
||||
{{/if}}
|
||||
{{> 'partial-info-appel-moral'}}
|
||||
</div>
|
||||
<div class="chat-actions">
|
||||
{{> 'partial-recul-choc'}}
|
||||
{{> 'partial-encaissement'}}
|
||||
</div>
|
||||
<div class="chat-buttons">
|
||||
{{> 'partial-appel-chance'}}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -0,0 +1,30 @@
|
||||
{{log this}}
|
||||
<div class="roll-chat">
|
||||
<div class="chat-img">
|
||||
<img src="{{active.img}}" data-tooltip="{{active.name}}" />
|
||||
<img src="{{competence.img}}" data-tooltip="{{competence.name}}" />
|
||||
</div>
|
||||
<div class="chat-header">
|
||||
{{active.name}} {{current.oeuvre.art.action}}: {{current.oeuvre.label}} (de niveau {{current.oeuvre.oeuvre.system.niveau}})
|
||||
</div>
|
||||
|
||||
<div class="chat-resume">
|
||||
{{current.carac.label}} / {{current.comp.label}} à {{current.diff.value}}
|
||||
<br>{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.hbs"}}
|
||||
</div>
|
||||
|
||||
<div class="chat-details">
|
||||
<p>
|
||||
{{active.name}}
|
||||
{{#if rolled.isSuccess}}réussit son interprétation avec
|
||||
{{else}}manque d'inspiration, son interprétation a
|
||||
{{/if}}
|
||||
une qualité de {{result.qualite}}.
|
||||
</p>
|
||||
{{> 'partial-info-appel-moral'}}
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.hbs" current.oeuvre.oeuvre.system}}
|
||||
</div>
|
||||
<div class="chat-buttons">
|
||||
{{> 'partial-appel-chance'}}
|
||||
</div>
|
||||
</div>
|
||||
|
22
templates/roll/result/partial-appel-chance.hbs
Normal file
22
templates/roll/result/partial-appel-chance.hbs
Normal file
@@ -0,0 +1,22 @@
|
||||
{{#unless type.retry}}
|
||||
{{#if show.chance}}
|
||||
<a class='appel-chance'
|
||||
data-actorId='{{ids.actorId}}'
|
||||
data-actorTokenId='{{ids.actorTokenId}}'
|
||||
data-opponentId='{{ids.opponentId}}'
|
||||
data-opponentTokenId='{{ids.opponentTokenId}}'
|
||||
data-tooltip="Appel à la chance">
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/chance.svg"/>
|
||||
</a>
|
||||
{{#if (gt active.actor.system.compteurs.destinee.value 0)}}
|
||||
<a class='appel-destinee'
|
||||
data-actorId='{{ids.actorId}}'
|
||||
data-actorTokenId='{{ids.actorTokenId}}'
|
||||
data-opponentId='{{ids.opponentId}}'
|
||||
data-opponentTokenId='{{ids.opponentTokenId}}'
|
||||
data-tooltip="Utiliser la destinée">
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/destinee.svg"/>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
12
templates/roll/result/partial-encaissement.hbs
Normal file
12
templates/roll/result/partial-encaissement.hbs
Normal file
@@ -0,0 +1,12 @@
|
||||
{{#if show.encaissement}}
|
||||
<a class='chat-card-button encaisser-button'
|
||||
data-actorId='{{ids.actorId}}'
|
||||
data-actorTokenId='{{ids.actorTokenId}}'
|
||||
data-opponentId='{{ids.opponentId}}'
|
||||
data-opponentTokenId='{{ids.opponentTokenId}}'
|
||||
data-tooltip="Encaisser à {{plusMoins attackerRoll.dmg.total}} {{#if (eq attackerRoll.dmg.mortalite 'non-mortel')~}}(non-mortel){{/if}}"
|
||||
>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/encaisser.svg"/> Encaisser à {{plusMoins attackerRoll.dmg.total}}
|
||||
{{#if (eq attackerRoll.dmg.mortalite 'non-mortel')~}}(non-mortel){{/if}}
|
||||
</a>
|
||||
{{/if}}
|
15
templates/roll/result/partial-info-appel-moral.hbs
Normal file
15
templates/roll/result/partial-info-appel-moral.hbs
Normal file
@@ -0,0 +1,15 @@
|
||||
{{#if current.appelmoral.checked}}
|
||||
<div>
|
||||
{{{current.appelmoral.icon}}}
|
||||
Vous avez fait appel {{#if (gt refs.appelmoral.moral 0)}}au moral{{else}}à l'énergie du désespoir{{/if}}
|
||||
{{#if rolled.isSuccess}}
|
||||
et réussi, votre moral reste de {{refs.appelmoral.moral}}.
|
||||
{{else}}
|
||||
et échoué,
|
||||
{{#if (eq refs.appelmoral.moral -3)}}
|
||||
vous marquez un point de dissolution!
|
||||
{{else}}votre moral baisse de 1.
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<div>
|
||||
{{/if}}
|
11
templates/roll/result/partial-recul-choc.hbs
Normal file
11
templates/roll/result/partial-recul-choc.hbs
Normal file
@@ -0,0 +1,11 @@
|
||||
{{#if show.recul}}
|
||||
<a class='chat-card-button resister-recul-button'
|
||||
data-actorId='{{ids.actorId}}'
|
||||
data-actorTokenId='{{ids.actorTokenId}}'
|
||||
data-opponentId='{{ids.opponentId}}'
|
||||
data-opponentTokenId='{{ids.opponentTokenId}}'
|
||||
data-tooltip="Résister au recul"
|
||||
>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/recul.svg"/> Résister au recul
|
||||
</a>
|
||||
{{/if}}
|
Reference in New Issue
Block a user