<div class="chat-message-header">
  {{#if actorImg}}
  <img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
  {{/if}}
  <div class="flexcol">
    <h4 class="chat-actor-name">{{alias}}</h4>
    <span class="chat-actor-subtitle">{{localize "ECRY.ui.confrontresult"}}</span>
  </div>
</div>

<div class="ecryme-chat-body">

  <ul>
    <li><strong>Confrontation</strong> : {{rollData1.alias}} vs {{rollData2.alias}}</li>
    <li>{{localize rollData1.skill.name}} ({{rollData1.skill.max}}/{{rollData1.skill.value}}) vs {{localize rollData2.skill.name}} ({{rollData2.skill.max}}/{{rollData2.skill.value}})</li>
    <li>{{localize "ECRY.ui.execution"}} : {{rollData1.executionTotal}} vs {{rollData2.preservationTotal}} → <strong>{{marginExecution}}</strong></li>
    <li>{{localize "ECRY.ui.preservation"}} : {{rollData1.preservationTotal}} vs {{rollData2.executionTotal}} → <strong>{{marginPreservation}}</strong></li>

    {{#if rollData1.weapon}}
    <li>{{rollData1.alias}} — {{rollData1.weapon.name}} ({{rollData1.weapon.system.effect}})</li>
    {{/if}}
    {{#if rollData2.weapon}}
    <li>{{rollData2.alias}} — {{rollData2.weapon.name}} ({{rollData2.weapon.system.effect}})</li>
    {{/if}}

    <li>{{localize "ECRY.ui.effect"}} {{localize "ECRY.ui.execution"}} : <strong>{{effectExecution}}</strong></li>
    {{#if impactExecution}}
      <li>Impact {{rollData2.alias}} : 1 {{localize (concat "ECRY.ui." impactExecution)}}</li>
      <button class="chat-card-button button-apply-impact"
        data-token-id="{{rollData2.tokenId}}"
        data-actor-id="{{rollData2.actorId}}"
        data-impact-type={{rollData1.skill.categKey}}
        data-impact="{{impactExecution}}">{{localize "ECRY.ui.applyimpact"}}</button>
    {{/if}}
    {{#if bonus2}}
      <li>Bonus {{rollData2.alias}} : <strong>{{bonus2}}</strong></li>
      <button class="chat-card-button button-apply-bonus"
        data-token-id="{{rollData2.tokenId}}"
        data-actor-id="{{rollData2.actorId}}"
        data-bonus="{{bonus2}}">{{localize "ECRY.ui.applybonus"}}</button>
    {{/if}}

    <li>{{localize "ECRY.ui.effect"}} {{localize "ECRY.ui.preservation"}} : <strong>{{effectPreservation}}</strong></li>
    {{#if impactPreservation}}
      <li>Impact {{rollData1.alias}} : 1 {{localize (concat "ECRY.ui." impactPreservation)}}</li>
      <button class="chat-card-button button-apply-impact"
        data-token-id="{{rollData1.tokenId}}"
        data-actor-id="{{rollData1.actorId}}"
        data-impact-type={{rollData1.skill.categKey}}
        data-impact="{{impactPreservation}}">{{localize "ECRY.ui.applyimpact"}}</button>
    {{/if}}
    {{#if bonus1}}
      <li>Bonus {{rollData1.alias}} : <strong>{{bonus1}}</strong></li>
      <button class="chat-card-button button-apply-bonus"
        data-token-id="{{rollData1.tokenId}}"
        data-actor-id="{{rollData1.actorId}}"
        data-bonus="{{bonus1}}">{{localize "ECRY.ui.applybonus"}}</button>
    {{/if}}
  </ul>

</div>