{{localize 'BRP.card.CB'}}
    {{#each chatCard as |c key|}}
  1. {{c.label}} ({{c.targetScore}}%)
    {{#unless (eq ../state 'closed')}} {{/unless}}
    {{#if (eq ../state 'closed')}} {{#if (eq c.resultLevel 4)}} {{#if (eq key 0)}} {{/if}}{{c.resultLabel}}: {{c.rollResult}} {{/if}} {{#if (eq c.resultLevel 3)}} {{#if (eq key 0)}} {{/if}}{{c.resultLabel}}: {{c.rollResult}} {{/if}} {{#if (eq c.resultLevel 2)}} {{#if (eq key 0)}} {{/if}}{{c.resultLabel}}: {{c.rollResult}} {{/if}} {{#if (eq c.resultLevel 1)}} {{c.resultLabel}}: {{c.rollResult}} {{/if}} {{#if (eq c.resultLevel 0)}} {{c.resultLabel}}: {{c.rollResult}} {{/if}} {{else}} {{localize 'BRP.difficulty'}}: {{c.diffLabel}} {{#if (lt c.flatMod 0)}} ({{c.flatMod}}) {{/if}} {{#if (gt c.flatMod 0)}} (+{{c.flatMod}}) {{/if}} {{/if}}
  2. {{#if (eq ../state 'closed')}}
    {{localize 'BRP.rawScore'}}: {{c.rawScore}}
    {{localize 'BRP.difficulty'}}: {{c.diffLabel}}
    {{localize 'BRP.flatMod'}}: {{#if (lt c.flatMod 0)}} {{c.flatMod}} {{/if}} {{#if (gt c.flatMod 0)}} (+{{c.flatMod}}) {{/if}}
    {{#if c.drugSummary}}
    {{localize 'BRP.drugEffects'}}: {{c.drugSummary}}
    {{localize 'BRP.drugRollMod'}}: {{c.drugFlatMod}}%
    {{#if (gt c.drugExtraActions 0)}}
    {{localize 'BRP.drugExtraActions'}}: +{{c.drugExtraActions}}
    {{/if}} {{/if}}
    {{localize 'BRP.ammo'}}: {{c.ammoTag}}
    {{#if c.ammoSummary}}
    {{localize 'BRP.ammoEffect'}}: {{c.ammoSummary}}
    {{/if}} {{#if (gt c.ammoCreditsSpent 0)}}
    {{localize 'BRP.ammoCreditsSpent'}}: {{c.ammoCreditsSpent}} CRD ({{c.ammoCreditsBefore}} -> {{c.ammoCreditsAfter}})
    {{/if}}
    {{localize 'BRP.origResult'}}: {{c.origResLabel}}
    {{localize 'BRP.diceRoll'}}: {{c.diceRolled}}
    {{/if}}
    {{#if (eq ../state 'closed')}} {{#if (gt c.resultLevel 1)}} {{#with (lookup ../slaAppliedCardMeta key) as |applied|}} {{#if (gt applied.count 0)}}
    {{localize 'BRP.slaDamageTotal' damage=applied.lastDamage}}
    {{localize 'BRP.slaDamageAppliedSummary' count=applied.count target=applied.lastTarget damage=applied.lastDamage location=applied.lastLocation}}
    {{localize 'BRP.slaDamageAppliedWeapon' weapon=applied.lastWeaponName ammo=applied.lastAmmoTag mode=applied.lastFireMode}}
    {{localize 'BRP.slaDamageAppliedDice' formula=applied.lastDamageFormula dice=applied.lastDamageDice total=applied.lastDamageRoll}} {{#if (gt applied.lastIgnoreRoll 0)}} | {{localize 'BRP.slaDamageIgnoreDice' formula=applied.lastIgnoreFormula dice=applied.lastIgnoreDice total=applied.lastIgnoreRoll}}{{/if}}
    {{else}}
    {{/if}} {{else}}
    {{/with}} {{/if}} {{/if}} {{/each}}
{{#unless (eq state 'closed')}} {{/unless}}