{{!log 'chat-message' this}}
<div class="{{cssClass}}">
  <div class="intro-chat">
    <div class="intro-img">
      <img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
    </div>
    <div class="intro-right">
      <ul>

        {{#if (eq rollType "skill")}}
          <li><strong>{{localize "FTLNOMAD.Label.skillRoll"}}</strong></li>
        {{/if}}

        {{#if (eq rollType "damage")}}
          <li class="result-success">Weapon Damage</li>
          <li><strong>{{weapon.name}}</strong></li>
        {{else}}
          {{#if weapon}}
            <li><strong>Weapon : {{weapon.name}}</strong></li>
            <li><strong>Aspects : {{weapon.system.aspect}}</strong></li>
          {{/if}}
        {{/if}}

        <li><strong>{{localize rollItem.label}} : {{fullFormula}}</strong></li>

        {{#if (eq rollType "damage")}}{{else}}
          {{#if isEncumbered}}
            <li class="red-warning">Encumbered : -1D</li>
          {{/if}}
          <li>{{localize "FTLNOMAD.Label.modifier"}}
            :
            {{skillModifier}}D
            {{rangeModifier}}D
            {{numericModifier}}D</li>
        {{/if}}

        {{#if (eq rollType "damage")}}{{else}}
          {{#if isSuccess}}
            <li class="result-success">
              {{localize "FTLNOMAD.Label.success"}}
            </li>
          {{/if}}

          {{#if isFailure}}
            <li class="result-failure">
              {{localize "FTLNOMAD.Label.failure"}}
            </li>
          {{/if}}
        {{/if}}

      </ul>
    </div>
  </div>

  {{#if isDamage}}
    <div>
      {{#if (and isGM hasTarget)}}
        {{{localize
          "FTLNOMAD.Roll.displayArmor"
          targetName=targetName
          targetArmor=targetArmor
          realDamage=realDamage
        }}}
      {{/if}}
    </div>
  {{/if}}
  {{#unless isPrivate}}
    <div class="dice-result">
      <h4 class="dice-total">{{total}}</h4>
      <div class="dice-formula">{{formula}}</div>
      {{{tooltip}}}
    </div>
  {{/unless}}
</div>