Gestion attaques v2 et initiative
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<div class="roll-chat">
|
||||
<div class="chat-img">
|
||||
<img src="{{active.img}}" data-tooltip="{{active.name}}" />
|
||||
<img src="{{competence.img}}" data-tooltip="{{competence.name}}" />
|
||||
<img src="{{opponent.img}}" data-tooltip="{{opponent.name}}" />
|
||||
</div>
|
||||
|
||||
<div class="chat-header">
|
||||
{{active.name}} attaque {{opponent.name}}: {{current.label}}
|
||||
</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}}
|
||||
<span>
|
||||
<strong>{{opponent.name}}</strong> doit se défendre à <strong>{{current.diff.value}}</strong>,
|
||||
{{#if (eq current.dmg.mortalite 'empoignade')}}
|
||||
ou {{active.name}} marquera un point d'empoignade
|
||||
{{else if (eq current.dmg.mortalite 'non-mortel')}}
|
||||
ou encaisser à <span class="rdd-roll-norm">{{plusMoins current.dmg.total}} (non-mortel)</span>
|
||||
{{else}}
|
||||
{{!-- {{~#if (eq current.dmg.mortalite 'mortel')}} --}}
|
||||
ou encaisser à <span class="rdd-roll-echec">{{plusMoins current.dmg.total}}</span>
|
||||
{{!-- {{~#if (eq current.dmg.mortalite 'cauchemar')}} --}}
|
||||
{{!-- {{else}}
|
||||
<span class="rdd-roll-etotal">{{plusMoins dmg.total}}</span> (entités de cauchemar) --}}
|
||||
{{/if}}
|
||||
|
||||
</span>
|
||||
{{#if show.recul}}
|
||||
<span class='chat-card-info'>
|
||||
<img src="icons/svg/thrust.svg" data-tooltip="charge" />
|
||||
Si votre adversaire n'esquive pas cette {{show.recul.raison}}, il devra résister à l'impact ou reculer sous le choc!
|
||||
</span>
|
||||
{{/if}}
|
||||
{{#if (eq particuliere 'rapidite')}}
|
||||
<span>
|
||||
<br>Votre attaque rapide vous permet une deuxième attaque, ou une défense supplémentaire!
|
||||
</span>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<span>Votre attaque a échoué!</span>
|
||||
{{/if}}
|
||||
{{#if (eq current.tactique 'charge')}}
|
||||
<span class='chat-card-info'>
|
||||
<img src="icons/svg/thrust.svg" data-tooltip="charge" />
|
||||
C'est une charge, vos parades auront un -4 et vous ne pourrez pas esquiver!
|
||||
</span>
|
||||
{{/if}}
|
||||
{{#if (and (eq current.tactique 'feinte') rolled.isSuccess)}}
|
||||
<span class='chat-card-info'>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/icons/heures/hd06.svg" data-tooltip="feinte"/>
|
||||
Votre feinte peut faire mouche!
|
||||
</span>
|
||||
{{/if}}
|
||||
<p>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.hbs"}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="chat-actions">
|
||||
{{> 'partial-attaque-particuliere'}}
|
||||
{{!-- TODO: maladresses --}}
|
||||
</div>
|
||||
|
||||
<div class="chat-buttons">
|
||||
{{> 'partial-appel-chance'}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user