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

@@ -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"/>