fvtt-malefices/templates/dialogs/roll-dialog-generic.hbs

71 lines
2.3 KiB
Handlebars

<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 attr}}
<div class="flexrow">
<span class="roll-dialog-label">{{attr.label}} : </span>
<span class="roll-dialog-label">
{{attr.value}}
{{#if (eq attr.abbrev "physique")}}
{{#if phyMalus}}
({{phyMalus}})
{{/if}}
{{/if}}
</span>
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus biographique : </span>
<select id="bonusMalusPerso" name="bonusMalusPerso">
{{#select bonusMalusPerso}}
<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>
{{/select}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus de situation : </span>
<select id="bonusMalusSituation" name="bonusMalusSituation">
{{#select bonusMalusSituation}}
<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>
{{/select}}
</select>
</div>
{{#if arme}}
<div class="flexrow">
<span class="roll-dialog-label">Défense : </span>
<select id="bonusMalusSituation" name="bonusMalusSituation">
{{#select bonusMalusSituation}}
<option value="-3">-6 (réussite critique)</option>
<option value="-3">-3 (réussite)</option>
<option value="0">0 (echec ou pas d'esquive)</option>
<option value="3">+3 (echec critique)</option>
{{/select}}
</select>
</div>
{{/if}}
</div>
</form>