bol/templates/actor/parts/tabs/actor-combat.hbs

32 lines
1.9 KiB
Handlebars
Raw Permalink Normal View History

<ol class="items-list">
<li class="item flexrow item-header">
<div class="item-name flex2">{{localize "BOL.ui.maneuvers"}}</div>
</li>
<li class="item flexrow">
<div class="item-image roll-weapon"><img src="icons/skills/melee/unarmed-punch-fist.webp" title="Attaque à mains nues"/></div>
<h4 class="item-name flex2"><a class="item-edit">Attaque à mains nues</a></h4>
</li>
</ol>
2021-12-24 18:33:37 +01:00
{{#each combat as |combatType id|}}
2021-11-08 14:40:29 +01:00
<ol class="items-list">
<li class="item flexrow item-header">
2021-12-24 18:33:37 +01:00
<div class="item-name flex2">{{localize combatType.label}}</div>
2021-11-08 14:40:29 +01:00
{{#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>
2021-12-24 18:33:37 +01:00
{{#each combatType.items as |item id|}}
2021-11-08 14:40:29 +01:00
<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>
2022-07-01 15:48:54 +02:00
{{#if ../protection}}<div class="item-field">{{item.system.properties.soak.value}}</div>{{/if}}
{{#if ../blocking}}<div class="item-field">{{item.system.properties.blocking.malus}}</div>{{/if}}
{{#if ../weapon}}<div class="item-field">{{item.system.properties.damage}}</div>{{/if}}
{{#if ../ranged}}<div class="item-field">{{item.system.properties.range}}</div>{{else}}<div class="item-field"></div>{{/if}}
2021-11-08 14:40:29 +01:00
</li>
{{/each}}
</ol>
{{/each}}