This repository has been archived on 2024-05-29. You can view files and clone it, but cannot push or open issues or pull requests.
fvtt-warhero/templates/roll-dialog-generic.html

112 lines
3.9 KiB
HTML
Raw Normal View History

2023-01-04 21:24:56 +01:00
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
{{#if img}}
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
{{/if}}
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="flexcol">
{{#if weapon}}
2023-02-08 21:19:53 +01:00
<div class="flexrow">
<span class="item-field-label-vlong">Weapon : </span>
<span class="item-field-label-vlong">{{weapon.name}}</span>
</div>
2023-01-29 18:32:30 +01:00
{{#if (eq mode "damage")}}
2023-02-08 21:19:53 +01:00
{{#if (eq weapon.system.weapontype "special")}}
<div class="flexrow">
<span class="item-field-label-vlong">Damage : </span>
<span class="item-field-label-vlong">{{weapon.system.damageformula}}</span>
</div>
{{else}}
<div class="flexrow">
<span class="item-field-label-vlong">Damage : </span>
{{#if is2hands}}
<span class="item-field-label-vlong">{{weapon.damageFormula2Hands}}</span>
{{else}}
<span class="item-field-label-vlong">{{weapon.damage}}</span>
{{/if}}
</div>
{{/if}}
{{else}}
{{#if (eq weapon.system.weapontype "special")}}
2023-01-29 18:32:30 +01:00
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">Roll Formula : </span>
<span class="item-field-label-vlong">{{weapon.system.rollformula}}</span>
</div>
{{/if}}
2023-01-29 18:32:30 +01:00
{{/if}}
2023-02-08 21:19:53 +01:00
2023-01-04 21:24:56 +01:00
{{/if}}
2023-02-06 07:37:39 +01:00
{{#if stat}}
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">{{localize stat.label}}</span>
2023-02-06 07:37:39 +01:00
{{#if (eq mode "save")}}
<span class="item-field-label-medium">{{stat.save}}</span>
{{else}}
<span class="item-field-label-medium">{{stat.value}}</span>
{{/if}}
</div>
{{#if stat.istxc}}
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">Multiple weapons malus ({{mWeaponMalus}})? </span>
2023-02-06 07:37:39 +01:00
<span class="item-field-label-medium"><input type="checkbox" id="usemWeaponMalus" name="usemWeaponMalus" {{checked usemWeaponMalus}}/></span>
{{/if}}
</div>
{{/if}}
2023-01-04 21:24:56 +01:00
{{#if shield}}
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">Use shield ? : </span>
2023-02-06 07:37:39 +01:00
<span class="roll-dialog-label">
<input type="checkbox" id="useshield" name="useshield" {{checked useshield}}/>
</span>
2023-01-04 21:24:56 +01:00
</div>
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">{{shield.name}} : </span>
<span class="item-field-label-medium">{{shield.data.shielddie}}</span>
2023-01-04 21:24:56 +01:00
</div>
{{/if}}
2023-01-29 18:32:30 +01:00
{{#if power}}
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">Power : </span>
2023-01-29 18:32:30 +01:00
<span class="item-field-label-medium">{{power.name}}</span>
</div>
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">Power Level : </span>
2023-02-08 19:38:09 +01:00
<span class="item-field-label-medium">{{power.system.level}}</span>
2023-01-29 18:32:30 +01:00
</div>
{{/if}}
{{#if hasBM}}
2023-01-04 21:24:56 +01:00
<div class="flexrow">
2023-02-08 21:19:53 +01:00
<span class="item-field-label-vlong">Bonus/Malus : </span>
2023-01-29 16:56:09 +01:00
<select class="item-field-label-medium" type="text" id="bonusMalus" value="{{bonusMalus}}">
{{#select bonusMalus}}
<option value="-6">-6</option>
<option value="-5">-5</option>
<option value="-4">-4</option>
<option value="-3">-3</option>
<option value="-2">-2</option>
<option value="-1">-1</option>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
2023-01-04 21:24:56 +01:00
{{/select}}
</select>
</div>
2023-01-29 18:32:30 +01:00
{{/if}}
</div>
2023-01-04 21:24:56 +01:00
</form>