Compare commits
2 Commits
b866c95ebd
...
ad80802af6
Author | SHA1 | Date | |
---|---|---|---|
ad80802af6 | |||
0f7b9baf51 |
@ -292,6 +292,7 @@ export class RdDUtility {
|
|||||||
|
|
||||||
Handlebars.registerHelper('array-includes', (array, value) => array.includes(value));
|
Handlebars.registerHelper('array-includes', (array, value) => array.includes(value));
|
||||||
Handlebars.registerHelper('min', (...args) => Math.min(...args.slice(0, -1)));
|
Handlebars.registerHelper('min', (...args) => Math.min(...args.slice(0, -1)));
|
||||||
|
Handlebars.registerHelper('isLastIndex', (index, list) => index+1 >= list.length);
|
||||||
Handlebars.registerHelper('regle-optionnelle', (option) => ReglesOptionnelles.isUsing(option));
|
Handlebars.registerHelper('regle-optionnelle', (option) => ReglesOptionnelles.isUsing(option));
|
||||||
Handlebars.registerHelper('trier', list => list.sort((a, b) => a.name.localeCompare(b.name)));
|
Handlebars.registerHelper('trier', list => list.sort((a, b) => a.name.localeCompare(b.name)));
|
||||||
Handlebars.registerHelper('filtreTriCompetences', competences => RdDItemCompetence.triVisible(competences));
|
Handlebars.registerHelper('filtreTriCompetences', competences => RdDItemCompetence.triVisible(competences));
|
||||||
|
@ -60,11 +60,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs" competences= competences}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs" competences=competences}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
{{export.draconic.value}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs" competences=draconic }}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
{{#each competences as |group|}}
|
{{#each competences as |group|}}
|
||||||
{{#if @index}}/{{/if}}
|
{{#if @index}}/{{/if}}
|
||||||
{{#each group.list as |comp|}}
|
{{#with group}}
|
||||||
{{#if @index}}, {{/if}}
|
{{#each list as |comp|}}
|
||||||
<span class="item" data-item-id="{{comp._id}}">
|
<span class="item" data-item-id="{{comp._id}}"><a class="roll-competence">{{comp.name}}</a></span>{{~#unless (isLastIndex @index ../list)~}},{{/unless~}}
|
||||||
<a class="roll-competence">{{comp.name}}</a>
|
|
||||||
</span>
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{numberFormat group.niveau decimals=0 sign=true}}
|
{{numberFormat niveau decimals=0 sign=true}}
|
||||||
|
{{/with}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{{#if protectionnaturelle.value}}
|
{{#if protectionnaturelle.value}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=protectionnaturelle}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=protectionnaturelle}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{log 'protectionarmure' protectionarmure}}
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=protectionarmure}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=protectionarmure}}
|
||||||
{{#if armure.value}}
|
{{#if armure.value}}
|
||||||
<div class="flexrow flex-group-right"><i>{{armure.value}}</i></div>
|
<div class="flexrow flex-group-right"><i>{{armure.value}}</i></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user