2021-11-08 14:40:29 +01:00
|
|
|
{{#each data.combat as | combat id|}}
|
|
|
|
{{#if (gt (count combat.items) 0)}}
|
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
|
|
|
<div class="item-name flex2">{{localize combat.label}}</div>
|
|
|
|
{{#if protection}}<div class="item-field">{{localize "BOL.ui.protection"}}</div>{{/if}}
|
|
|
|
{{#if blocking}}<div class="item-field">{{localize "BOL.ui.blocking"}}</div>{{/if}}
|
|
|
|
{{#if weapon}}<div class="item-field">{{localize "BOL.ui.damages"}}</div>{{/if}}
|
|
|
|
{{#if ranged}}<div class="item-field">{{localize "BOL.ui.range"}}</div>{{else}}<div class="item-field"></div>{{/if}}
|
|
|
|
</li>
|
|
|
|
{{#each combat.items as |item id|}}
|
|
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
|
|
<div class="item-image {{#if ../weapon}}roll-weapon{{/if}}"><img src="{{item.img}}" title="{{item.name}}"/></div>
|
|
|
|
<h4 class="item-name flex2"><a class="item-edit">{{item.name}}</a></h4>
|
|
|
|
{{#if ../protection}}<div class="item-field">{{item.data.properties.soak.value}}</div>{{/if}}
|
|
|
|
{{#if ../blocking}}<div class="item-field">{{item.data.properties.blocking.malus}}</div>{{/if}}
|
|
|
|
{{#if ../weapon}}<div class="item-field">{{item.data.properties.damage}}</div>{{/if}}
|
|
|
|
{{#if ../ranged}}<div class="item-field">{{item.data.properties.range}}</div>{{else}}<div class="item-field"></div>{{/if}}
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|