forked from public/foundryvtt-reve-de-dragon
Separation difficulte libre/conditions
* ajout de diffConditions pour gérer l'ajustement de conditions * renommage de bmValue en diffLibre * calcul de l'ajustement (etat+conditions+difficulté libre) * présentation des 2 champs fix: * utiliser .change() au lieu de .click() permet de supporter aussi les changements au clavier
This commit is contained in:
@ -11,14 +11,23 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="categorie">Bonus/Malus</label>
|
||||
<select name="bonusmalus" id="bonusmalus" data-dtype="number">
|
||||
{{#select bonusmalus}}
|
||||
{{#each bonusmalusTable as |bmvalue key|}}
|
||||
<option value={{bmvalue}}>{{numberFormat bmvalue decimals=0 sign=true}}</option>
|
||||
<label for="categorie">Difficulté libre</label>
|
||||
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
||||
{{#select diffLibre}}
|
||||
{{#each difficultesLibres as |key|}}
|
||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<label for="categorie">conditions</label>
|
||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
||||
{{#select diffConditions}}
|
||||
{{#each ajustementsConditions as |key|}}
|
||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
||||
</div>
|
||||
{{#if arme}}
|
||||
<div>
|
||||
|
@ -1,11 +1,19 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="compdialog" id="compdialogTitle"></h2>
|
||||
<div class="form-group">
|
||||
<label for="categorie">Bonus/Malus</label>
|
||||
<select name="bonusmalus" id="bonusmalus" data-dtype="number">
|
||||
{{#select bonusmalus}}
|
||||
{{#each bonusmalusTable as |bmvalue key|}}
|
||||
<option value={{bmvalue}}>{{numberFormat bmvalue decimals=0 sign=true}}</option>
|
||||
<label for="categorie">Difficulté libre</label>
|
||||
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
||||
{{#select diffLibre}}
|
||||
{{#each difficultesLibres as |key|}}
|
||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<label for="categorie">conditions</label>
|
||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
||||
{{#select diffConditions}}
|
||||
{{#each ajustementsConditions as |key|}}
|
||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
@ -4,8 +4,8 @@
|
||||
<label class="competence-label">Modificateurs aux Dommages:</label>
|
||||
<select class="competence-value" name="modificateurDegats" id="modificateurDegats" data-dtype="number">
|
||||
{{#select modificateurDegats}}
|
||||
{{#each bonusmalusTable as |bmvalue key|}}
|
||||
<option value={{bmvalue}}>{{numberFormat bmvalue decimals=0 sign=true}}</option>
|
||||
{{#each ajustementsConditions as |key|}}
|
||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
@ -13,6 +13,14 @@
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<label for="categorie">conditions</label>
|
||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
||||
{{#select diffConditions}}
|
||||
{{#each ajustementsConditions as |key|}}
|
||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@ -20,7 +28,8 @@
|
||||
<select name="sort" id="sort" data-dtype="String">
|
||||
{{#select sort}}
|
||||
{{#each sortList as |sort key|}}
|
||||
<option value={{key}}>{{sort.name}} : {{sort.data.difficulte}} / {{sort.data.ptreve}} / {{sort.data.caseTMR}}</option>
|
||||
<option value={{key}}>{{this.name}} - {{#if this.data.caseTMRspeciale}} {{this.data.caseTMRspeciale}} {{else}}{{this.data.caseTMR}}{{/if}} / R{{this.data.difficulte}} r {{sort.data.ptreve}}</option>
|
||||
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
@ -28,12 +37,12 @@
|
||||
|
||||
<div class="form-group" id="div-sort-difficulte">
|
||||
<label for="categorie">Difficulté </label>
|
||||
<select name="bonusmalus" id="bonusmalus" data-dtype="number">
|
||||
{{#select bonusmalus}}
|
||||
{{#each bonusmalusTable as |bmvalue key|}}
|
||||
<option value={{bmvalue}}>{{numberFormat bmvalue decimals=0 sign=true}}</option>
|
||||
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
||||
{{#select diffLibre}}
|
||||
{{#each difficultesLibres as |key|}}
|
||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
@ -4,6 +4,13 @@
|
||||
<table id="tmrsheet">
|
||||
<tr id="tmrrow1">
|
||||
<td>
|
||||
<div class="flex-group-center">
|
||||
<a id="lancer-sort">Lancer un Sort</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="flex-group-center">
|
||||
<label>Carac. Rêve : </label><label>{{caracReve}}</label>
|
||||
</div>
|
||||
<div class="flex-group-center">
|
||||
Rêve Actuel : <span id="pointsreve-value">0</span>
|
||||
</div>
|
||||
@ -20,41 +27,6 @@
|
||||
Fatigue
|
||||
<span id="fatigue-table">{{{fatigueHTML}}}</span>
|
||||
</div>
|
||||
<div class="flex-group-center">
|
||||
<label>Carac. Rêve : </label><label>{{caracReve}}</label>
|
||||
</div>
|
||||
<div class="flex-group-center">
|
||||
<label>Points de Rêve : </label><label>{{pointsReve}}</label>
|
||||
</div>
|
||||
|
||||
<div class="flex-group-center">
|
||||
Draconic : <span id="draconic-list">
|
||||
<select name="draconic" id="draconic-list" data-dtype="String">
|
||||
{{#select draconic}}
|
||||
{{#each draconic}}
|
||||
<option value={{this.name}}>{{this.name}} - {{this.data.niveau}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="flex-group-center">
|
||||
Sorts : <span id="sorts-list">
|
||||
<select name="sort" id="sort-list" data-dtype="String">
|
||||
{{#select sort}}
|
||||
{{#each sort}}
|
||||
<option value={{this.name}}>{{this.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="flex-group-center">
|
||||
<a id="lancer-sort">Lancer un Sort</a>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user