2022-10-22 11:09:48 +02: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">
|
|
|
|
|
|
|
|
<div class="flexrow">
|
|
|
|
{{#if (eq attrKey "tochoose")}}
|
|
|
|
<span class="roll-dialog-label">Attribut</span>
|
|
|
|
<select class="status-small-label color-class-common" id ="attrKey" type="text" name="attrKey" value="attrKey" data-dtype="string" >
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions attributs selected=attrKey}}
|
2022-10-22 11:09:48 +02:00
|
|
|
</select>
|
|
|
|
{{else}}
|
|
|
|
<span class="roll-dialog-label">{{attr.label}}</span>
|
2022-11-29 10:54:56 +01:00
|
|
|
<span class="small-label roll-dialog-label">{{attr.value}}</span>
|
2022-10-22 11:09:48 +02:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
2022-11-10 11:04:05 +01:00
|
|
|
{{#if nbAdversites}}
|
|
|
|
<div class="flexrow">
|
2022-11-29 10:54:56 +01:00
|
|
|
<span class="roll-dialog-label">Malus d'adversités </span>
|
|
|
|
<span class="small-label roll-dialog-label">- {{nbAdversites}}</span>
|
2022-11-10 11:04:05 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-11-29 10:54:56 +01:00
|
|
|
|
2022-10-22 11:09:48 +02:00
|
|
|
{{#if competence}}
|
2022-10-25 17:54:13 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">{{competence.name}}</span>
|
2022-11-29 10:54:56 +01:00
|
|
|
<span class="small-label roll-dialog-label">{{competence.system.niveau}}</span>
|
2022-10-25 17:54:13 +02:00
|
|
|
</div>
|
|
|
|
{{#if maitrises}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Utiliser une maîtrise</span>
|
|
|
|
<select class="status-small-label color-class-common" id ="select-maitrise" type="text" name="select-maitrise" value="maitriseId" data-dtype="string" >
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions maitrises selected=maitriseId valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2022-10-25 17:54:13 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2023-12-28 18:40:46 +01:00
|
|
|
{{else}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Second Attribut</span>
|
|
|
|
<select class="status-small-label color-class-common" id ="attrKey2" type="text" name="attrKey2" value="attrKey2" data-dtype="string" >
|
|
|
|
{{#select attrKey2}}
|
|
|
|
<option value="none">Aucun</option>
|
|
|
|
{{#each attributs as |attrLabel attrKey|}}
|
|
|
|
<option value="{{attrKey}}">{{attrLabel}}</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-10-22 11:09:48 +02:00
|
|
|
{{/if}}
|
|
|
|
|
2022-10-28 21:44:49 +02:00
|
|
|
{{#if (count talents)}}
|
2022-10-22 11:09:48 +02:00
|
|
|
<div class="flexrow">
|
2022-11-29 10:54:56 +01:00
|
|
|
<span class="roll-dialog-label">Talents </span>
|
2022-10-28 21:44:49 +02:00
|
|
|
<select class="flex1" name="competence-talents" id="competence-talents" data-type="String" multiple>
|
2022-11-05 10:03:23 +01:00
|
|
|
{{#each talents as |talent key|}}
|
|
|
|
<option value="{{talent._id}}">{{talent.name}}</option>
|
2022-10-28 21:44:49 +02:00
|
|
|
{{/each}}
|
2022-10-22 11:09:48 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
2022-10-28 21:44:49 +02:00
|
|
|
{{/if}}
|
2022-10-22 11:09:48 +02:00
|
|
|
|
2024-04-01 22:48:18 +02:00
|
|
|
{{#if conditionsCommunes}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">En surplomb, défenseur au sol (+3)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-au-sol" {{checked defenseurAuSol}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défenseur aveuglé (+10)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-aveugle" {{checked defenseurAveugle}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défenseur de dos (+5)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-de-dos" {{checked defenseurDeDos}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défenseur immobilisé (+5)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-immobilise" {{checked defenseurImmobilise}} />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (or immobiliser repousser)}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Cible consciente?</span>
|
|
|
|
<input type="checkbox" id="cibleconsciente" {{checked cibleconsciente}} />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2023-04-24 22:20:47 +02:00
|
|
|
{{#if arme}}
|
|
|
|
{{#if arme.system.isMelee}}
|
|
|
|
{{#if bonusArmeNaturelle}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Arme naturelle/fortune en défense</span>
|
|
|
|
<span class="small-label roll-dialog-label">{{bonusArmeNaturelle}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="flexrow">
|
2024-04-01 22:48:18 +02:00
|
|
|
<span class="roll-dialog-label">En surplomb, défenseur au sol (+3)?</span>
|
2023-04-24 22:20:47 +02:00
|
|
|
<input type="checkbox" id="defenseur-au-sol" {{checked defenseurAuSol}} />
|
|
|
|
</div>
|
2024-04-01 22:48:18 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Attaquants multiples (après le premier) (+3)?</span>
|
|
|
|
<input type="checkbox" id="attaquants-multiple" {{checked attaquantsMultiples}} />
|
|
|
|
</div>
|
|
|
|
{{#if hasAmbidextre}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Première attaque avec deux armes?</span>
|
|
|
|
<input type="checkbox" id="ambidextre-1" {{checked attaqueAmbidextre1}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Seconde attaque avec deux armes?</span>
|
|
|
|
<input type="checkbox" id="ambidextre-2" {{checked attaqueAmbidextre2}} />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if hasFeinte}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Feinte (<strong>cout : 1 BA</strong>) ?</span>
|
|
|
|
<input type="checkbox" id="feinte" {{checked feinte}} />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Soutiens </span>
|
|
|
|
<select class="status-small-label color-class-common" name="soutiens" id="soutiens" data-type="Number">
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions config.optionsSoutiens selected=soutiens valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2024-04-01 22:48:18 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
2023-04-24 22:20:47 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défenseur aveuglé (+10)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-aveugle" {{checked defenseurAveugle}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défenseur de dos (+5)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-de-dos" {{checked defenseurDeDos}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défenseur dans espace restreint (+3)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-restreint" {{checked defenseurRestreint}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défenseur immobilisé (+5)?</span>
|
|
|
|
<input type="checkbox" id="defenseur-immobilise" {{checked defenseurImmobilise}} />
|
|
|
|
</div>
|
2023-05-25 07:23:25 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Charge ?</span>
|
|
|
|
<input type="checkbox" id="attaque-charge" {{checked attaqueCharge}} />
|
|
|
|
</div>
|
2024-04-01 22:48:18 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Contenir?</span>
|
|
|
|
<input type="checkbox" id="contenir" {{checked contenir}} />
|
|
|
|
</div>
|
2023-05-25 07:23:25 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Désarmer (SD+10)?</span>
|
|
|
|
<input type="checkbox" id="attaque-desarme" {{checked attaqueDesarme}} />
|
|
|
|
</div>
|
2024-04-01 22:48:18 +02:00
|
|
|
{{#if isMonte}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Charge de cavalerie?</span>
|
|
|
|
<input type="checkbox" id="charge-cavalerie" {{checked chargeCavalerie}} />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2023-04-24 22:20:47 +02:00
|
|
|
{{else}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Tireur en déplacement ?</span>
|
|
|
|
<select class="item-field-label-long" type="text" id="tireur-deplacement" data-dtype="string">
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions config.optionsTireurDeplacement selected=tireurDeplacement valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2023-04-24 22:20:47 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Couvert de la cible ?</span>
|
|
|
|
<select class="item-field-label-long" type="text" id="cible-couvert" data-dtype="string">
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions config.optionsCouvert selected=cibleCouvert valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2023-04-24 22:20:47 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Cible se déplace vite (SD+3)?</span>
|
|
|
|
<input type="checkbox" id="tireur-cible-deplace" {{checked cibleDeplace}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Cible corps à corps (SD+3)?</span>
|
|
|
|
<input type="checkbox" id="tireur-cible-cac" {{checked cibleCaC}} />
|
|
|
|
</div>
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Taille de la cible ?</span>
|
|
|
|
<select class="item-field-label-long" type="text" id="taille-cible" data-dtype="string">
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions config.optionsTailleCible selected=tailleCible valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2023-04-24 22:20:47 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
|
2022-11-29 10:54:56 +01:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Bonus/Malus </span>
|
|
|
|
<select class="roll-dialog-label" id="bonus-malus-context" type="text" value="{{bonusMalusContext}}"
|
|
|
|
data-dtype="Number">
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions config.optionsBonusMalus selected=bonusMalusContext valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2022-11-29 10:54:56 +01:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2023-08-16 10:51:19 +02:00
|
|
|
{{#if (or armeDefense arme.system.isDistance)}}
|
2023-04-24 22:20:47 +02:00
|
|
|
|
|
|
|
{{#if arme.system.isDistance}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">SD de distance</span>
|
|
|
|
<select class="item-field-label-long" type="text" id="distance-tir" data-dtype="string">
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions config.optionsDistanceTir selected=distanceTir valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2023-04-24 22:20:47 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Défense adversaire : </span>
|
|
|
|
<span class="roll-dialog-label"><strong>{{difficulte}}</strong> </span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-10-22 11:09:48 +02:00
|
|
|
{{else}}
|
2023-04-24 22:20:47 +02:00
|
|
|
|
2022-11-29 10:54:56 +01:00
|
|
|
{{#if isInit}}
|
|
|
|
|
|
|
|
{{else}}
|
2023-04-24 22:20:47 +02:00
|
|
|
<div class="flexrow">
|
|
|
|
<span class="roll-dialog-label">Difficulté : </span>
|
2024-05-02 09:27:16 +02:00
|
|
|
<select class="roll-dialog-label" id="difficulte" type="text" name="difficulte" data-dtype="String">
|
2024-05-05 18:06:29 +02:00
|
|
|
{{selectOptions config.optionsDifficulte selected=difficulte valueAttr="key" nameAttr="key" labelAttr="label"}}
|
2023-04-24 22:20:47 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
2022-11-29 10:54:56 +01:00
|
|
|
{{/if}}
|
2022-10-22 11:09:48 +02:00
|
|
|
{{/if}}
|
2022-11-29 10:54:56 +01:00
|
|
|
|
2022-10-22 11:09:48 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|