bol/templates/chat/rolls/defense-request-card.hbs

18 lines
977 B
Handlebars
Raw Permalink Normal View History

2021-12-29 19:15:06 +01:00
<img class="chat-icon" src="{{defender.img}}" alt="{{defender.name}}"/>
2022-05-11 19:29:32 +02:00
{{localize "BOL.chat.hurttitle" name=defender.name damageTotal=damageTotal}}
2021-12-29 19:15:06 +01:00
2022-03-10 21:05:53 +01:00
{{#if damagesIgnoresArmor}}
2022-05-11 19:29:32 +02:00
<br>{{localize "BOL.chat.armordefault"}}
2022-03-10 21:05:53 +01:00
{{/if}}
2022-05-11 19:29:32 +02:00
<button class="damage-handling" data-defense-mode="damage-with-armor" data-attack-id="{{attackId}}">{{localize "BOL.chat.witharmor"}}</button>
<button class="damage-handling" data-defense-mode="damage-without-armor" data-attack-id="{{attackId}}">{{localize "BOL.chat.withoutarmor"}}</button>
2021-12-29 19:15:06 +01:00
{{#if defender.data.data.resources.hero.value}}
2022-05-11 19:29:32 +02:00
<button class="damage-handling" data-defense-mode="hero-reduce-damage" data-attack-id="{{attackId}}">{{localize "BOL.chat.shakeoff"}}</button>
2021-12-29 19:15:06 +01:00
{{#each defenderWeapons as |weapon idx|}}
2022-05-11 19:29:32 +02:00
<button class="damage-handling" data-defense-mode="hero-in-extremis" data-attack-id="{{@root.attackId}}" data-weapon-id="{{weapon._id}}">{{localize "BOL.chat.splinteredshield" name=weapon.name}}</button>
2021-12-29 19:15:06 +01:00
{{/each}}
{{/if}}