Add v12 support

This commit is contained in:
2024-05-23 11:36:03 +02:00
parent a716a3b3d1
commit bddf772c99
157 changed files with 568 additions and 511 deletions

View File

@@ -64,9 +64,7 @@
class="roll-attribut">{{attr.label}}</a></span>
<select class="status-small-label color-class-common item-field-label-short" type="text"
name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
{{#select attr.value}}
{{> systems/fvtt-wasteland/templates/partial-list-niveau.html}}
{{/select}}
{{selectOptions @root.config.listeNiveauSkill selected=attr.value}}
</select>
</li>
{{/each}}
@@ -177,9 +175,7 @@
</div>
<select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
data-item-field="niveau" value="{{skill.system.niveau}}" data-dtype="Number">
{{#select skill.system.niveau}}
{{> systems/fvtt-wasteland/templates/partial-list-niveau.html}}
{{/select}}
{{selectOptions @root.config.listeNiveauSkill selected=skill.system.niveau}}
</select>
{{#if (ne skill.system.attribut1 "none")}}

View File

@@ -35,9 +35,7 @@
class="roll-attribut">{{attr.label}}</a></span>
<select class="status-small-label color-class-common item-field-label-short" type="text"
name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
{{#select attr.value}}
{{> systems/fvtt-wasteland/templates/partial-list-niveau-creature.html}}
{{/select}}
{{selectOptions @root.config.listeNiveauCreature selected=attr.value}}
</select>
</li>
{{/each}}
@@ -216,9 +214,7 @@
</div>
<select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
data-item-field="niveau" value="{{skill.system.niveau}}" data-dtype="Number">
{{#select skill.system.niveau}}
{{> systems/fvtt-wasteland/templates/partial-list-niveau.html}}
{{/select}}
{{selectOptions @root.config.listeNiveauSkill selected=skill.system.niveau}}
</select>
{{#if (ne skill.system.attribut1 "none")}}

View File

@@ -13,12 +13,7 @@
<span class="flexrow">
<label class="generic-label">Type d'arme : </label>
<select class="status-small-label color-class-common" type="text" name="system.typearme" value="{{data.typearme}}" data-dtype="string" >
{{#select data.typearme}}
<option value="contact">Arme de contact</option>
<option value="contactjet">Arme de contact et de Jet</option>
<option value="jet">Arme de Jet</option>
<option value="tir">Arme de Tir</option>
{{/select}}
{{selectOptions config.typeArmeOptions selected=data.typearme}}
</select>
</span>
<span class="flexrow">

View File

@@ -13,11 +13,7 @@
<span class="flexrow">
<label class="generic-label">Type : </label>
<select class="status-small-label color-class-common" type="text" name="system.artifextype" value="{{system.artifextype}}" data-dtype="string" >
{{#select system.artifextype}}
{{#each config.artifexType as |label key|}}
<option value="{{key}}">{{label}}</option>
{{/each}}
{{/select}}
{{selectOptions config.artifexType selected=system.artifextype}}
</select>
</span>

View File

@@ -13,11 +13,7 @@
<span class="flexrow">
<label class="generic-label">Type : </label>
<select class="status-small-label color-class-common" type="text" name="system.charmetype" value="{{system.charmetype}}" data-dtype="string" >
{{#select system.charmetype}}
{{#each config.charmetype as |label key|}}
<option value="{{key}}">{{label}}</option>
{{/each}}
{{/select}}
{{selectOptions config.charmetype selected=system.charmetype}}
</select>
</span>

View File

@@ -14,20 +14,14 @@
<label class="generic-label">Niveau : </label>
<select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
name="system.niveau" value="{{system.niveau}}" data-dtype="Number">
{{#select system.niveau}}
{{> systems/fvtt-wasteland/templates/partial-list-niveau.html}}
{{/select}}
{{selectOptions config.listeNiveauSkill selected=system.niveau}}
</select>
</span>
<span class="flexrow">
<label class="generic-label">Attribut 1 : </label>
<select class="status-small-label color-class-common" type="text" name="system.attribut1"
value="{{data.attribut1}}" data-dtype="string">
{{#select data.attribut1}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions attributs selected=data.attribut1}}
</select>
</span>
<span class="flexrow">
@@ -35,11 +29,7 @@
<select class="status-small-label color-class-common" type="text" name="system.attribut2"
value="{{data.attribut2}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select data.attribut2}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions attributs selected=data.attribut2}}
</select>
</span>
<span class="flexrow">
@@ -47,11 +37,7 @@
<select class="status-small-label color-class-common" type="text" name="system.attribut3"
value="{{data.attribut3}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select data.attribut3}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions attributs selected=data.attribut3}}
</select>
</span>

View File

@@ -15,11 +15,7 @@
<span class="flexrow">
<label class="generic-label">Type : </label>
<select class="status-small-label color-class-common" type="text" name="system.hubristype" value="{{system.hubristype}}" data-dtype="string" >
{{#select system.hubristype}}
{{#each config.hubrisType as |label key|}}
<option value="{{key}}">{{label}}</option>
{{/each}}
{{/select}}
{{selectOptions config.hubrisType selected=system.hubristype}}
</select>
</span>

View File

@@ -13,11 +13,7 @@
<span class="flexrow">
<label class="generic-label">Chemin : </label>
<select class="status-small-label color-class-common" type="text" name="system.chemin" value="{{system.chemin}}" data-dtype="string" >
{{#select system.chemin}}
{{#each config.cheminpouvoir as |label key|}}
<option value="{{key}}">{{label}}</option>
{{/each}}
{{/select}}
{{selectOptions config.cheminpouvoir selected=system.chemin}}
</select>
</span>
@@ -25,11 +21,7 @@
<label class="generic-label">Attribut : </label>
<select class="status-small-label color-class-common" type="text" name="system.attribut1"
value="{{data.attribut1}}" data-dtype="string">
{{#select data.attribut1}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions attributs selected=data.attribut1}}
</select>
</span>

View File

@@ -1,22 +0,0 @@
<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>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>

View File

@@ -1,11 +0,0 @@
<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>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>

View File

@@ -12,11 +12,7 @@
{{#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" >
{{#select attrKey}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
{{selectOptions attributs selected=attrKey}}
</select>
{{else}}
<span class="roll-dialog-label">{{attr.label}}</span>
@@ -38,11 +34,7 @@
<div class="flexrow">
<span class="roll-dialog-label">Dé additionnel : </span>
<select class="status-small-label color-class-common" id="charmeDice" type="text" name="charmeDice" value="charmeDice" data-dtype="string" >
{{#select charmeDice}}
{{#each config.dices as |dice dicekey|}}
<option value="{{dice}}">{{dice}}</option>
{{/each}}
{{/select}}
{{select config.dices selected=charmeDice}}
</select>
</div>
@@ -51,10 +43,8 @@
<div class="flexrow">
<span class="roll-dialog-label">Modificateur : </span>
<select class="roll-dialog-label" id="modificateur" type="text" name="modificateur" value="{{modificateur}}"
data-dtype="Number">
{{#select modificateur}}
{{{modificateursOptions}}}
{{/select}}
data-dtype="String">
{{selectOptions config.modificateurOptions valueAttr="key" nameAttr="key" labelAttr="label" selected=modificateur }}
</select>
</div>
@@ -70,15 +60,7 @@
<span class="roll-dialog-label">Difficulté : </span>
<select class="roll-dialog-label" id="difficulte" type="text" name="difficulte" value="{{difficulte}}"
data-dtype="Number">
{{#select difficulte}}
<option value="0">Aucune/Inconnue</option>
<option value="5">Facile (5)</option>
<option value="10">Moyenne (10)</option>
<option value="15">Ardue (15)</option>
<option value="20">Hasardeuse (20)</option>
<option value="25">Insensée (25)</option>
<option value="30">Pure Folie (30)</option>
{{/select}}
{{selectOptions config.difficulteOptions selected=difficulte}}
</select>
</div>
{{/if}}