2021-11-07 20:23:02 +01:00
|
|
|
<div class="attributes flexrow">
|
2022-07-01 15:48:54 +02:00
|
|
|
{{#each attributes as |attribute id|}}
|
2021-11-07 20:23:02 +01:00
|
|
|
<div class="attribute stat flex1 flex-group-center {{key}}">
|
2023-04-06 20:15:04 +02:00
|
|
|
<label class="stat-label"><a class="rollable" data-roll-type="attribute" data-roll="2d6+@attributes.{{key}}.value" data-adv="0" data-key="{{key}}">{{localize label}}</a></label>
|
|
|
|
{{#if attribute.numModifier}}
|
|
|
|
<label class="stat-value rounded">{{attribute.numModifier}}</label>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (count attribute.diceModifier)}}
|
|
|
|
<label class="stat-value rounded">{{attribute.diceModifier}}</label>
|
|
|
|
{{/if}}
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<input class="stat-value rounded" type="text" name="system.attributes.{{key}}.value" value="{{numberFormat value decimals=0 sign=true}}" data-dtype="Number"/>
|
|
|
|
<br/>
|
|
|
|
|
2022-11-29 15:23:05 +01:00
|
|
|
<span class="stat-roll rollable" title="2d6" data-roll-type="attribute" data-roll="2d6+@attributes.{{key}}.value" data-adv="0" data-key="{{key}}">
|
2022-03-20 23:17:52 +01:00
|
|
|
<i class="darkgreen fas fa-dice"></i>
|
|
|
|
</span>
|
|
|
|
<span class="tooltip-container">
|
|
|
|
<span class="stat-roll rollable" title="XP" data-roll-type="attributexp" data-key="{{key}}">
|
|
|
|
<i class="xp-next fas fa-arrow-up"></i></span>
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{#if (eq value -1)}}
|
|
|
|
2 XP
|
|
|
|
{{else}}
|
|
|
|
{{add value (add value 1)}} XP
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</span>
|
2021-11-07 20:23:02 +01:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div class="aptitudes flexrow">
|
2022-07-01 15:48:54 +02:00
|
|
|
{{#each aptitudes as |aptitude id|}}
|
2021-11-07 20:23:02 +01:00
|
|
|
<div class="aptitude stat flex1 flex-group-center">
|
2023-04-06 20:15:04 +02:00
|
|
|
<label class="stat-label"><a class="rollable" data-roll-type="aptitude" data-roll="2d6+@aptitudes.{{key}}.value" data-adv="0" data-key="{{key}}">{{localize label}}</a></label>
|
|
|
|
{{#if aptitude.numModifier}}
|
|
|
|
<label class="stat-value rounded">{{aptitude.numModifier}}</label>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (count aptitude.diceModifier)}}
|
|
|
|
<label class="stat-value rounded">{{aptitude.diceModifier}}</label>
|
|
|
|
{{/if}}
|
|
|
|
<br/>
|
|
|
|
|
2022-07-01 16:30:21 +02:00
|
|
|
<input class="stat-value rounded-border" type="text" name="system.aptitudes.{{key}}.value" value="{{numberFormat value decimals=0 sign=true}}" data-dtype="Number"/><br/>
|
2023-04-06 20:15:04 +02:00
|
|
|
|
2022-03-20 23:17:52 +01:00
|
|
|
<span class="stat-roll rollable" title="2d6" data-roll-type="aptitude" data-roll="2d6+@aptitudes.{{key}}.value" data-adv="0" data-key="{{key}}">
|
|
|
|
<i class="darkgreen fas fa-dice"></i>
|
|
|
|
</span>
|
|
|
|
<span class="tooltip-container">
|
|
|
|
<span class="stat-roll rollable" title="XP" data-roll-type="aptitudexp" data-key="{{key}}">
|
|
|
|
<i class="xp-next fas fa-arrow-up"></i></span>
|
|
|
|
<span class="tooltiptext">
|
|
|
|
{{#if (eq value -1)}}
|
|
|
|
1 XP
|
|
|
|
{{else}}
|
|
|
|
{{add value 2}} XP
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</span>
|
2021-11-07 20:23:02 +01:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div class="resources flexrow">
|
2022-01-08 23:28:16 +01:00
|
|
|
{{#each resources as |resource id|}}
|
2022-12-23 23:24:09 +01:00
|
|
|
{{#if resource.ismain}}
|
|
|
|
<div class="resource stat flex1 flex-group-center">
|
|
|
|
<label class="stat-label">{{localize label}}</label><br/>
|
|
|
|
<input class="stat-value resources-value" type="text" name="system.resources.{{key}}.value" value="{{numberFormat value decimals=0 sign=false}}" data-dtype="Number"/>
|
2023-03-18 13:51:46 +01:00
|
|
|
|
|
|
|
<a class="inc-dec-btns-resource" data-target="{{key}}" data-incr="-1"><i class="fas fa-minus-square"></i></a>
|
|
|
|
<a class="inc-dec-btns-resource" data-target="{{key}}" data-incr="1"><i class="fas fa-plus-square"></i></a>
|
|
|
|
|
2022-12-23 23:24:09 +01:00
|
|
|
{{#if (eq @root.charType 'player')}}
|
|
|
|
{{#if (exists bonus)}}
|
|
|
|
<span class="flexrow"><label class="stat-max bonus-text">Bonus</label><input class="resource-bonus resources-value" type="text" name="system.resources.{{key}}.bonus" value="{{numberFormat bonus decimals=0 sign=false}}" data-dtype="Number"/></span>
|
|
|
|
{{else}}
|
|
|
|
<span class="flexrow"><label class="stat-max"> </label><input class="resource-bonus resources-novalue" type="text" value="" disabled></span>
|
|
|
|
{{/if}}
|
2022-05-11 19:29:32 +02:00
|
|
|
{{/if}}
|
2022-12-23 23:24:09 +01:00
|
|
|
<input class="resources-value" type="text" name="system.resources.{{key}}.max" value="{{numberFormat max decimals=0 sign=false}}" data-dtype="Number"/>
|
|
|
|
</div>
|
2022-01-23 09:25:09 +01:00
|
|
|
{{/if}}
|
2021-11-07 20:23:02 +01:00
|
|
|
{{/each}}
|
|
|
|
</div>
|