Savesrolls + HP

This commit is contained in:
2022-08-03 09:34:33 +02:00
parent 13646814ba
commit cb3f555a4e
29 changed files with 109 additions and 140 deletions

View File

@@ -18,6 +18,14 @@
<div>
<ul>
{{#if save}}
<li>Save : {{save.label}} - {{save.value}}d6
({{#each roll.terms.0.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
{{/if}}
{{#if ability}}
<li>Ability : {{ability.label}} - {{ability.value}}d6
({{#each roll.terms.0.results as |die idx|}}
@@ -25,6 +33,7 @@
{{/each}})
</li>
{{/if}}
{{#if skill}}
<li>Skill : {{skill.name}} - {{skill.data.level}}d8
{{#if featSL}}
@@ -91,8 +100,8 @@
<li>Roll with Disadvantage because of Complex Skill at SL 0 !</li>
{{/if}}
{{#if (ne featDieName "none")}}
<li>Feature Die : d10 ({{featDieName}})
{{#if hasFeatDie}}
<li>Feature Die : d10
&nbsp;({{#each roll.terms.4.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})

View File

@@ -23,9 +23,12 @@
</select>
</li>
<li class="flexrow"><label class="generic-label">Is Feat Die (or SL +2) ?</label>
<li class="flexrow"><label class="generic-label">Is Feat Die ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.isfeatdie" {{checked data.isfeatdie}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Is SL +2 ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.issl2" {{checked data.issl2}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Subject to Armor Penalty ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.armorpenalty" {{checked data.armorpenalty}}/></label>

View File

@@ -1,4 +1,27 @@
<ul class="status-block">
<li class="item flexrow list-item" data-attr-key="hp">
<span class="ability-label " name="hp">
<h4 class="ability-text-white ability-margin">HP</h4>
</span>
<span class="ability-label ability-margin"><input class="input-numeric-short" name="data.secondary.hp.value" value="{{data.secondary.hp.value}}"></span>
<span class="ability-label ability-margin"> / {{data.secondary.hp.max}}</span>
</li>
<li class="item flexrow list-item" data-attr-key="hp">
<span class="ability-label " name="hp">
<h4 class="ability-text-white ability-margin">Effort</h4>
</span>
<span class="ability-label ability-margin"><input class="input-numeric-short" name="data.secondary.effort.value" value="{{data.secondary.effort.value}}"></span>
<span class="ability-label ability-margin"> / {{data.secondary.effort.max}}</span>
</li>
</ul>
<li>&nbsp;</li>
{{#each saveRolls as |save key|}}
<li class="item flexrow list-item" data-attr-key="{{key}}">
<span class="ability-label " name="{{key}}">
<h4 class="ability-text-white ability-margin"><a class="roll-save ability-margin" data-save-key="{{key}}">{{save.label}} {{save.value}}</a></h4>
</span>
</li>
{{/each}}
<ul>

View File

@@ -8,10 +8,19 @@
<div class="flexcol">
{{#if save}}
<div class="flexrow">
<span class="roll-dialog-label">{{save.label}} : </span>
<span class="roll-dialog-label">{{save.value}}d6</span>
</div>
{{/if}}
{{#if ability}}
<div class="flexrow">
<span class="roll-dialog-label">Ability : </span>
<span class="roll-dialog-label">{{ability.value}}d6</span>
</div>
{{/if}}
{{#if weapon}}
<div class="flexrow">