Ajout du xplog

This commit is contained in:
2024-01-12 18:42:12 +01:00
parent c7c26c0033
commit 5de40d4998
117 changed files with 566 additions and 472 deletions

View File

@ -9,24 +9,27 @@
</select>
</div>
{{#if (equals item.system.subtype "career")}}
{{#if (eq item.system.subtype "career")}}
{{> "systems/bol/templates/item/parts/properties/feature/career-properties.hbs"}}
{{/if}}
{{#if (equals item.system.subtype "fightoption")}}
{{#if (eq item.system.subtype "fightoption")}}
{{> "systems/bol/templates/item/parts/properties/feature/fightoption-properties.hbs"}}
{{/if}}
{{!#if (equals data.subtype "race")}}
{{!> "systems/bol/templates/item/parts/properties/feature/race-properties.hbs"}}
{{!/if}}
{{#if (equals item.system.subtype "boon")}}
{{#if (eq item.system.subtype "boon")}}
{{> "systems/bol/templates/item/parts/properties/feature/boon-properties.hbs"}}
{{/if}}
{{#if (equals item.system.subtype "flaw")}}
{{#if (eq item.system.subtype "flaw")}}
{{> "systems/bol/templates/item/parts/properties/feature/flaw-properties.hbs"}}
{{/if}}
{{#if (equals item.system.subtype "boleffect")}}
{{#if (eq item.system.subtype "boleffect")}}
{{> "systems/bol/templates/item/parts/properties/feature/effect-properties.hbs"}}
{{/if}}
{{#if (equals item.system.subtype "horoscope")}}
{{#if (eq item.system.subtype "horoscope")}}
{{> "systems/bol/templates/item/parts/properties/feature/horoscope-properties.hbs"}}
{{/if}}
{{#if (eq item.system.subtype "xplog")}}
{{> "systems/bol/templates/item/parts/properties/feature/xplog-properties.hbs"}}
{{/if}}

View File

@ -0,0 +1,63 @@
<h3 class="form-header">{{localize 'BOL.featureSubtypes.xplog'}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.type"}}</label>
<select name="system.properties.xptype" value="{{item.system.properties.xptype}}">
{{#select item.system.properties.xptype}}
{{#each config.listTypes as |value id|}}
<option value="{{id}}">{{localize value}}</option>
{{/each}}
{{/select}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.date"}}</label>
<input type="text" name="system.properties.xpdate" value="{{item.system.properties.xpdate}}" data-dtype="String"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.name"}}</label>
{{#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}}
</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}}
</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}}
</select>
{{else}}
<input type="text" name="system.properties.xpname" value="{{item.system.properties.xpname}}" data-dtype="String"/>
{{/if}}
{{/if}}
{{/if}}
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.cost"}}</label>
<input type="text" name="system.properties.xpcost" value="{{item.system.properties.xpcost}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.value"}}</label>
<input type="text" name="system.properties.xpvalue" value="{{item.system.properties.xpvalue}}" data-dtype="Number"/>
</div>