fvtt-pegasus-rpg/templates/partial-roll-select-effects.html

171 lines
7.6 KiB
HTML
Raw Permalink Normal View History

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-09-05 11:32:21 +02:00
{{#if effect.effect.system.hindrance}}
2022-01-28 10:05:54 +01:00
<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>
2022-09-05 11:32:21 +02:00
<label class="generic-label">Target Hindrance : {{effect.label}} ({{upperFirst effect.effect.system.type}}, {{upperFirst effect.effect.system.genre}}, {{effect.value}})</label>
2022-01-28 10:05:54 +01:00
</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}}
2022-08-25 20:29:45 +02:00
{{#if (eq effect.effect.data.stataffected "powerroll")}}
<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">{{effect.label}} ({{effect.value}})</label>
</li>
{{/if}}
{{#if (eq effect.effect.data.stataffected "powerdmgroll")}}
<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">{{effect.label}} ({{effect.value}})</label>
</li>
{{/if}}
2022-09-05 11:32:21 +02:00
{{#if (count effect.effect.system.specaffected)}}
{{#each effect.effect.system.specaffected as |spec idx2|}}
2022-02-16 12:14:34 +01:00
{{#if (eq @root.specName spec.name)}}
<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}}
2022-09-05 11:32:21 +02:00
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.system.type}}, {{upperFirst effect.effect.system.genre}}, {{effect.value}})</label>
2022-02-16 12:14:34 +01:00
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{/if}}
{{/each}}
2022-01-28 15:23:14 +01:00
{{else}}
2022-09-25 15:27:58 +02:00
{{#if (eq @root.vehicleKey effect.effect.system.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.system.type}}, {{upperFirst effect.effect.system.genre}}, {{effect.value}})</label>
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{/if}}
2022-09-05 11:32:21 +02:00
{{#if (eq @root.statKey effect.effect.system.stataffected)}}
2022-02-16 12:14:34 +01:00
<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}}
2022-09-05 11:32:21 +02:00
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.system.type}}, {{upperFirst effect.effect.system.genre}}, {{effect.value}})</label>
2022-02-16 12:14:34 +01:00
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{else}}
2022-09-05 11:32:21 +02:00
{{#if (eq @root.subKey effect.effect.system.stataffected)}}
2022-02-16 12:14:34 +01:00
<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}}
2022-09-05 11:32:21 +02:00
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.system.type}}, {{upperFirst effect.effect.system.genre}}, {{effect.value}})</label>
2022-02-16 12:14:34 +01:00
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
2022-07-10 10:22:04 +02:00
{{else}}
2022-09-05 11:32:21 +02:00
{{#if (eq effect.effect.system.stataffected "all")}}
2022-07-10 10:22:04 +02:00
<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}}
2022-09-05 11:32:21 +02:00
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.system.type}}, {{upperFirst effect.effect.system.genre}}, {{effect.value}})</label>
2022-07-10 10:22:04 +02:00
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{/if}}
2022-01-28 15:23:14 +01:00
{{/if}}
{{/if}}
2022-09-25 15:27:58 +02:00
2022-01-28 15:23:14 +01:00
{{/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>
2022-07-19 20:51:48 +02:00
<label class="generic-label padd-right">{{weapon.label}} ({{weapon.damageDice}})</label>
2022-01-28 17:27:01 +01:00
</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}}
2022-09-21 16:54:34 +02:00
{{#if (notEmpty vehicleWeapons)}}
<label>Vehicle Weapons</label>
<ul>
{{#each vehicleWeapons as |weapon idx|}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="vehicle-weapon-clicked" id="vehicle-weapon-{{idx}}" data-vehicle-weapon-idx="{{idx}}" {{checked weapon.applied}}/></label>
<label class="generic-label padd-right">{{weapon.label}} ({{weapon.value}})</label>
</li>
{{/each}}
</ul>
{{/if}}
2022-09-25 09:26:12 +02:00
{{#if (notEmpty vehicleShieldList)}}
2022-09-27 16:56:59 +02:00
<label>Vehicle Armors&Shields</label>
2022-09-25 09:26:12 +02:00
<ul>
{{#each vehicleShieldList as |shield idx|}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="vehicle-shield-clicked" id="vehicle-shield-{{idx}}" data-vehicle-shield-idx="{{idx}}" {{checked shield.applied}}/></label>
<label class="generic-label padd-right">{{shield.label}} ({{shield.value}})</label>
</li>
{{/each}}
</ul>
{{/if}}