{{log "roll-sr6.html this=" this}}
{{log "roll-sr6.html data=" data}}
{{log "roll-sr6.html prepared=" prepared}}
{{log "roll-sr6.html configured=" configured}}
{{#if configured.extended}}{{localize 'shadowrun6.label.extended_test'}}
{{/if}}
{{actionText}}
{{#if (or (or edge_use edge_use_opponent) isOpposed)}}
{{#if isOpposed}}
{{edge_message}}
{{/if}}
{{#if edge_use}}
{{edge_use}}
{{/if}}
{{#if edge_use_opponent}}
{{edge_use_opponent}}
{{/if}}
{{/if}}
{{#if publicRoll}}
{{#if configured.extended}}
{{#if configured.threshold}}
{{extendedResultMsg}}
{{else}}
{{extendedResultMsg}}
{{/if}}
{{/if}}
{{#if (eq configured.skillSpec "sprinting")}}
{{ configured.sprintingResult }}
{{/if}}
{{#if (eq rollType "legwork")}}
{{ configured.checkText }}
{{#if configured.legwork.loyalty}}
{{#iff total ">=" 10}}- {{localize 'shadowrun6.legwork.results.10' }}
{{/iff}}
{{#iff total ">=" 9}}- {{localize 'shadowrun6.legwork.results.9' }}
{{/iff}}
{{#iff total ">=" 8}}- {{localize 'shadowrun6.legwork.results.8' }}
{{/iff}}
{{#iff total ">=" 7}}- {{localize 'shadowrun6.legwork.results.7' }}
{{/iff}}
{{#iff total ">=" 6}}- {{localize 'shadowrun6.legwork.results.6' }}
{{/iff}}
{{#iff total ">=" 5}}- {{localize 'shadowrun6.legwork.results.5' }}
{{/iff}}
{{#iff total ">=" 4}}- {{localize 'shadowrun6.legwork.results.4' }}
{{/iff}}
{{#iff total ">=" 3}}- {{localize 'shadowrun6.legwork.results.3' }}
{{/iff}}
{{#iff total ">=" 2}}- {{localize 'shadowrun6.legwork.results.2' }}
{{/iff}}
{{#iff total ">=" 1}}- {{localize 'shadowrun6.legwork.results.1' }}
{{/iff}}
{{#iff total "==" 0}}- {{localize 'shadowrun6.legwork.results.0' }}
{{/iff}}
{{else}}
{{#iff legwork.legworkResult ">=" 10}}{{#iff total ">=" 10}}- {{localize 'shadowrun6.legwork.results.10' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 9}}{{#iff total ">=" 9}}- {{localize 'shadowrun6.legwork.results.9' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 8}}{{#iff total ">=" 8}}- {{localize 'shadowrun6.legwork.results.8' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 7}}{{#iff total ">=" 7}}- {{localize 'shadowrun6.legwork.results.7' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 6}}{{#iff total ">=" 6}}- {{localize 'shadowrun6.legwork.results.6' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 5}}{{#iff total ">=" 5}}- {{localize 'shadowrun6.legwork.results.5' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 4}}{{#iff total ">=" 4}}- {{localize 'shadowrun6.legwork.results.4' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 3}}{{#iff total ">=" 3}}- {{localize 'shadowrun6.legwork.results.3' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 2}}{{#iff total ">=" 2}}- {{localize 'shadowrun6.legwork.results.2' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">=" 1}}{{#iff total ">=" 1}}- {{localize 'shadowrun6.legwork.results.1' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult "==" 0}}{{#iff total "==" 0}}- {{localize 'shadowrun6.legwork.results.0' }}
{{/iff}}{{/iff}}
{{#iff legwork.legworkResult ">" total}}
{{localize 'shadowrun6.legwork.payformore' }}
{{/iff}}
{{/if}}
{{/if}}
{{#if (eq rollType "weapon")}}
| {{localize 'shadowrun6.weapon.damage'}} |
{{#if configured.fireMode}}
{{localize 'shadowrun6.weapon.firemodes'}} |
{{/if}}
{{localize 'shadowrun6.weapon.attackRating'}} |
{{#if configured.fireMode}}
{{localize 'shadowrun6.item.ammunition'}} |
{{/if}}
| {{configured.calcDamage}}{{#if (eq configured.monitor "stun")}}S{{else}}P{{/if}} |
{{#if configured.fireMode}}
{{localize (concat "shadowrun6.item.firemode." configured.fireMode)}} |
{{/if}}
{{{attackrating configured.calcAttackRating}}} |
{{#if configured.fireMode}}
{{configured.calcRounds}} |
{{/if}}
{{/if}}
{{#if system.matrixAction}}
{{localize 'shadowrun6.roll.damage'}} To Do
{{/if}}
{{#if (eq rollType "spell")}}
| {{localize 'shadowrun6.spell.range'}} |
{{localize 'shadowrun6.spell.type'}} |
{{localize 'shadowrun6.spell.duration_short'}} |
{{localize 'shadowrun6.spell.drain'}} |
{{#if (or threshold configured.spell.withEssence)}}
{{#unless (or configured.calcDamage (eq defendWith "spells_direct"))}}
{{localize 'shadowrun6.roll.threshold'}} |
{{/unless}}
{{/if}}
{{#if (or configured.calcDamage (eq defendWith "spells_direct"))}}
{{localize 'shadowrun6.spell.damage_short'}} |
{{/if}}
| {{localize (concat (concat 'shadowrun6.spell.range_' configured.spell.range) "_short")}} |
{{localize (concat (concat 'shadowrun6.spell.type_' configured.spell.type) "_short")}} |
{{localize (concat (concat 'shadowrun6.spell.duration_' configured.spell.duration) "_short")}} |
{{configured.calcDrain}} |
{{#if (or threshold configured.spell.withEssence)}}
{{#unless (or configured.calcDamage (eq defendWith "spells_direct"))}}
{{threshold}} |
{{/unless}}
{{/if}}
{{#if (or configured.calcDamage (eq defendWith "spells_direct"))}}
{{configured.calcDamage}}{{#if (or (eq configured.spell.damage "stun") (eq configured.spell.damage "stun_special"))}}S{{else}}P{{/if}} |
{{/if}}
|
{{{configured.spellDesc}}}
{{/if}}
{{#if (eq rollType "complexform")}}
{{#if threshold}}
| {{localize 'shadowrun6.roll.threshold'}} |
{{/if}}
{{localize 'shadowrun6.complexform.fading'}} |
{{localize 'shadowrun6.complexform.duration'}} |
{{#if threshold}}
| {{threshold}} |
{{/if}}
{{configured.calcFade}} |
{{localize (concat (concat 'shadowrun6.spell.duration_' configured.form.duration) "_short")}} |
{{{configured.formDesc}}}
{{/if}}
{{#if success}}
{{#if (and defendWith (not cantDodgeBullets))}}
{{log "************************Defense" this}}
{{log "**Defense targets " targetIds}}
{{log "**Defense targets " targetIds.length}}
{{#iff targets.length ">" 0}}
{{#each targets as |token id|}}
{{log "Token" id " = " token }}
{{/each}}
{{else}}
{{/iff}}
{{/if}}
{{/if}}
{{#if (or (eq rollType "defense") cantDodgeBullets)}}
{{#if actorTraits.hardenedArmor}}
{{#if (not actorTraits.immunityNormalWeapons)}}
{{ localize 'shadowrun6.roll.hardenedArmor'}}
{{else}}
{{#if (ne configured.defendedWith 'spells_indirect')}}
{{ localize 'shadowrun6.roll.hardenedArmor'}}
{{/if}}
{{/if}}
{{/if}}
{{#if cantDodgeBullets}}
{{#if success}}
{{#iff targets.length ">" 0}}
{{#each targets as |target|}}
{{ localize 'shadowrun6.roll.succesfulHit'}}
{{/each}}
{{else}}
{{ localize 'shadowrun6.roll.succesfulHit'}}
{{/iff}}
{{else}}
{{ localize 'shadowrun6.roll.missedAttack'}}
{{/if}}
{{else}}
{{#if success}}
{{#if (eq configured.defendedWith "item_defined")}}
{{ localize 'shadowrun6.roll.successfulDefenseGeneral'}}
{{else}}
{{ localize 'shadowrun6.roll.successfulDefense'}}
{{/if}}
{{else}}
{{#if (eq configured.defendedWith "item_defined")}}
{{ localize 'shadowrun6.roll.failedDefenseGeneral'}}
{{else}}
{{ localize 'shadowrun6.roll.failedDefense'}} {{nettoDamage}}
{{/if}}
{{#if monitor}}
{{/if}}
{{/if}}
{{/if}}
{{/if}}
{{#if (eq rollType "soak")}}
{{log "************************Soak" this}}
{{#if monitor}}
{{#if success}}
{{ localize 'shadowrun6.roll.successfulSoak'}}
{{else}}
{{#if (or (eq actor.type "Spirit") (eq actor.type "Vehicle"))}}
{{localize 'shadowrun6.ui.notifications.apply_manually'}}
{{else}}
{{#if damageConvertedStun}}
{{/if}}
{{/if}}
{{/if}}
{{/if}}
{{/if}}
{{/if}}