foundryvtt-frostgrave/templates/actor/partials/actor-stats.html

82 lines
3.0 KiB
HTML
Raw Normal View History

2021-05-28 18:16:02 +02:00
{{#if (ne data.category "Base")}}
<div class="columns is-multiline is-variable is-1">
<div class="column is-half py-1">
<div class="columns is-variable is-1">
<div class="column is-5">
<p class="control">
<span class="help">&nbsp;</span>
<button class="button is-danger is-outlined is-fullwidth rollable is-capitalized"
2021-05-29 23:20:50 +02:00
data-roll="d20+@data.health.value" data-label="{{data.data.health.rollname}}"> <span class="icon">
2021-05-28 18:16:02 +02:00
<i class="fas fa-dice-d20"></i>
</span>
<span>
2021-05-31 00:06:05 +02:00
{{localize "FROSTGRAVE.Health"}}
2021-05-28 18:16:02 +02:00
</span> </button>
</p>
</div>
<div class="column">
2021-05-31 00:06:05 +02:00
<span class="help">{{localize "FROSTGRAVE.Max"}}</span>
2021-05-28 18:16:02 +02:00
<p class="control">
2021-05-29 23:20:50 +02:00
<input class="input" type="text" name="data.health.max" value="{{data.data.health.max}}"
2021-05-28 18:16:02 +02:00
data-dtype="Number">
</p>
</div>
<div class="column">
2021-05-31 00:06:05 +02:00
<span class="help">{{localize "FROSTGRAVE.Current"}}</span>
2021-05-28 18:16:02 +02:00
<p class="control">
2021-05-29 23:20:50 +02:00
<input class="input is-danger" type="text" name="data.health.value" value="{{data.data.health.value}}"
2021-05-28 18:16:02 +02:00
data-dtype="Number">
</p>
</div>
</div>
</div>
2021-05-29 23:20:50 +02:00
{{#each data.data.stats as |stat key|}}
2021-05-28 18:16:02 +02:00
<div class="column is-half py-1">
<div class="columns is-variable is-1">
<div class="column">
<p class="control is-5">
<span class="help">&nbsp;
</p>
<button class="button is-info is-outlined is-fullwidth rollable is-capitalized"
data-roll="d20+@stats.{{key}}.effective" data-label="{{stat.rollname}}" data-bonus="{{stat.bonus}}">
<span class="icon">
<i class="fas fa-dice-d20"></i>
</span>
<span>
2021-05-31 00:06:05 +02:00
{{localize key}}
2021-05-28 18:16:02 +02:00
</span>
</button>
</p>
</div>
<div class="column">
<p class="control">
2021-05-31 00:06:05 +02:00
<span class="help">{{localize "FROSTGRAVE.Actual"}}
2021-05-28 18:16:02 +02:00
</p>
<input class="input" type="text" name="data.stats.{{key}}.actual" value="{{stat.actual}}"
data-dtype="Number">
</p>
</div>
<div class="column">
2021-05-31 00:06:05 +02:00
<span class="help">{{localize "FROSTGRAVE.Max"}}</span>
2021-05-28 18:16:02 +02:00
<p class="control">
<input class="input" type="text" name="data.stats.{{key}}.effective" value="{{stat.effective}}"
data-dtype="Number">
</p>
</div>
</div>
</div>
{{/each}}
</div>
{{/if}}