Support des jets d'attributs et d'aptitudes

Ajout des macros
Amélioration des cartons dans le chat avec gestion des succès/échecs/échecs critiques.
Support des carrières dans les dialogues de tests d'attibuts et d'aptitudes.
This commit is contained in:
ZigmundKreud
2021-12-22 05:12:40 +01:00
parent 4c349d89a8
commit d5a5990faa
41 changed files with 750 additions and 578 deletions

View File

@ -9,9 +9,18 @@
</select>
</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 (equals data.subtype "career")}}
{{> "systems/bol/templates/item/parts/properties/feature/career-properties.hbs"}}
{{/if}}
{{!#if (equals data.subtype "origin")}}
{{!> "systems/bol/templates/item/parts/properties/feature/origin-properties.hbs"}}
{{!/if}}
{{!#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}}

View File

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

View File

@ -0,0 +1,5 @@
<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="data.rank" value="{{data.rank}}" data-dtype="Number"/>
</div>

View File

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

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

@ -49,14 +49,14 @@
</div>
{{#if data.properties.equipable}}
{{> "systems/bol/templates/item/parts/properties/equipment-properties.hbs"}}
{{> "systems/bol/templates/item/parts/properties/item/equipment-properties.hbs"}}
{{/if}}
{{#if data.properties.weapon}}
{{> "systems/bol/templates/item/parts/properties/weapon-properties.hbs"}}
{{> "systems/bol/templates/item/parts/properties/item/weapon-properties.hbs"}}
{{/if}}
{{#if (equals data.properties.protection)}}
{{> "systems/bol/templates/item/parts/properties/protection-properties.hbs"}}
{{> "systems/bol/templates/item/parts/properties/item/protection-properties.hbs"}}
{{/if}}
{{#if data.properties.shield}}
{{> "systems/bol/templates/item/parts/properties/shield-properties.hbs"}}
{{> "systems/bol/templates/item/parts/properties/item/shield-properties.hbs"}}
{{/if}}