Ehance rols

This commit is contained in:
2022-02-18 21:58:53 +01:00
parent cfdfa27f23
commit 0ee9e41a50
21 changed files with 372 additions and 216 deletions

View File

@ -1,12 +1,11 @@
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="adv">{{localize 'BOL.ui.advantages'}}</label>
<label for="adv">{{localize 'BOL.ui.bonusmalus'}}</label>
</div>
<div class="flex1 center cell">
<input type="radio" name="adv" value="1B" {{#if (eq adv "1B")}}checked{{/if}}/>2d6B<br />
<input type="radio" name="adv" value="2B" {{#if (eq adv "2B")}}checked{{/if}}/>2d6BB<br />
<input type="radio" name="adv" value="2" {{#if (eq adv "2")}}checked{{/if}}/>2d6<br />
<input type="radio" name="adv" value="1M" {{#if (eq adv "1M")}}checked{{/if}}/>2d6M<br />
<input type="radio" name="adv" value="2M" {{#if (eq adv "2M")}}checked{{/if}}/>2d6MM<br />
<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="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>
</div>

View File

@ -10,10 +10,6 @@
{{> "systems/bol/templates/dialogs/attribute-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="mod">{{localize 'BOL.ui.alchemistRank'}}</label>
@ -35,4 +31,14 @@
<div class="flex1 center cell" id="pccostcurrent">{{pcCostCurrent}}</div>
</div>
{{> "systems/bol/templates/dialogs/boons-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/total-roll-part.hbs"}}
</form>

View File

@ -25,12 +25,17 @@
</div>
{{/if}}
{{> "systems/bol/templates/dialogs/career-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/boons-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/career-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/total-roll-part.hbs"}}
</form>

View File

@ -10,34 +10,16 @@
{{> "systems/bol/templates/dialogs/attribute-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/career-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/boons-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/career-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/total-roll-part.hbs"}}
<!--<div class="flexrow" style="margin-bottom: 1px;">-->
<!-- <div class="flex1 center bg-darkred">-->
<!-- <label for="mod">{{!localize 'BOL.ui.boons'}}</label>-->
<!-- </div>-->
<!-- <div class="flex1 center cell">-->
<!-- <select class="flex1" name="boon" id="boon" data-type="String" multiple>-->
<!-- {{!#each boons.items as | boon id|}}-->
<!-- <option value="{{!boon._id}}">{{!boon.name}}</option>-->
<!-- {{!/each}}-->
<!-- </select>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="flexrow" style="margin-bottom: 1px;">-->
<!-- <div class="flex1 center bg-darkred">-->
<!-- <label for="mod">{{!localize 'BOL.ui.flaws'}}</label>-->
<!-- </div>-->
<!-- <div class="flex1 center cell">-->
<!-- <select class="flex1" name="flaw" id="flaw" data-type="String" multiple>-->
<!-- {{!#each flaws.items as | flaw id|}}-->
<!-- <option value="{{!flaw._id}}">{{flaw.name}}</option>-->
<!-- {{!/each}}-->
<!-- </select>-->
<!-- </div>-->
<!--</div>-->
</form>

View File

@ -0,0 +1,14 @@
{{#if (count boons)}}
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="mod">{{localize 'BOL.ui.boons'}}</label>
</div>
<div class="flex1 center cell">
<select class="flex1" name="boon" id="boon" data-type="String" multiple>
{{#each boons as | boon id|}}
<option value="1">{{boon.name}}</option>
{{/each}}
</select>
</div>
</div>
{{/if}}

View File

@ -0,0 +1,14 @@
{{#if (count flaws)}}
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="mod">{{localize 'BOL.ui.flaws'}}</label>
</div>
<div class="flex1 center cell">
<select class="flex1" name="flaw" id="flaw" data-type="String" multiple>
{{#each flaws as | flaw id|}}
<option value="1">{{flaw.name}}</option>
{{/each}}
</select>
</div>
</div>
{{/if}}

View File

@ -10,10 +10,6 @@
{{> "systems/bol/templates/dialogs/attribute-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="mod">{{localize 'BOL.ui.sorcererRank'}}</label>
@ -63,4 +59,14 @@
</div>
</div>
{{> "systems/bol/templates/dialogs/boons-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/total-roll-part.hbs"}}
</form>

View File

@ -0,0 +1,16 @@
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="mod">{{localize 'BOL.ui.nbdices'}}</label>
</div>
<div class="flex1 center cell">
<input class="flex1" type="text" id="roll-nbdice" value="2" disabled>
</div>
</div>
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="mod">{{localize 'BOL.ui.totalmod'}}</label>
</div>
<div class="flex1 center cell">
<input class="flex1" type="text" id="roll-modifier" value="0" disabled>
</div>
</div>

View File

@ -12,10 +12,6 @@
{{> "systems/bol/templates/dialogs/aptitude-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
<div class="flexrow" style="margin-bottom: 1px;">
<div class="flex1 center bg-darkred">
<label for="mod">{{localize 'BOL.ui.targetDefence'}}</label>
@ -45,4 +41,14 @@
{{> "systems/bol/templates/dialogs/career-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/boons-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
{{> "systems/bol/templates/dialogs/total-roll-part.hbs"}}
</form>

View File

@ -18,9 +18,9 @@
{{!#if (equals data.subtype "race")}}
{{!> "systems/bol/templates/item/parts/properties/feature/race-properties.hbs"}}
{{!/if}}
{{!#if (equals data.subtype "boon")}}
{{!> "systems/bol/templates/item/parts/properties/feature/boon-properties.hbs"}}
{{!/if}}
{{!#if (equals data.subtype "flaw")}}
{{!> "systems/bol/templates/item/parts/properties/feature/flaw-properties.hbs"}}
{{!/if}}
{{#if (equals data.subtype "boon")}}
{{> "systems/bol/templates/item/parts/properties/feature/boon-properties.hbs"}}
{{/if}}
{{#if (equals data.subtype "flaw")}}
{{> "systems/bol/templates/item/parts/properties/feature/flaw-properties.hbs"}}
{{/if}}

View File

@ -1 +1,5 @@
<h3 class="form-header">{{localize "BOL.featureSubtypes.boon"}}</h3>
<h3 class="form-header">{{localize 'BOL.featureSubtypes.boon'}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.isbonusdice"}}</label>
<input class="field-value" type="checkbox" name="data.properties.isbonusdice" {{checked data.properties.isbonusdice}}>
</div>

View File

@ -1 +1,5 @@
<h3 class="form-header">{{localize "BOL.featureSubtypes.flaw"}}</h3>
<h3 class="form-header">{{localize 'BOL.featureSubtypes.flaw'}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.ismalusdice"}}</label>
<input class="field-value" type="checkbox" name="data.properties.ismalusdice" {{checked data.properties.ismalusdice}}>
</div>