2022-01-28 17:27:01 +01:00
|
|
|
|
|
|
|
{{#if (notEmpty effectsList)}}
|
|
|
|
<label>Effects&Hindrances</label>
|
2022-01-28 10:05:54 +01:00
|
|
|
<ul>
|
|
|
|
{{#each effectsList as |effect idx|}}
|
2022-01-28 11:41:19 +01:00
|
|
|
|
2022-01-28 10:05:54 +01:00
|
|
|
{{#if effect.effect.data.hindrance}}
|
|
|
|
<li class="flex-group-left">
|
|
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
|
|
|
|
<label class="generic-label">Target Hindrance : {{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
|
|
|
|
</li>
|
2022-01-28 15:23:14 +01:00
|
|
|
{{else}}
|
|
|
|
{{#if (eq type "hindrance")}}
|
|
|
|
<li class="flex-group-left">
|
|
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
|
|
|
|
<label class="generic-label">Target Hindrance : {{effect.label}} ({{effect.value}})</label>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
{{#if (eq @root.statKey effect.effect.data.stataffected)}}
|
|
|
|
<li class="flex-group-left">
|
|
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
|
|
|
|
{{#if effect.effect}}
|
|
|
|
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
|
|
|
|
{{else}}
|
|
|
|
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
|
|
|
|
{{/if}}
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
{{#if (eq effect.effect.data.stataffected "all")}}
|
|
|
|
<li class="flex-group-left">
|
|
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
|
|
|
|
{{#if effect.effect}}
|
|
|
|
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
|
|
|
|
{{else}}
|
|
|
|
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
|
|
|
|
{{/if}}
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2022-01-28 10:05:54 +01:00
|
|
|
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2022-01-28 17:27:01 +01:00
|
|
|
{{/if}}
|
2022-01-28 10:05:54 +01:00
|
|
|
|
2022-01-28 17:27:01 +01:00
|
|
|
{{#if (notEmpty armorsList)}}
|
|
|
|
<label>Armors&Shields</label>
|
|
|
|
<ul>
|
2022-01-28 10:05:54 +01:00
|
|
|
|
2022-01-28 17:27:01 +01:00
|
|
|
{{#each armorsList as |armor idx|}}
|
|
|
|
<li class="flex-group-left">
|
|
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="armor-clicked" id="armor-{{idx}}" data-armor-idx="{{idx}}" {{checked armor.applied}}/></label>
|
|
|
|
<label class="generic-label padd-right">{{armor.label}} ({{armor.value}})</label>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (notEmpty weaponsList)}}
|
|
|
|
<label>Weapons</label>
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
{{#each weaponsList as |weapon idx|}}
|
|
|
|
<li class="flex-group-left">
|
|
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="weapon-clicked" id="weapon-{{idx}}" data-weapon-idx="{{idx}}" {{checked weapon.applied}}/></label>
|
|
|
|
<label class="generic-label padd-right">{{weapon.label}}</label>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (notEmpty equipmentsList)}}
|
|
|
|
<label>Items</label>
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
{{#each equipmentsList as |equip idx|}}
|
|
|
|
<li class="flex-group-left">
|
|
|
|
<label class="attribute-value checkbox"><input type="checkbox" class="equip-clicked" id="equip-{{idx}}" data-equip-idx="{{idx}}" {{checked equip.applied}}/></label>
|
|
|
|
<label class="generic-label padd-right">{{equip.label}} ({{equip.value}})</label>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
2022-01-28 10:05:54 +01:00
|
|
|
|
2022-01-28 17:27:01 +01:00
|
|
|
</ul>
|
|
|
|
{{/if}}
|