Datamodel + Appv2 migration, WIP

This commit is contained in:
2026-01-13 08:09:11 +01:00
parent 93d35abde2
commit 364278527d
143 changed files with 3712 additions and 708 deletions

View File

@@ -0,0 +1,38 @@
<form class="{{cssClass}}" autocomplete="off">
<div class="wrap flexrow">
<div class="main flex1">
{{> "systems/bol/templates/item/parts/item-header.hbs"}}
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">{{localize "BOL.ui.tab.description"}}</a>
<a class="item" data-tab="properties">{{localize "BOL.ui.tab.details"}}</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="tab description" 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 description target="system.description" button=true owner=owner editable=editable}}
</div>
<div class="tab properties" data-group="primary" data-tab="properties">
{{#if (eq item.type "item")}}
{{> "systems/bol/templates/item/parts/properties/item-properties.hbs"}}
{{/if}}
{{#if (eq item.type "feature")}}
{{> "systems/bol/templates/item/parts/properties/feature-properties.hbs"}}
{{/if}}
</div>
</section>
</div>
</div>
</form>

View File

@@ -0,0 +1,11 @@
{{!-- Sheet Header --}}
<header class="sheet-header">
<div class="header-field-group flexrow">
<img class="sheet-profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" style="border:none; background: lightgray; box-shadow: 5px 5px 5px black;"/>
<h1><input class="itemname flex6" name="name" type="text" value="{{item.name}}" placeholder="Name" style="text-shadow: 3px 3px 5px #333;"/></h1>
</div>
<!-- <img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/>-->
<!-- <div class="header-fields">-->
<!-- <h1 class="itemname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>-->
<!-- </div>-->
</header>

View File

@@ -0,0 +1,31 @@
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<select name="system.subtype" value="{{item.system.subtype}}" data-dtype="String">
{{selectOptions config.featureSubtypes selected=item.system.subtype localize=true}}
</select>
</div>
{{#if (eq item.system.subtype "career")}}
{{> "systems/bol/templates/item/parts/properties/feature/career-properties.hbs"}}
{{/if}}
{{#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 (eq item.system.subtype "boon")}}
{{> "systems/bol/templates/item/parts/properties/feature/boon-properties.hbs"}}
{{/if}}
{{#if (eq item.system.subtype "flaw")}}
{{> "systems/bol/templates/item/parts/properties/feature/flaw-properties.hbs"}}
{{/if}}
{{#if (eq item.system.subtype "boleffect")}}
{{> "systems/bol/templates/item/parts/properties/feature/effect-properties.hbs"}}
{{/if}}
{{#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,5 @@
<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="system.properties.isbonusdice" {{checked item.system.properties.isbonusdice}}>
</div>

View File

@@ -0,0 +1,21 @@
<h3 class="form-header">{{localize 'BOL.featureSubtypes.career'}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.rank"}}</label>
<input type="text" name="system.rank" value="{{item.system.rank}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.isSorcerer"}}</label>
<input class="field-value" type="checkbox" name="system.properties.sorcerer" {{checked item.system.properties.sorcerer}}>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.isAlchemist"}}</label>
<input class="field-value" type="checkbox" name="system.properties.alchemist" {{checked item.system.properties.alchemist}}>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.isPriest"}}</label>
<input class="field-value" type="checkbox" name="system.properties.priest" {{checked item.system.properties.priest}}>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.isAstrologer"}}</label>
<input class="field-value" type="checkbox" name="system.properties.astrologer" {{checked item.system.properties.astrologer}}>
</div>

View File

@@ -0,0 +1,15 @@
<h3 class="form-header">{{localize 'BOL.featureSubtypes.effect'}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.attributaptitude"}}</label>
<select name="system.properties.identifier" value="{{item.system.properties.identifier}}">
{{selectOptions config.effectIdentifiers selected=item.system.properties.identifier localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.modifier"}}</label>
<select name="system.properties.modifier" value="{{item.system.properties.modifier}}">
{{selectOptions config.bolEffectModifier selected=item.system.properties.modifier localize=true}}
</select>
</div>

View File

@@ -0,0 +1,21 @@
<h3 class="form-header">{{localize "BOL.ui.fightOption"}}</h3>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.fightOptionType"}}</label>
<div class="form-fields">
<select name="system.properties.fightoptiontype" data-dtype="String">
{{selectOptions config.fightOptionTypes selected=item.system.properties.fightoptiontype localize=true}}
</select>
</div>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.activated"}}</label>
<input class="field-value" type="checkbox" name="system.properties.activated" {{checked
item.system.properties.activated}}>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.isspecial"}}</label>
<input class="field-value" type="checkbox" name="system.properties.isspecial" {{checked
item.system.properties.isspecial}}>
</div>

View File

@@ -0,0 +1,5 @@
<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="system.properties.ismalusdice" {{checked item.system.properties.ismalusdice}}>
</div>

View File

@@ -0,0 +1,13 @@
<h3 class="form-header">{{localize 'BOL.featureSubtypes.horoscope'}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.answer"}}</label>
<select name="system.properties.horoscopeanswer" data-dtype="String">
{{selectOptions config.horoscopeAnswer selected=item.system.properties.horoscopeanswer localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.rank"}}</label>
<input class="field-value" type="text" name="system.properties.rank" value={{item.system.properties.rank}} data-type="Number">
</div>

View File

@@ -0,0 +1 @@
<h3 class="form-header">{{localize "BOL.featureSubtypes.origin"}}</h3>

View File

@@ -0,0 +1 @@
<h3 class="form-header">{{localize "BOL.featureSubtypes.race"}}</h3>

View File

@@ -0,0 +1,51 @@
<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}}">
{{selectOptions config.attackAttributes selected=item.system.properties.xpname localize=true}}
</select>
{{else}}
{{#if (eq item.system.properties.xptype "aptitude")}}
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
{{selectOptions config.aptitudes selected=item.system.properties.xpname localize=true} }
</select>
{{else}}
{{#if (eq item.system.properties.xptype "career")}}
<select name="system.properties.xpname" value="{{item.system.properties.xpname}}">
{{selectOptions careers labelAttr="name" selected=item.system.properties.xpname localize=true}}
</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>

View File

@@ -0,0 +1,27 @@
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.category"}}</label>
<div class="form-fields">
<select class="field-value" name="system.category" value="{{item.system.category}}" data-dtype="String">
{{selectOptions config.itemCategories selected=item.system.category localize=true}}
</select>
</div>
</div>
{{#if (eq item.system.category "equipment")}}
{{> "systems/bol/templates/item/parts/properties/item/equipment-properties.hbs"}}
{{/if}}
{{#if (eq item.system.category "capacity")}}
{{> "systems/bol/templates/item/parts/properties/item/capacity-properties.hbs"}}
{{/if}}
{{#if (eq item.system.category "vehicle")}}
{{> "systems/bol/templates/item/parts/properties/item/vehicle-properties.hbs"}}
{{/if}}
{{#if (eq item.system.category "spell")}}
{{> "systems/bol/templates/item/parts/properties/item/spell-properties.hbs"}}
{{/if}}
{{#if (eq item.system.category "alchemy")}}
{{> "systems/bol/templates/item/parts/properties/item/alchemy-properties.hbs"}}
{{/if}}
{{#if (eq item.system.category "vehicleweapon")}}
{{> "systems/bol/templates/item/parts/properties/item/weapon-vehicle-properties.hbs"}}
{{/if}}

View File

@@ -0,0 +1,26 @@
<h3 class="form-header">{{localize "BOL.ui.alchemyProperties"}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.alchemyType"}}</label>
<select class="field-value" name="system.properties.alchemytype" data-dtype="String">
{{selectOptions config.alchemyType selected=item.system.properties.alchemytype localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.difficulty"}}</label>
<select name="system.properties.difficulty" value="{{item.system.properties.difficulty}}">
{{selectOptions config.alchemyModifiers selected=item.system.properties.difficulty localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.pccost"}}</label>
<input class="field-value" type="text" name="system.properties.pccost" value="{{item.system.properties.pccost}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.pcnow"}}</label>
<input class="field-value" type="text" name="system.properties.pccurrent" value="{{item.system.properties.pccurrent}}" data-dtype="Number"/>
</div>

View File

@@ -0,0 +1,25 @@
<h3 class="form-header">{{localize "BOL.ui.capacityProperties"}}</h3>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.type"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.weapon" {{checked item.system.properties.weapon}}> {{localize "BOL.itemProperty.weapon"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.protection" {{checked item.system.properties.protection}}> {{localize "BOL.itemProperty.protection"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.magical" {{checked item.system.properties.magical}}> {{localize "BOL.itemProperty.magical"}}
</label>
</div>
</div>
{{#if item.system.properties.weapon}}
{{> "systems/bol/templates/item/parts/properties/item/weapon-properties.hbs"}}
{{/if}}
{{#if item.system.properties.protection}}
{{> "systems/bol/templates/item/parts/properties/item/protection-properties.hbs"}}
{{/if}}
{{#if item.system.properties.magical}}
{{> "systems/bol/templates/item/parts/properties/item/magical-properties.hbs"}}
{{/if}}

View File

@@ -0,0 +1,91 @@
<h3 class="form-header">{{localize "BOL.ui.equipmentProperties"}}</h3>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<div class="form-fields">
<select name="system.subtype" data-dtype="String">
{{selectOptions config.itemSubtypes selected=item.system.subtype localize=true}}
</select>
</div>
</div>
<hr/>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.capacities"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.weapon" {{checked item.system.properties.weapon}}> {{localize "BOL.itemProperty.weapon"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.protection" {{checked item.system.properties.protection}}> {{localize "BOL.itemProperty.protection"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.magical" {{checked item.system.properties.magical}}> {{localize "BOL.itemProperty.magical"}}
</label>
</div>
</div>
<hr/>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.properties"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.equipable" {{checked item.system.properties.equipable}}> {{localize "BOL.itemProperty.equipable"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.stackable" {{checked item.system.properties.stackable}}> {{localize "BOL.itemProperty.stackable"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.consumable" {{checked item.system.properties.consumable}}> {{localize "BOL.itemProperty.consumable"}}
</label>
</div>
</div>
<hr/>
{{#if item.system.properties.equipable}}
<div class="form-group">
<label>{{localize "BOL.itemProperty.worn"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.worn" {{checked item.system.worn}}> {{localize "BOL.itemProperty.worn"}}
</label>
</div>
</div>
<div class="form-group">
<label>{{localize "BOL.itemProperty.slot"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.slot" data-dtype="String">
{{selectOptions config.equipmentSlots selected=item.system.properties.slot localize=true}}
</select>
</div>
</div>
{{/if}}
{{#if item.system.properties.stackable}}
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.quantity"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.quantity" value="{{item.system.quantity}}" data-dtype="Number"/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.stacksize"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.stacksize" value="{{item.system.properties.stacksize}}" data-dtype="Number"/>
</div>
</div>
{{/if}}
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.price"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.price" value="{{item.system.price}}" data-dtype="Number"/>
</div>
</div>
{{#if item.system.properties.weapon}}
{{> "systems/bol/templates/item/parts/properties/item/weapon-properties.hbs"}}
{{/if}}
{{#if item.system.properties.protection}}
{{> "systems/bol/templates/item/parts/properties/item/protection-properties.hbs"}}
{{/if}}
{{#if item.system.properties.magical}}
{{> "systems/bol/templates/item/parts/properties/item/magical-properties.hbs"}}
{{/if}}

View File

@@ -0,0 +1 @@
<h3 class="form-header">{{localize "BOL.itemProperty.magicalProperties"}}</h3>

View File

@@ -0,0 +1,98 @@
<h3 class="form-header">{{localize "BOL.ui.protectionProperties"}}</h3>
<div class="form-group">
<label>{{localize "BOL.ui.subtype"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.armor" {{checked item.system.properties.armor}}> {{localize "BOL.itemProperty.armor"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.shield" {{checked item.system.properties.shield}}> {{localize "BOL.itemProperty.shield"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.helm" {{checked item.system.properties.helm}}> {{localize "BOL.itemProperty.helm"}}
</label>
</div>
</div>
<hr/>
{{#if item.system.properties.armor}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.armorQuality"}}</label>
<div class="form-fields center">
<select class="field-value armorQuality" name="system.properties.armorQuality" data-dtype="String">
{{selectOptions config.armorQualities selected=item.system.properties.armorQuality localize=true}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.soakFormula"}}</label>
<div class="form-fields">
<input class="field-value soakFormula" type="text" name="system.properties.soak.formula" value="{{item.system.properties.soak.formula}}" data-dtype="String"/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.soakValue"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.soak.value" value="{{item.system.properties.soak.value}}" data-dtype="Number"/>
</div>
</div>
{{/if}}
{{#if item.system.properties.helm}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.soakModifiers"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.soak.modifier" value="{{item.system.properties.soak.modifier}}" data-dtype="Number"/>
</div>
</div>
{{/if}}
{{#if item.system.properties.shield}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.blockingMalus"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.blocking.malus" value="{{item.system.properties.blocking.malus}}" data-dtype="Number"/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.blockingAttacksBlocked"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.blocking.blocking1" {{checked item.system.properties.blocking.blocking1}}> {{localize "BOL.itemProperty.blocking1Attack"}}
</label>
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.blocking.blockingAll" {{checked item.system.properties.blocking.blockingAll}}> {{localize "BOL.itemProperty.blockingAllAttacks"}}
</label>
</div>
</div>
{{/if}}
<hr/>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemModifiers.init"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.modifiers.init" value="{{item.system.properties.modifiers.init}}" data-dtype="Number"/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemModifiers.agility"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.modifiers.agility" value="{{item.system.properties.modifiers.agility}}" data-dtype="Number"/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemModifiers.powercost"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.modifiers.powercost" value="{{item.system.properties.modifiers.powercost}}" data-dtype="Number"/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemModifiers.social"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.modifiers.social" {{checked item.system.properties.modifiers.social}}>
</label>
</div>
</div>

View File

@@ -0,0 +1,77 @@
<h3 class="form-header">{{localize "BOL.ui.spellProperties"}}</h3>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.circle"}}</label>
<select class="field-value" name="system.properties.circle" data-dtype="Number">
{{selectOptions config.spellType selected=item.system.properties.circle localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.difficulty"}}</label>
<select name="system.properties.difficulty" value="{{item.system.properties.difficulty}}">
{{selectOptions config.spellModifiers selected=item.system.properties.difficulty localize=true}}
</select>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.ppcost"}}</label>
<input class="field-value" type="text" name="system.properties.ppcost" value="{{item.system.properties.ppcost}}" data-dtype="Number"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.duration"}}</label>
<input class="field-value" type="text" name="system.properties.duration" value="{{item.system.properties.duration}}" data-dtype="String"/>
</div>
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.mandatoryconditions"}}</label>
<select class="field-value" name="system.properties.nbmandatoryconditions" data-dtype="Number">
{{selectOptions config.spellMandatoryConditions selected=item.system.properties.nbmandatoryconditions }}
</select>
</div>
{{#each item.system.properties.mandatoryconditions as |cond idx|}}
{{#if (lt idx @root.item.system.properties.nbmandatoryconditions)}}
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.mandatoryconditions"}} {{add idx 1}}</label>
<input class="field-value" type="text" name="system.properties.mandatoryconditions.{{idx}}" value="{{cond}}" data-dtype="String"/>
</div>
{{/if}}
{{/each}}
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.optionnalconditions"}}</label>
<select class="field-value" name="system.properties.nboptionnalconditions" data-dtype="Number">
{{selectOptions config.spellOptionnalConditions selected=item.system.properties.nboptionnalconditions}}
</select>
</div>
{{#each item.system.properties.optionnalconditions as |cond idx|}}
{{#if (lt idx @root.item.system.properties.nboptionnalconditions)}}
<div class="property flexrow">
<label class="property-label">{{localize "BOL.ui.optionnalconditions"}} {{add idx 1}}</label>
<input class="field-value" type="text" name="system.properties.optionnalconditions.{{idx}}" value="{{cond}}" data-dtype="String"/>
</div>
{{/if}}
{{/each}}
<h4><label class="property-label">{{localize "BOL.ui.magicnewrules"}} : </label></h4>
<div class="property flexrow">
<div class="form-fields center">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.spellkeep" {{checked item.system.properties.spellkeep}}> {{localize "BOL.ui.spellkeep"}}
</label>
</div>
<div class="form-fields center">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.concentrate" {{checked item.system.properties.concentrate}}> {{localize "BOL.ui.concentrate"}}
</label>
</div>
<div class="form-fields center">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.aggressive" {{checked item.system.properties.aggressive}}> {{localize "BOL.ui.aggressive"}}
</label>
</div>
</div>

View File

@@ -0,0 +1,24 @@
<h3 class="form-header">{{localize "BOL.ui.vehicleProperties"}}</h3>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.subtype"}}</label>
<div class="form-fields">
<select name="system.subtype" data-dtype="String">
{{selectOptions config.vehicleSubtypes selected=item.system.subtype localize=true}}
</select>
</div>
</div>
<hr/>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.speed"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.properties.speed" value="{{item.system.properties.speed}}" data-dtype="Number"/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.ui.price"}}</label>
<div class="form-fields">
<input class="field-value" type="text" name="system.price" value="{{item.system.price}}" data-dtype="Number"/>
</div>
</div>

View File

@@ -0,0 +1,322 @@
<h3 class="form-header">{{localize "BOL.ui.weaponProperties"}}</h3>
<div class="form-group">
<label>{{localize "BOL.ui.reach"}}</label>
<div class="form-fields">
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.melee"
{{checked item.system.properties.melee}}
/>
{{localize "BOL.itemProperty.melee"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.ranged"
{{checked item.system.properties.ranged}}
/>
{{localize "BOL.itemProperty.ranged"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.throwing"
{{checked item.system.properties.throwing}}
/>
{{localize "BOL.itemProperty.throwing"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.natural"
{{checked item.system.properties.natural}}
/>
{{localize "BOL.itemProperty.natural"}}
</label>
</div>
</div>
<hr />
<div class="form-group">
<label>{{localize "BOL.ui.properties"}}</label>
<div class="form-fields">
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.2H"
{{checked item.system.properties.2H}}
/>
{{localize "BOL.itemProperty.2H"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.concealable"
{{checked item.system.properties.concealable}}
/>
{{localize "BOL.itemProperty.concealable"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.ignoreshield"
{{checked item.system.properties.ignoreshield}}
/>
{{localize "BOL.itemProperty.ignoreshield"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.attackBonusDice"
{{checked item.system.properties.attackBonusDice}}
/>
{{localize "BOL.itemProperty.attackBonusDice"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.attackMalusDice"
{{checked item.system.properties.attackMalusDice}}
/>
{{localize "BOL.itemProperty.attackMalusDice"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.onlymodifier"
{{checked item.system.properties.onlymodifier}}
/>
{{localize "BOL.itemProperty.onlymodifier"}}
</label>
{{#if item.system.properties.ranged}}
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.reloadable"
{{checked item.system.properties.reloadable}}
/>
{{localize "BOL.itemProperty.reloadable"}}
</label>
{{/if}}
{{#if item.system.properties.melee}}
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.bashing"
{{checked item.system.properties.bashing}}
/>
{{localize "BOL.itemProperty.bashing"}}
</label>
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.throwable"
{{checked item.system.properties.throwable}}
/>
{{localize "BOL.itemProperty.throwable"}}
</label>
{{/if}}
</div>
</div>
<hr />
{{#if (not item.system.properties.onlymodifier)}}
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.attackAttribute"
}}</label>
<div class="form-fields center">
<select
class="field-value"
name="system.properties.attackAttribute"
data-dtype="String"
>
{{selectOptions
config.attackAttributes
selected=item.system.properties.attackAttribute
localize=true
}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.attackAptitude"
}}</label>
<div class="form-fields center">
<select
class="field-value"
name="system.properties.attackAptitude"
data-dtype="String"
>
{{selectOptions
config.attackAptitudes
selected=item.system.properties.attackAptitude
localize=true
}}
</select>
</div>
</div>
{{/if}}
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.attackModifiers"
}}</label>
<div class="form-fields center">
<input
class="field-value"
type="text"
name="system.properties.attackModifiers"
value="{{item.system.properties.attackModifiers}}"
data-dtype="Number"
/>
</div>
</div>
<hr />
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.weaponSize"
}}</label>
<div class="form-fields">
<select
class="field-value"
name="system.properties.weaponSize"
data-dtype="String"
>
{{selectOptions
config.weaponSizes
selected=item.system.properties.weaponSize
localize=true
}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.damage"}}</label>
<div class="form-fields">
<select
class="field-value"
name="system.properties.damage"
data-dtype="String"
>
{{selectOptions
config.damageValues
selected=item.system.properties.damage
}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.damageAttribute"
}}</label>
<div class="form-fields center">
<select
class="field-value"
name="system.properties.damageAttribute"
data-dtype="String"
>
{{selectOptions
config.damageAttributes
selected=item.system.properties.damageAttribute
localize=true
}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.damageModifiers"
}}</label>
<div class="form-fields center">
<input
class="field-value"
type="text"
name="system.properties.damageModifiers"
value="{{item.system.properties.damageModifiers}}"
data-dtype="Number"
/>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.damageMultiplier"
}}</label>
<div class="form-fields center">
<select
class="field-value"
name="system.properties.damageMultiplier"
data-dtype="String"
>
{{selectOptions
config.damageMultiplier
selected=item.system.properties.damageMultiplier
}}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize
"BOL.itemProperty.damageSpecial"
}}</label>
<div class="form-fields center">
<label class="checkbox">
<input
class="field-value"
type="checkbox"
name="system.properties.damageReroll1"
{{checked item.system.properties.damageReroll1}}
/>
{{localize "BOL.itemProperty.damageReroll1"}}
</label>
</div>
</div>
{{#if
(or
item.system.properties.throwing
(or item.system.properties.ranged item.system.properties.throwable)
)
}}
<hr />
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.range"}}</label>
<div class="form-fields center">
<input
class="field-value"
type="text"
name="system.properties.range"
value="{{item.system.properties.range}}"
data-dtype="Number"
/>
</div>
</div>
{{/if}}
{{#if item.system.properties.reloadable}}
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.reload"}}</label>
<div class="form-fields center">
<input
class="field-value"
type="text"
name="system.properties.reload"
value="{{item.system.properties.reload}}"
data-dtype="Number"
/>
</div>
</div>
{{/if}}

View File

@@ -0,0 +1,77 @@
<h3 class="form-header">{{localize "BOL.ui.weaponProperties"}}</h3>
<hr/>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.vehicleDamageType"}}</label>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.isfiredamage" {{checked item.system.properties.isfiredamage}}> {{localize "BOL.itemProperty.isfiredamage"}}
</label>
</div>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.ishulldamage" {{checked item.system.properties.ishulldamage}}> {{localize "BOL.itemProperty.ishulldamage"}}
</label>
</div>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.iscrewdamage" {{checked item.system.properties.iscrewdamage}}> {{localize "BOL.itemProperty.iscrewdamage"}}
</label>
</div>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.isboarding" {{checked item.system.properties.isboarding}}> {{localize "BOL.itemProperty.isboarding"}}
</label>
</div>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.isspur" {{checked item.system.properties.isspur}}> {{localize "BOL.itemProperty.isspur"}}
</label>
</div>
<div class="form-fields">
<label class="checkbox">
<input class="field-value" type="checkbox" name="system.properties.isbreakrow" {{checked item.system.properties.isbreakrow}}> {{localize "BOL.itemProperty.isbreakrow"}}
</label>
</div>
</div>
{{#if item.system.properties.ishulldamage}}
<hr/>
<h3 class="form-header">{{localize "BOL.itemProperty.hulldamage"}}</h3>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.hulldamage"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.hulldamage" data-dtype="String">
{{selectOptions config.damageValues selected=item.system.properties.hulldamage }}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.hullDamageMultiplier"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.hullDamageMultiplier" data-dtype="String">
{{selectOptions config.damageMultiplier selected=item.system.properties.hullDamageMultiplier }}
</select>
</div>
</div>
{{/if}}
{{#if item.system.properties.iscrewdamage}}
<hr/>
<h3 class="form-header">{{localize "BOL.itemProperty.crewdamage"}}</h3>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.crewdamage"}}</label>
<div class="form-fields">
<select class="field-value" name="system.properties.crewdamage" data-dtype="String">
{{selectOptions config.damageValues selected=item.system.properties.crewdamage }}
</select>
</div>
</div>
<div class="form-group">
<label class="property-label">{{localize "BOL.itemProperty.crewDamageMultiplier"}}</label>
<div class="form-fields center">
<select class="field-value" name="system.properties.crewDamageMultiplier" data-dtype="String">
{{selectOptions config.damageMultiplier selected=item.system.properties.crewDamageMultiplier }}
</select>
</div>
</div>
{{/if}}

View File

@@ -0,0 +1,8 @@
<div class="post-item" data-transfer="{{transfer}}">
<h3><b>{{name}}</b></h3>
{{#if img}}
<img class="chat-icon" src="{{img}}" title="{{name}}" />
{{/if}}
<h4><b>Description : </b></h4>
<p class="card-content">{{{system.description}}}</p>
</div>