Amélioration fiche d'item
This commit is contained in:
@ -1,17 +1,23 @@
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-name">{{localize "BOL.ui.actions"}}</div>
|
||||
<div class="item-name">{{localize "BOL.ui.damages"}}</div>
|
||||
</li>
|
||||
{{#each data.weapons as |weapon id|}}
|
||||
<li class="item flexrow" data-item-id="{{weapon._id}}">
|
||||
<div class="item-image"><img src="{{weapon.img}}" title="{{weapon.name}}" width="24" height="24"/></div>
|
||||
<h4 class="item-name"><a class="roll-weapon">{{weapon.name}}</a></h4>
|
||||
<span class="item-name">{{weapon.data.damage}}</span>
|
||||
<div class="item-controls-2">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{#each data.combat as | combat id|}}
|
||||
{{#if (gt (count combat.items) 0)}}
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-name flex2">{{localize combat.label}}</div>
|
||||
{{#if protection}}<div class="item-field">{{localize "BOL.ui.protection"}}</div>{{/if}}
|
||||
{{#if blocking}}<div class="item-field">{{localize "BOL.ui.blocking"}}</div>{{/if}}
|
||||
{{#if weapon}}<div class="item-field">{{localize "BOL.ui.damages"}}</div>{{/if}}
|
||||
{{#if ranged}}<div class="item-field">{{localize "BOL.ui.range"}}</div>{{else}}<div class="item-field"></div>{{/if}}
|
||||
</li>
|
||||
{{#each combat.items as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-image {{#if ../weapon}}roll-weapon{{/if}}"><img src="{{item.img}}" title="{{item.name}}"/></div>
|
||||
<h4 class="item-name flex2"><a class="item-edit">{{item.name}}</a></h4>
|
||||
{{#if ../protection}}<div class="item-field">{{item.data.properties.soak.value}}</div>{{/if}}
|
||||
{{#if ../blocking}}<div class="item-field">{{item.data.properties.blocking.malus}}</div>{{/if}}
|
||||
{{#if ../weapon}}<div class="item-field">{{item.data.properties.damage}}</div>{{/if}}
|
||||
{{#if ../ranged}}<div class="item-field">{{item.data.properties.range}}</div>{{else}}<div class="item-field"></div>{{/if}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
@ -1,25 +1,22 @@
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-name flex1">{{localize "BOL.itemCategory.equipment"}}</div>
|
||||
<!-- <div class="item-controls">-->
|
||||
<!-- <a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> Add item</a>-->
|
||||
<!-- </div>-->
|
||||
<div class="item-name flex3">{{localize "BOL.itemCategory.equipment"}}</div>
|
||||
<div class="item-field">{{localize "BOL.ui.quantity"}}</div>
|
||||
<div class="item-field"></div>
|
||||
</li>
|
||||
{{#each data.equipment as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/></div>
|
||||
<h4 class="item-name flex1">{{item.name}}</h4>
|
||||
{{#if data.properties.equipable}}
|
||||
<div class="item-controls-3">
|
||||
{{#if data.worn}}
|
||||
<a class="item-control item-equip" title="{{localize "BOL.ui.unequip"}}"><i class="fas fa-shield-alt"></i></a>
|
||||
{{else}}
|
||||
<a class="item-control item-equip" title="{{localize "BOL.ui.equip"}}" style="color:lightgray;"><i class="fas fa-shield-alt"></i></a>
|
||||
{{/if}}
|
||||
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}"/></div>
|
||||
<h4 class="item-name flex3"><a class="item-edit">{{item.name}}</a></h4>
|
||||
<div class="item-field">{{item.data.quantity}}</div>
|
||||
{{#if data.properties.equipable}}
|
||||
{{#if data.worn}}
|
||||
<div class="item-controls-1"><a class="item-control item-equip" title="{{localize "BOL.ui.unequip"}}"><i class="fas fa-shield-alt"></i></a></div>
|
||||
{{else}}
|
||||
<div class="item-controls-2">
|
||||
<div class="item-controls-1"><a class="item-control item-equip" title="{{localize "BOL.ui.equip"}}" style="color:lightgray;"><i class="fas fa-shield-alt"></i></a></div>
|
||||
{{/if}}
|
||||
<a class="item-control item-edit" title="{{localize "BOL.ui.edit"}}"><i class="fas fa-edit"></i></a>
|
||||
{{/if}}
|
||||
<div class="item-controls-1">
|
||||
<a class="item-control item-delete" title="{{localize "BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -1,21 +1,20 @@
|
||||
{{#each data.features as | features id|}}
|
||||
{{#each data.features as | features key|}}
|
||||
{{#if (gt (count features.items) 0)}}
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-name flex3">{{localize features.label}}</div>
|
||||
<div class="item-name flex2">{{localize features.label}}</div>
|
||||
{{#if ranked}}
|
||||
<div class="item-level">{{localize "Level"}}</div>
|
||||
<div class="item-field">{{localize "Level"}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{#each features.items as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/></div>
|
||||
<h4 class="item-name flex4"><a class="roll-career">{{item.name}}</a></h4>
|
||||
<div class="item-image {{#if (equals key "careers")}}roll-career{{/if}}"><img src="{{item.img}}" title="{{item.name}}"/></div>
|
||||
<h4 class="item-name flex2"><a class="item-edit">{{item.name}}</a></h4>
|
||||
{{#if item.data.rank}}
|
||||
<span class="item-level">{{item.data.rank}}</span>
|
||||
<span class="item-field">{{item.data.rank}}</span>
|
||||
{{/if}}
|
||||
<div class="item-controls-2">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<div class="item-controls-1">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -1,31 +1,41 @@
|
||||
<div class="chat-message-header">
|
||||
<img class="chat-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||
<div class="chat-message-header flexrow">
|
||||
<img class="chat-icon" src="{{actorImg}}" alt="{{alias}}"/>
|
||||
<h4 class=chat-actor-name>{{alias}}</h4>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<h3>
|
||||
{{#if (eq mode "attribute")}}
|
||||
{{localize attribute.label}}
|
||||
{{else}}
|
||||
{{#if (eq mode "career")}}
|
||||
{{localize "Career"}} : {{career.name}}
|
||||
{{else}}
|
||||
{{#if (eq mode "weapon")}}
|
||||
{{localize "Attack with"}} {{weapon.name}}
|
||||
{{#if (eq mode "attribute")}}
|
||||
{{localize attribute.label}}
|
||||
{{else}}
|
||||
{{#if (eq mode "career")}}
|
||||
{{localize "Career"}} : {{career.name}}
|
||||
{{else}}
|
||||
{{#if (eq mode "weapon")}}
|
||||
{{localize "Attack with"}} {{weapon.name}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</h3>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
<li>Formula : {{formula}}</li>
|
||||
<li>Modifier : {{modifier}} </li>
|
||||
<li><strong>Total Roll : {{finalScore}}</strong>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="dice-roll">
|
||||
<div class="dice-result">
|
||||
<div class="dice-formula">{{formula}}</div>
|
||||
<div class="dice-formula">{{modifier}}</div>
|
||||
<div class="dice-tooltip" style="display: none;">
|
||||
<section class="tooltip-part">
|
||||
<div class="dice">
|
||||
<header class="part-header flexrow">
|
||||
<span class="part-formula">{{formula}}</span>
|
||||
<span class="part-total">{{finalScore}}</span>
|
||||
</header>
|
||||
<ol class="dice-rolls">
|
||||
<li class="roll die d6 discarded min">1</li>
|
||||
<li class="roll die d6">2</li>
|
||||
<li class="roll die d6">3</li>
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<h4 class="dice-total">{{finalScore}}</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
@ -9,14 +9,24 @@
|
||||
</nav>
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
<div class="tab" data-group="primary" data-tab="description">
|
||||
<div class="tab flexrow active no-wrap" data-group="primary" data-tab="description">
|
||||
{{#if itemProperties}}
|
||||
<div class="item-properties">
|
||||
<ol class="properties-list">
|
||||
{{#each itemProperties}}
|
||||
<li>{{localize this}}</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
<div class="tab properties" data-group="primary" data-tab="properties">
|
||||
{{#if (equals item.type "item")}}
|
||||
{{#if (equals type "item")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/item-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (equals item.type "feature")}}
|
||||
{{#if (equals type "feature")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature-properties.hbs"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -1,28 +1 @@
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "subtype"}}</label>
|
||||
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
||||
{{#select data.subtype}}
|
||||
<option value="boon">{{localize "Avantage"}}</option>
|
||||
<option value="flaw">{{localize "Flaw"}}</option>
|
||||
<option value="career">{{localize "Career"}}</option>
|
||||
<option value="language">{{localize "Language"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="grid grid-2col">-->
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Quantity</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Weight</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
{{#each data.properties as |property key|}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize key}}</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
|
||||
</div>
|
||||
{{/each}}
|
||||
<h3 class="form-header">{{localize "BOL.ui.armor"}}</h3>
|
||||
|
@ -0,0 +1 @@
|
||||
<h3 class="form-header">{{localize "BOL.ui.equipment"}}</h3>
|
||||
|
@ -1,25 +1,14 @@
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "subtype"}}</label>
|
||||
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
|
||||
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
||||
{{#select data.subtype}}
|
||||
<option value="boon">{{localize "Avantage"}}</option>
|
||||
<option value="flaw">{{localize "Flaw"}}</option>
|
||||
<option value="career">{{localize "Career"}}</option>
|
||||
<option value="language">{{localize "Language"}}</option>
|
||||
{{#each config.featureSubtypes as |item id|}}
|
||||
<option value="{{id}}">{{localize item}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="grid grid-2col">-->
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Quantity</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Weight</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
{{#each data.properties as |property key|}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize key}}</label>
|
||||
|
@ -1,28 +1,62 @@
|
||||
<!--<div class="property flexrow">-->
|
||||
<!-- <label class="property-label">{{localize "BOL.ui.category"}}</label>-->
|
||||
<!-- <select name="data.subtype" value="{{data.category}}" data-dtype="String">-->
|
||||
<!-- {{#select data.category}}-->
|
||||
<!-- {{#each config.itemCategories as |item id|}}-->
|
||||
<!-- <option value="{{id}}">{{localize item}}</option>-->
|
||||
<!-- {{/each}}-->
|
||||
<!-- {{/select}}-->
|
||||
<!-- </select>-->
|
||||
<!--</div>-->
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "subtype"}}</label>
|
||||
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
|
||||
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
||||
{{#select data.subtype}}
|
||||
<option value="boon">{{localize "Avantage"}}</option>
|
||||
<option value="flaw">{{localize "Flaw"}}</option>
|
||||
<option value="career">{{localize "Career"}}</option>
|
||||
<option value="language">{{localize "Language"}}</option>
|
||||
{{#each config.equipmentCategories as |item id|}}
|
||||
<option value="{{id}}">{{localize item}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="grid grid-2col">-->
|
||||
<hr/>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Quantity</label>
|
||||
<label class="property-label">{{localize "BOL.ui.quantity"}}</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Weight</label>
|
||||
<label class="property-label">{{localize "BOL.ui.weight"}}</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
{{#each data.properties as |property key|}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize key}}</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.price"}}</label>
|
||||
<input type="text" name="data.price" value="{{data.price}}" data-dtype="Number"/>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div class="form-group stacked">
|
||||
<!-- <label>Propriétés</label>-->
|
||||
<div class="form-fields">
|
||||
{{#each data.properties as |property key|}}
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.properties.{{key}}" {{checked property}}> {{localize key}} ({{key}})
|
||||
</label>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
{{#if data.properties.equipable}}
|
||||
{{> "systems/bol/templates/item/parts/properties/equipment-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if data.properties.weapon}}
|
||||
{{> "systems/bol/templates/item/parts/properties/weapon-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (equals data.properties.protection)}}
|
||||
{{> "systems/bol/templates/item/parts/properties/protection-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if data.properties.shield}}
|
||||
{{> "systems/bol/templates/item/parts/properties/shield-properties.hbs"}}
|
||||
{{/if}}
|
||||
|
@ -1,28 +1 @@
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "subtype"}}</label>
|
||||
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
||||
{{#select data.subtype}}
|
||||
<option value="boon">{{localize "Avantage"}}</option>
|
||||
<option value="flaw">{{localize "Flaw"}}</option>
|
||||
<option value="career">{{localize "Career"}}</option>
|
||||
<option value="language">{{localize "Language"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="grid grid-2col">-->
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Quantity</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Weight</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
{{#each data.properties as |property key|}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize key}}</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
|
||||
</div>
|
||||
{{/each}}
|
||||
<h3 class="form-header">{{localize "BOL.ui.melee"}}</h3>
|
||||
|
@ -0,0 +1 @@
|
||||
<h3 class="form-header">{{localize "BOL.ui.armor"}}</h3>
|
@ -1,28 +1 @@
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "subtype"}}</label>
|
||||
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
||||
{{#select data.subtype}}
|
||||
<option value="boon">{{localize "Avantage"}}</option>
|
||||
<option value="flaw">{{localize "Flaw"}}</option>
|
||||
<option value="career">{{localize "Career"}}</option>
|
||||
<option value="language">{{localize "Language"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="grid grid-2col">-->
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Quantity</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Weight</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
{{#each data.properties as |property key|}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize key}}</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
|
||||
</div>
|
||||
{{/each}}
|
||||
<h3 class="form-header">{{localize "BOL.ui.ranged"}}</h3>
|
||||
|
1
templates/item/parts/properties/shield-properties.hbs
Normal file
1
templates/item/parts/properties/shield-properties.hbs
Normal file
@ -0,0 +1 @@
|
||||
<h3 class="form-header">{{localize "BOL.ui.armor"}}</h3>
|
@ -1,28 +1,8 @@
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "subtype"}}</label>
|
||||
<select name="data.subtype" value="{{data.subtype}}" data-dtype="String">
|
||||
{{#select data.subtype}}
|
||||
<option value="boon">{{localize "Avantage"}}</option>
|
||||
<option value="flaw">{{localize "Flaw"}}</option>
|
||||
<option value="career">{{localize "Career"}}</option>
|
||||
<option value="language">{{localize "Language"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<h3 class="form-header">{{localize "BOL.ui.weapon"}}</h3>
|
||||
|
||||
<!-- <div class="grid grid-2col">-->
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Quantity</label>
|
||||
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">Weight</label>
|
||||
<input type="text" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
{{#each data.properties as |property key|}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize key}}</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.properties.{{key}}" {{checked property}}/></label>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#if data.properties.melee}}
|
||||
{{> "systems/bol/templates/item/parts/properties/melee-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if data.properties.ranged}}
|
||||
{{> "systems/bol/templates/item/parts/properties/ranged-properties.hbs"}}
|
||||
{{/if}}
|
||||
|
11
templates/roll/parts/roll-dialog-attribute.hbs
Normal file
11
templates/roll/parts/roll-dialog-attribute.hbs
Normal file
@ -0,0 +1,11 @@
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "attribut"}}</label>
|
||||
<select id="rollAttribute" value="rollAttribute">
|
||||
{{#select rollAttribute}}
|
||||
<option value="vigor">{{localize "BOL.attributes.vigor"}}</option>
|
||||
<option value="agility">{{localize "BOL.attributes.agility"}}</option>
|
||||
<option value="mind">{{localize "BOL.attributes.mind"}}</option>
|
||||
<option value="appeal">{{localize "BOL.attributes.appeal"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
36
templates/roll/parts/roll-dialog-modifiers.hbs
Normal file
36
templates/roll/parts/roll-dialog-modifiers.hbs
Normal file
@ -0,0 +1,36 @@
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6M"}}</label>
|
||||
<input class="field-value center" id="d6Malus" name="d6Malus" type="text" value="{{numberFormat d6Malus decimals=0 sign=true}}" data-dtype="Number" style="text-align: center"/>
|
||||
<!-- <select id="d6Malus" value="d6Malus">-->
|
||||
<!-- {{!#select d6Malus}}-->
|
||||
<!-- <option value="0">0</option>-->
|
||||
<!-- <option value="1">1</option>-->
|
||||
<!-- <option value="2">2</option>-->
|
||||
<!-- <option value="3">3</option>-->
|
||||
<!-- <option value="4">4</option>-->
|
||||
<!-- {{!/select}}-->
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6B"}}</label>
|
||||
<input class="field-value center" id="d6Bonus" name="d6Bonus" type="text" value="{{numberFormat d6Bonus decimals=0 sign=true}}" data-dtype="Number" style="text-align: center"/>
|
||||
<!-- <select id="d6Bonus" value="d6Bonus">-->
|
||||
<!-- {{!#select d6Bonus}}-->
|
||||
<!-- <option value="0">0</option>-->
|
||||
<!-- <option value="1">1</option>-->
|
||||
<!-- <option value="2">2</option>-->
|
||||
<!-- <option value="3">3</option>-->
|
||||
<!-- <option value="4">4</option>-->
|
||||
<!-- {{!/select}}-->
|
||||
<!-- </select>-->
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Modifier"}}</label>
|
||||
<select id="bonusMalus" value="bonusMalus">
|
||||
{{#select bonusMalus}}
|
||||
{{{optionsBonusMalus}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
@ -1,39 +1,3 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6M"}}</label>
|
||||
<select id="d6Malus" value="d6Malus">
|
||||
{{#select d6Malus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6B"}}</label>
|
||||
<select id="d6Bonus" value="d6Bonus">
|
||||
{{#select d6Bonus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Modifier"}}</label>
|
||||
<select id="bonusMalus" value="bonusMalus">
|
||||
{{#select bonusMalus}}
|
||||
{{{optionsBonusMalus}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{> "systems/bol/templates/roll/parts/roll-dialog-modifiers.hbs"}}
|
||||
</form>
|
||||
|
@ -1,56 +1,8 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "rank"}}</label>
|
||||
<label class="property-label">{{career.data.rank}}</label>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "attribut"}}</label>
|
||||
<select id="rollAttribute" value="rollAttribute">
|
||||
{{#select rollAttribute}}
|
||||
<option value="vigor">{{localize "BOL.attributes.vigor"}}</option>
|
||||
<option value="agility">{{localize "BOL.attributes.agility"}}</option>
|
||||
<option value="mind">{{localize "BOL.attributes.mind"}}</option>
|
||||
<option value="appeal">{{localize "BOL.attributes.appeal"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6M"}}</label>
|
||||
<select id="d6Malus" value="d6Malus">
|
||||
{{#select d6Malus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6B"}}</label>
|
||||
<select id="d6Bonus" value="d6Bonus">
|
||||
{{#select d6Bonus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Modifier"}}</label>
|
||||
<select id="bonusMalus" value="bonusMalus">
|
||||
{{#select bonusMalus}}
|
||||
{{{optionsBonusMalus}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "rank"}}</label>
|
||||
<label class="property-label">{{career.data.rank}}</label>
|
||||
</div>
|
||||
{{> "systems/bol/templates/roll/parts/roll-dialog-attribute.hbs"}}
|
||||
{{> "systems/bol/templates/roll/parts/roll-dialog-modifiers.hbs"}}
|
||||
</form>
|
||||
|
@ -1,8 +1,4 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="flexrow">
|
||||
|
||||
</div>
|
||||
|
||||
<form class="spell-roll-dialog">
|
||||
<div class="flexrow">
|
||||
</div>
|
||||
</form>
|
||||
|
@ -1,74 +1,34 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<h2 class="dialog-roll-title">{{title}}</h2>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Defender"}} : </label>
|
||||
<label class="property-label">{{defender.name}}</label>
|
||||
<label class="property-label">{{localize "Defense score"}}</label>
|
||||
<label class="property-label">{{defender.data.aptitudes.def.value}}</label>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "attribut"}}</label>
|
||||
<select id="rollAttribute" value="rollAttribute">
|
||||
{{#select rollAttribute}}
|
||||
<option value="vigor">{{localize "BOL.attributes.vigor"}}</option>
|
||||
<option value="agility">{{localize "BOL.attributes.agility"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6M"}}</label>
|
||||
<select id="d6Malus" value="d6Malus">
|
||||
{{#select d6Malus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "d6B"}}</label>
|
||||
<select id="d6Bonus" value="d6Bonus">
|
||||
{{#select d6Bonus}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{#if isRangedWeapon}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Range Modifier"}}</label>
|
||||
<select id="rangeModifier" value="rangeModifier">
|
||||
{{#select rangeModifier}}
|
||||
<option value="1">{{localize "Point Blank"}}</option>
|
||||
<option value="0">{{localize "Short"}}</option>
|
||||
<option value="-1">{{localize "Medium"}}</option>
|
||||
<option value="-2">{{localize "Long"}}</option>
|
||||
<option value="-4">{{localize "Very Long"}}</option>
|
||||
<option value="-6">{{localize "Extreme"}}</option>
|
||||
<option value="-8">{{localize "Maximum"}}</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Modifier"}}</label>
|
||||
<select id="bonusMalus" value="bonusMalus">
|
||||
{{#select bonusMalus}}
|
||||
{{{optionsBonusMalus}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{#if defender}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Defender"}} : </label>
|
||||
<label class="property-label">{{defender.name}}</label>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Defense score"}}</label>
|
||||
<label class="property-label">{{defender.data.aptitudes.def.value}}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{> "systems/bol/templates/roll/parts/roll-dialog-attribute.hbs"}}
|
||||
{{> "systems/bol/templates/roll/parts/roll-dialog-modifiers.hbs"}}
|
||||
{{#if isRangedWeapon}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Range Modifier"}}</label>
|
||||
<input class="field-value center" id="rangeModifier" name="rangeModifier" type="text"
|
||||
value="{{numberFormat rangeModifier decimals=0 sign=true}}" data-dtype="Number"
|
||||
style="text-align: center"/>
|
||||
<!-- <select id="rangeModifier" value="rangeModifier">-->
|
||||
<!-- {{!#select rangeModifier}}-->
|
||||
<!-- <option value="1">{{localize "BOL.range.PointBlank"}}</option>-->
|
||||
<!-- <option value="0">{{localize "BOL.range.Short"}}</option>-->
|
||||
<!-- <option value="-1">{{localize "BOL.range.Medium"}}</option>-->
|
||||
<!-- <option value="-2">{{localize "BOL.range.Long"}}</option>-->
|
||||
<!-- <option value="-4">{{localize "BOL.range.Very Long"}}</option>-->
|
||||
<!-- <option value="-6">{{localize "BOL.range.Extreme"}}</option>-->
|
||||
<!-- <option value="-8">{{localize "BOL.range.Maximum"}}</option>-->
|
||||
<!-- {{!/select}}-->
|
||||
<!-- </select>-->
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
</form>
|
||||
|
42
templates/roll/roll-dialog.hbs
Normal file
42
templates/roll/roll-dialog.hbs
Normal file
@ -0,0 +1,42 @@
|
||||
<form class="skill-roll-dialog">
|
||||
{{!#if (equals mode "attribute")}}{{!/if}}
|
||||
{{#if (equals mode "career")}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "rank"}}</label>
|
||||
<label class="property-label">{{career.data.rank}}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (equals mode "weapon")}}
|
||||
{{#if defender}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Defender"}} : </label>
|
||||
<label class="property-label">{{defender.name}}</label>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Defense score"}}</label>
|
||||
<label class="property-label">{{defender.data.aptitudes.def.value}}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if isRangedWeapon}}
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "Range Modifier"}}</label>
|
||||
<input class="field-value center" id="rangeModifier" name="rangeModifier" type="text" value="{{numberFormat rangeModifier decimals=0 sign=true}}" data-dtype="Number" style="text-align: center"/>
|
||||
<!-- <select id="rangeModifier" value="rangeModifier">-->
|
||||
<!-- {{!#select rangeModifier}}-->
|
||||
<!-- <option value="1">{{localize "BOL.range.PointBlank"}}</option>-->
|
||||
<!-- <option value="0">{{localize "BOL.range.Short"}}</option>-->
|
||||
<!-- <option value="-1">{{localize "BOL.range.Medium"}}</option>-->
|
||||
<!-- <option value="-2">{{localize "BOL.range.Long"}}</option>-->
|
||||
<!-- <option value="-4">{{localize "BOL.range.Very Long"}}</option>-->
|
||||
<!-- <option value="-6">{{localize "BOL.range.Extreme"}}</option>-->
|
||||
<!-- <option value="-8">{{localize "BOL.range.Maximum"}}</option>-->
|
||||
<!-- {{!/select}}-->
|
||||
<!-- </select>-->
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if (neq mode "attribute")}}
|
||||
{{> "systems/bol/templates/roll/parts/roll-dialog-attribute.hbs"}}
|
||||
{{/if}}
|
||||
{{> "systems/bol/templates/roll/parts/roll-dialog-modifiers.hbs"}}
|
||||
</form>
|
Reference in New Issue
Block a user