DataModels + Appv2 migration : OK

This commit is contained in:
2026-03-01 01:12:00 +01:00
parent 1ffb8b08fc
commit 6c70dc147c
130 changed files with 2998 additions and 741 deletions

View File

@@ -2,12 +2,12 @@
<div class="flex1 center bg-darkred">
<label for="adv">{{localize 'BOL.ui.bonusmalus'}}</label>
</div>
<div class="flex1 center cell">
<input type="radio" class="bdice" name="adv" value="1" {{#if (eq adv "1B")}}checked{{/if}}/>+1dB<br />
<input type="radio" class="bdice" name="adv" value="2" {{#if (eq adv "2B")}}checked{{/if}}/>+2dB<br />
<input type="radio" class="bdice" name="adv" value="0" {{#if (eq adv "0")}}checked{{/if}}/>0<br />
<input type="radio" class="mdice" name="adv" value="1" {{#if (eq adv "1M")}}checked{{/if}}/>+1dM<br />
<input type="radio" class="mdice" name="adv" value="2" {{#if (eq adv "2M")}}checked{{/if}}/>+2dM<br />
<div class="flex1 center cell dice-options-cell">
<label class="dice-option bdice-label"><input type="radio" class="bdice" name="adv" value="2" {{#if (eq adv "2B")}}checked{{/if}}/>+2dB</label>
<label class="dice-option bdice-label"><input type="radio" class="bdice" name="adv" value="1" {{#if (eq adv "1B")}}checked{{/if}}/>+1dB</label>
<label class="dice-option neutral-label"><input type="radio" class="bdice" name="adv" value="0" {{#if (eq adv "0")}}checked{{/if}}/>0</label>
<label class="dice-option mdice-label"><input type="radio" class="mdice" name="adv" value="1" {{#if (eq adv "1M")}}checked{{/if}}/>+1dM</label>
<label class="dice-option mdice-label"><input type="radio" class="mdice" name="adv" value="2" {{#if (eq adv "2M")}}checked{{/if}}/>+2dM</label>
</div>
</div>

View File

@@ -34,8 +34,10 @@
<label for="mod">{{localize 'BOL.ui.modifiers'}}</label>
</div>
<div class="flex1 center cell">
<select name="mod" id="mod" value="{{mod}}">
{{selectOptions config.difficultyModifiers selected=mod localize=true}}
<select name="mod" id="mod">
{{#each config.difficultyModifiers}}
<option value="{{value}}" {{#if (equals ../mod value)}}selected{{/if}}>{{localize label}}</option>
{{/each}}
</select>
</div>
</div>