bol/templates/actor/parts/tabs/creature-stats.hbs

50 lines
2.5 KiB
Handlebars
Raw Normal View History

2022-04-10 20:15:30 +02:00
<div class="attributes flexrow">
2024-11-02 18:29:22 +01:00
{{#each attributes as |attribute id|}}
{{#if (ne id "appeal")}}
<div class="attribute stat flex1 flex-group-center {{key}}">
<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><br />
<input class="stat-value rounded" type="text" name="system.attributes.{{key}}.value"
value="{{numberFormat value decimals=0 sign=true}}" data-dtype="Number" /><br />
<span class="stat-roll rollable" title="2d6" data-roll-type="attribute" data-roll="2d6+@attributes.{{key}}.value"
data-adv="0" data-key="{{key}}">
<i class="darkgreen fas fa-dice"></i>
</span>
</div>
{{/if}}
{{/each}}
2022-04-10 20:15:30 +02:00
</div>
2024-11-02 18:29:22 +01:00
<hr />
2022-04-10 20:15:30 +02:00
<div class="aptitudes flexrow">
<div class="aptitude stat flex1 flex-group-center">
2024-09-04 08:57:26 +02:00
<div class="">
<label class="stat-label">
<a class="rollable" data-roll-type="aptitude" data-roll="2d6+@aptitudes.def.value" data-adv="0" data-key="def">
{{localize "BOL.aptitudes.def"}}
</a>
</label>
2024-11-02 18:29:22 +01:00
<br />
<input class="stat-value rounded-border" type="text" name="system.aptitudes.def.value"
value="{{numberFormat aptitudes.3.value decimals=0 sign=true}}" data-dtype="Number" /><br />
<span class="stat-roll rollable" title="2d6" data-roll-type="aptitude" data-roll="2d6+@aptitudes.def.value"
data-adv="0" data-key="def">
2022-04-10 20:15:30 +02:00
<i class="darkgreen fas fa-dice"></i>
</span>
</div>
</div>
2024-11-02 18:29:22 +01:00
<div class="resource stat flex1 flex-group-center">
<label class="stat-label">{{localize "BOL.resources.hp"}}</label><br />
<input class="stat-value" type="text" name="system.resources.hp.value"
value="{{numberFormat resources.hp.value decimals=0 sign=false}}" data-dtype="Number" />
<input class="stat-max" type="text" name="system.resources.hp.max"
value="{{numberFormat resources.hp.max decimals=0 sign=false}}" data-dtype="Number" />
</div>
<div class="resource stat flex1 flex-group-center">
<label class="stat-label">{{localize "BOL.resources.villainy"}}</label><br />
<input class="stat-value" type="text" name="system.resources.hero.value"
value="{{numberFormat resources.hero.value decimals=0 sign=false}}" data-dtype="Number" />
<input class="stat-max" type="text" name="system.resources.hero.max"
value="{{numberFormat resources.hero.max decimals=0 sign=false}}" data-dtype="Number" />
</div>
2022-04-10 20:15:30 +02:00
</div>
2024-11-02 18:29:22 +01:00
<hr />