Passage en v12 + preparation module officiel BoL

This commit is contained in:
2024-04-26 18:00:56 +02:00
parent ae43c7c920
commit 7ed9265a26
190 changed files with 767 additions and 1743 deletions

View File

@ -1,11 +1,7 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<select name="system.subtype" value="{{item.system.subtype}}" data-dtype="String">
{{#select item.system.subtype}}
{{#each config.featureSubtypes as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
{{selectOptions config.featureSubtypes selected=item.system.subtype localize=true}}
</select>
</div>

View File

@ -3,25 +3,13 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.attributaptitude"}}</label>
<select name="system.properties.identifier" value="{{item.system.properties.identifier}}">
{{#select item.system.properties.identifier}}
<option value="always">{{localize "BOL.ui.always"}}</option>
{{#each config.attackAttributes as |value id|}}
<option value="system.attributes.{{id}}">{{localize value}}</option>
{{/each}}
{{#each config.aptitudes as |value id|}}
<option value="system.aptitudes.{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.effectIdentifiers selected=item.system.properties.identifier localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.modifier"}}</label>
<select name="system.properties.modifier" value="{{item.system.properties.modifier}}">
{{#select item.system.properties.modifier}}
{{#each config.bolEffectModifier as |modifier id|}}
<option value="{{id}}">{{localize modifier}}</option>
{{/each}}
{{/select}}
{{selectOptions config.bolEffectModifier selected=item.system.properties.modifier localize=true}}
</select>
</div>

View File

@ -4,11 +4,7 @@
<label class="property-label">{{localize "BOL.ui.fightOptionType"}}</label>
<div class="form-fields">
<select name="system.properties.fightoptiontype" data-dtype="String">
{{#select item.system.properties.fightoptiontype}}
{{#each config.fightOptionTypes as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
{{selectOptions config.fightOptionTypes selected=item.system.properties.fightoptiontype localize=true}}
</select>
</div>
</div>

View File

@ -3,11 +3,7 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.answer"}}</label>
<select name="system.properties.horoscopeanswer" data-dtype="String">
{{#select item.system.properties.horoscopeanswer}}
{{#each config.horoscopeAnswer as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
{{selectOptions config.horoscopeAnswer selected=item.system.properties.horoscopeanswer localize=true}}
</select>
</div>

View File

@ -21,29 +21,17 @@
{{#if (eq item.system.properties.xptype "attribute")}}
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
{{#select item.system.properties.xpname}}
{{#each config.attackAttributes as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.attackAttributes selected=item.system.properties.xpname localize=true}}
</select>
{{else}}
{{#if (eq item.system.properties.xptype "aptitude")}}
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
{{#select item.system.properties.xpname}}
{{#each config.aptitudes as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.aptitudes selected=item.system.properties.xpname localize=true} }
</select>
{{else}}
{{#if (eq item.system.properties.xptype "career")}}
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
{{#select item.system.properties.xpname}}
{{#each careers as |career id|}}
<option value="{{id}}">{{career.name}}</option>
{{/each}}
{{/select}}
{{selectOptions careers labelAttr="name" selected=item.system.properties.xpname localize=true}}
</select>
{{else}}
<input type="text" name="system.properties.xpname" value="{{item.system.properties.xpname}}" data-dtype="String"/>

View File

@ -2,11 +2,7 @@
<label class="property-label">{{localize "BOL.ui.category"}}</label>
<div class="form-fields">
<select class="field-value" name="system.category" value="{{item.system.category}}" data-dtype="String">
{{#select item.system.category}}
{{#each config.itemCategories as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
{{selectOptions config.itemCategories selected=item.system.category localize=true}}
</select>
</div>
</div>

View File

@ -3,27 +3,14 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.alchemyType"}}</label>
<select class="field-value" name="system.properties.alchemytype" data-dtype="String">
{{#select item.system.properties.alchemytype}}
{{#each config.alchemyType as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.alchemyType selected=item.system.properties.alchemytype localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.difficulty"}}</label>
<select name="system.properties.difficulty" value="{{item.system.properties.difficulty}}">
{{#select item.system.properties.difficulty}}
<option value="2">{{localize "BOL.dialog.veryeasy"}}</option>
<option value="1">{{localize "BOL.dialog.easy"}}</option>
<option value="0">{{localize "BOL.dialog.moderate"}}</option>
<option value="-1">{{localize "BOL.dialog.hard"}}</option>
<option value="-2">{{localize "BOL.dialog.tough"}}</option>
<option value="-4">{{localize "BOL.dialog.demanding"}}</option>
<option value="-6">{{localize "BOL.dialog.formidable"}}</option>
<option value="-8">{{localize "BOL.dialog.heroic"}}</option>
{{/select}}
{{selectOptions config.alchemyModifiers selected=item.system.properties.difficulty localize=true}}
</select>
</div>

View File

@ -4,11 +4,7 @@
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<div class="form-fields">
<select name="system.subtype" data-dtype="String">
{{#select item.system.subtype}}
{{#each config.itemSubtypes as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
{{selectOptions config.itemSubtypes selected=item.system.subtype localize=true}}
</select>
</div>
</div>
@ -56,11 +52,7 @@
<label>{{localize "BOL.itemProperty.slot"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.slot" data-dtype="String">
{{#select item.system.properties.slot}}
{{#each config.equipmentSlots as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.equipmentSlots selected=item.system.properties.slot localize=true}}
</select>
</div>
</div>

View File

@ -20,11 +20,7 @@
<label class="property-label">{{localize "BOL.itemProperty.armorQuality"}}</label>
<div class="form-fields center">
<select class="field-value armorQuality" name="system.properties.armorQuality" data-dtype="String">
{{#select item.system.properties.armorQuality}}
{{#each config.armorQualities as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.armorQualities selected=item.system.properties.armorQuality localize=true}}
</select>
</div>
</div>

View File

@ -3,27 +3,14 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.circle"}}</label>
<select class="field-value" name="system.properties.circle" data-dtype="Number">
{{#select item.system.properties.circle}}
{{#each config.spellType as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.spellType selected=item.system.properties.circle localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.difficulty"}}</label>
<select name="system.properties.difficulty" value="{{item.system.properties.difficulty}}">
{{#select item.system.properties.difficulty}}
<option value="2">{{localize "BOL.dialog.veryeasy"}}</option>
<option value="1">{{localize "BOL.dialog.easy"}}</option>
<option value="0">{{localize "BOL.dialog.moderate"}}</option>
<option value="-1">{{localize "BOL.dialog.hard"}}</option>
<option value="-2">{{localize "BOL.dialog.tough"}}</option>
<option value="-4">{{localize "BOL.dialog.demanding"}}</option>
<option value="-6">{{localize "BOL.dialog.formidable"}}</option>
<option value="-8">{{localize "BOL.dialog.heroic"}}</option>
{{/select}}
{{selectOptions config.spellModifiers selected=item.system.properties.difficulty localize=true}}
</select>
</div>
@ -40,12 +27,7 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.mandatoryconditions"}}</label>
<select class="field-value" name="system.properties.nbmandatoryconditions" data-dtype="Number">
{{#select item.system.properties.nbmandatoryconditions}}
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
{{/select}}
{{selectOptions config.spellMandatoryConditions selected=item.system.properties.nbmandatoryconditions }}
</select>
</div>
@ -61,16 +43,7 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.optionnalconditions"}}</label>
<select class="field-value" name="system.properties.nboptionnalconditions" data-dtype="Number">
{{#select item.system.properties.nboptionnalconditions}}
<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>
{{/select}}
{{selectOptions config.spellOptionnalConditions selected=item.system.properties.nboptionnalconditions}}
</select>
</div>

View File

@ -4,11 +4,7 @@
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<div class="form-fields">
<select name="system.subtype" data-dtype="String">
{{#select item.system.subtype}}
{{#each config.vehicleSubtypes as |item id|}}
<option value="{{id}}">{{localize item}}</option>
{{/each}}
{{/select}}
{{selectOptions config.vehicleSubtypes selected=item.system.subtype localize=true}}
</select>
</div>
</div>

View File

@ -58,11 +58,7 @@
<label class="property-label">{{localize "BOL.itemProperty.attackAttribute"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.attackAttribute" data-dtype="String">
{{#select item.system.properties.attackAttribute}}
{{#each config.attackAttributes as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.attackAttributes selected=item.system.properties.attackAttribute localize=true}}
</select>
</div>
</div>
@ -70,11 +66,7 @@
<label class="property-label">{{localize "BOL.itemProperty.attackAptitude"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.attackAptitude" data-dtype="String">
{{#select item.system.properties.attackAptitude}}
{{#each config.attackAptitudes as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.attackAptitudes selected=item.system.properties.attackAptitude localize=true}}
</select>
</div>
</div>
@ -90,11 +82,7 @@
<label class="property-label">{{localize "BOL.itemProperty.weaponSize"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.weaponSize" data-dtype="String">
{{#select item.system.properties.weaponSize}}
{{#each config.weaponSizes as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.weaponSizes selected=item.system.properties.weaponSize localize=true}}
</select>
</div>
</div>
@ -102,11 +90,7 @@
<label class="property-label">{{localize "BOL.itemProperty.damage"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.damage" data-dtype="String">
{{#select item.system.properties.damage}}
{{#each config.damageValues as |value id|}}
<option value="{{id}}">{{value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.damageValues selected=item.system.properties.damage}}
</select>
</div>
</div>
@ -114,11 +98,7 @@
<label class="property-label">{{localize "BOL.itemProperty.damageAttribute"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.damageAttribute" data-dtype="String">
{{#select item.system.properties.damageAttribute}}
{{#each config.damageAttributes as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.damageAttributes selected=item.system.properties.damageAttribute localize=true}}
</select>
</div>
</div>
@ -132,11 +112,7 @@
<label class="property-label">{{localize "BOL.itemProperty.damageMultiplier"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.damageMultiplier" data-dtype="String">
{{#select item.system.properties.damageMultiplier}}
{{#each config.damageMultiplier as |value id|}}
<option value="{{id}}">{{value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.damageMultiplier selected=item.system.properties.damageMultiplier}}
</select>
</div>
</div>

View File

@ -42,11 +42,7 @@
<label class="property-label">{{localize "BOL.itemProperty.hulldamage"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.hulldamage" data-dtype="String">
{{#select item.system.properties.hulldamage}}
{{#each config.damageValues as |value id|}}
<option value="{{id}}">{{value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.damageValues selected=item.system.properties.hulldamage }}
</select>
</div>
</div>
@ -54,11 +50,7 @@
<label class="property-label">{{localize "BOL.itemProperty.hullDamageMultiplier"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.hullDamageMultiplier" data-dtype="String">
{{#select item.system.properties.hullDamageMultiplier}}
{{#each config.damageMultiplier as |value id|}}
<option value="{{id}}">{{value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.damageMultiplier selected=item.system.properties.hullDamageMultiplier }}
</select>
</div>
</div>
@ -70,11 +62,7 @@
<label class="property-label">{{localize "BOL.itemProperty.crewdamage"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.crewdamage" data-dtype="String">
{{#select item.system.properties.crewdamage}}
{{#each config.damageValues as |value id|}}
<option value="{{id}}">{{value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.damageValues selected=item.system.properties.crewdamage }}
</select>
</div>
</div>
@ -82,11 +70,7 @@
<label class="property-label">{{localize "BOL.itemProperty.crewDamageMultiplier"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.crewDamageMultiplier" data-dtype="String">
{{#select item.system.properties.crewDamageMultiplier}}
{{#each config.damageMultiplier as |value id|}}
<option value="{{id}}">{{value}}</option>
{{/each}}
{{/select}}
{{selectOptions config.damageMultiplier selected=item.system.properties.crewDamageMultiplier }}
</select>
</div>
</div>