57 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
<div class="roll-chat">
 | 
						|
  <div class="chat-img">
 | 
						|
    <img src="{{active.img}}" data-tooltip="{{active.name}}" />
 | 
						|
    <img src="{{current.comp.comp.img}}" data-tooltip="{{current.comp.label}}" />
 | 
						|
    <img src="{{opponent.img}}" data-tooltip="{{opponent.name}}" />
 | 
						|
  </div>
 | 
						|
 | 
						|
  <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>{{> 'partial-infojet'}}
 | 
						|
  </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 (eq attackerRoll.tactique.key 'charge')}}
 | 
						|
      <span class='chat-card-info'>
 | 
						|
        <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!
 | 
						|
      </span>
 | 
						|
    {{/if}}
 | 
						|
    {{#if (eq attackerRoll.tactique.key 'feinte')}}
 | 
						|
      <span class='chat-card-info'>
 | 
						|
        <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!
 | 
						|
      </span>
 | 
						|
    {{/if}}
 | 
						|
    {{> 'partial-info-appel-moral'}}
 | 
						|
    {{> 'partial-maladresse'}}
 | 
						|
  </div>
 | 
						|
 | 
						|
  <div class="chat-actions">
 | 
						|
    {{> 'partial-choix-maladresse'}}
 | 
						|
    {{> 'partial-recul-choc'}}
 | 
						|
    {{> 'partial-encaissement'}}
 | 
						|
  </div>
 | 
						|
  <div class="chat-buttons">
 | 
						|
    {{> 'partial-appel-chance'}}
 | 
						|
  </div>
 | 
						|
</div>
 |