Add spells and alchemy
This commit is contained in:
38
templates/dialogs/alchemy-roll-dialog.hbs
Normal file
38
templates/dialogs/alchemy-roll-dialog.hbs
Normal file
@@ -0,0 +1,38 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="sheet-header">
|
||||
<div class="row flexrow table-header">
|
||||
<div class="flex1 center">
|
||||
<h3>{{localize 'BOL.ui.makeAlchemy'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> "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>
|
||||
</div>
|
||||
<div class="flex1 center cell">{{careerBonus}}</div>
|
||||
</div>
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.alchemyCostTotal'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell" id="pccost">{{pcCost}}</div>
|
||||
</div>
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.alchemyCurrent'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell" id="pccostcurrent">{{pcCostCurrent}}</div>
|
||||
</div>
|
||||
|
||||
</form>
|
@@ -5,6 +5,7 @@
|
||||
<div class="flex1 center cell">
|
||||
<select name="mod" id="mod" value="{{mod}}">
|
||||
{{#select mod}}
|
||||
<option value="4">Inmanquable (+4)</option>
|
||||
<option value="2">Trés Facile (+2)</option>
|
||||
<option value="1">Facile (+1)</option>
|
||||
<option value="0">Moyenne (0)</option>
|
||||
@@ -13,6 +14,8 @@
|
||||
<option value="-4">Très Difficile (-4)</option>
|
||||
<option value="-6">Impossible (-6)</option>
|
||||
<option value="-8">Héroïque (-8)</option>
|
||||
<option value="-10">Mythique (-10)</option>
|
||||
<option value="-12">Divine (-12)</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
66
templates/dialogs/spell-roll-dialog.hbs
Normal file
66
templates/dialogs/spell-roll-dialog.hbs
Normal file
@@ -0,0 +1,66 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="sheet-header">
|
||||
<div class="row flexrow table-header">
|
||||
<div class="flex1 center">
|
||||
<h3>{{localize 'BOL.ui.focusSpell'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> "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>
|
||||
</div>
|
||||
<div class="flex1 center cell">{{careerBonus}}</div>
|
||||
</div>
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.ppcost'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell" id="ppcost">{{ppCost}}</div>
|
||||
</div>
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.ppAvailable'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell">{{ppCurrent}}</div>
|
||||
</div>
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.mandatoryconditions'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell">
|
||||
{{#each spell.data.data.properties.mandatoryconditions as | cond idx|}}
|
||||
{{#if (lt idx @root.spell.data.data.properties.nbmandatoryconditions)}}
|
||||
<label for="mod">{{cond}}</label>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.optionnalconditions'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell">
|
||||
<select class="flex1" name="optcond" id="optcond" data-type="String" multiple>
|
||||
{{#each spell.data.data.properties.optionnalconditions as | cond idx|}}
|
||||
{{#if (lt idx @root.spell.data.data.properties.nboptionnalconditions)}}
|
||||
<option value="{{idx}}">{{cond}}</option>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
Reference in New Issue
Block a user