{{!log 'chat-message' this}}
<div class="{{cssClass}}">
    <div class="intro-chat">
        {{#if (ne actingCharImg "icons/svg/mystery-man.svg")}}
            <div class="intro-img">
                <img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
            </div>
        {{else}}
            <div></div>
        {{/if}}
        <div class="intro-right">                
            <p class="introText" {{#if (or isSave isWeapon)}}data-tooltip="{{introTextTooltip}}"{{/if}}>{{{introText}}}
            {{#if (or isSave isWeapon isResource isMaterial isSanity)}}
                    <br>
                    {{#if (eq avantages "avantage")}} {{localize "CTHACK.Roll.avantage"}}{{/if}}
                    {{#if (eq avantages "desavantage")}} {{localize "CTHACK.Roll.desavantage"}}{{/if}}
                    {{#if (eq avantages "doubleAvantage")}} {{localize "CTHACK.Roll.doubleAvantage"}}{{/if}}
                    {{#if (eq avantages "doubleDesavantage")}} {{localize "CTHACK.Roll.doubleDesavantage"}}{{/if}}
            {{/if}}        
            </p>                 
        </div>
    </div>
     {{#if (or isSave isWeapon)}}
        <div class="result">
            {{#if (eq resultType "success")}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.success"}}{{/if}}
            {{else}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.failure"}}{{/if}}
            {{/if}}
        </div>
     {{/if}}
     {{#if isResource}}
        <div class="result">
            {{#if (eq resultType "success")}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.success"}}{{/if}}
            {{else}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.failure"}}{{#if isFailure}} ({{localize "CTHACK.Roll.resourceLost"}}){{/if}}{{/if}}
            {{/if}}
        </div>
     {{/if}}
    {{#if isMaterial}}
        <div class="result">
            {{#if (eq resultType "success")}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.success"}}{{/if}}
            {{else}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.failure"}}{{#if isFailure}} ({{localize "CTHACK.Roll.resourceLost"}}){{/if}}{{/if}}
            {{/if}}
        </div>
     {{/if}}
    {{#if isSanity}}
        <div class="result">
            {{#if (eq resultType "success")}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.success"}}{{/if}}
            {{else}}
                {{#if isPrivate}}?{{else}}{{localize "CTHACK.Roll.failure"}}{{#if isFailure}} ({{localize "CTHACK.Roll.resourceLost"}}){{/if}}{{/if}}
            {{/if}}
        </div>
     {{/if}}     
     {{#if (and isGM isDamage hasTarget)}}
            {{localize "CTHACK.Roll.displayArmor" targetName=targetName targetArmor=targetArmor realDamage=realDamage}}
     {{/if}}
    {{#unless isPrivate}}
        <div class="dice-result">
            <h4 class="dice-total">{{total}}</h4>
            {{{tooltip}}}        
        </div>
    {{/unless}}
</div>
