{{!-- Attack Roll Chat Card Template --}} {{!-- Displays attack results with weapon info, hit/miss, and damage --}}
{{!-- Header with Weapon Info --}}
{{weapon.name}}

{{weapon.name}}

{{attackLabel}}
{{!-- Roll Result --}}
{{total}}
{{#if isCrit}} {{localize "VAGABOND.CriticalHit"}} {{else if isFumble}} {{localize "VAGABOND.Fumble"}} {{else if success}} {{localize "VAGABOND.Hit"}} {{else}} {{localize "VAGABOND.Miss"}} {{/if}}
{{!-- Roll Details --}}
{{localize "VAGABOND.Formula"}}: {{formula}}
{{d20Result}} {{#if favorDie}} {{favorDie}} {{/if}} {{#if modifier}} {{#if (gt modifier 0)}}+{{/if}}{{modifier}} {{/if}}
{{!-- Target Info --}}
{{localize "VAGABOND.Difficulty"}}: {{this.difficulty}}
{{#if (lt this.critThreshold 20)}}
{{localize "VAGABOND.CritThreshold"}}: {{this.critThreshold}}+
{{/if}}
{{!-- Damage Section (if damage was rolled) --}} {{#if hasDamage}}
{{localize "VAGABOND.Damage"}} {{#if isCrit}} ({{localize "VAGABOND.Critical"}}!) {{/if}}
{{damageTotal}} {{weapon.damageTypeLabel}}
{{#each damageDiceResults}} {{this.result}} {{/each}}
{{damageFormula}} {{#if twoHanded}} ({{localize "VAGABOND.TwoHanded"}}) {{/if}}
{{/if}} {{!-- Roll Damage Button (if hit but damage not yet rolled) --}} {{#if showDamageButton}}
{{/if}} {{!-- Weapon Properties --}} {{#if weapon.properties.length}}
{{#each weapon.properties}} {{this}} {{/each}}
{{/if}} {{!-- Favor/Hinder Sources --}} {{#if favorSources.length}}
{{localize "VAGABOND.Favor"}}: {{#each favorSources}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}
{{/if}} {{#if hinderSources.length}}
{{localize "VAGABOND.Hinder"}}: {{#each hinderSources}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}
{{/if}}