Compute threat level

This commit is contained in:
2022-03-12 16:35:32 +01:00
parent ec860b9f12
commit 27f81e2e9d
8 changed files with 77 additions and 19 deletions

View File

@@ -526,7 +526,7 @@
<span class="item-field-label-short">
<label class="short-label">DMG</label>
</span>
<span class="item-field-label-medium">
<span class="item-field-label-long">
<label class="short-label">Ammo</label>
</span>
<span class="item-field-label-medium">
@@ -548,11 +548,11 @@
<span class="item-field-label-short"><label>{{weapon.data.damageDice}}</label></span>
{{#if (gt weapon.data.ammomax 0)}}
<span class="item-field-label-medium"><label>{{weapon.data.ammocurrent}}/{{weapon.data.ammomax}}
<span class="item-field-label-long"><label>{{weapon.data.ammocurrent}}/{{weapon.data.ammomax}}
(<a class="ammo-minus plus-minus-button"> -</a>/<a class="ammo-plus plus-minus-button">+</a>)
</label></span>
{{else}}
<span class="item-field-label-medium"><label>-</label>
<span class="item-field-label-long"><label>-</label>
</span>
{{/if}}

View File

@@ -66,6 +66,9 @@
<input type="text" class="input-numeric-short padd-right" name="data.containercapacity" value="{{data.containercapacity}}" data-dtype="Number"/>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Threat Level Value</label>
<input type="text" class="input-numeric-short padd-right" name="data.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
</li>

View File

@@ -53,6 +53,9 @@
</ul>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Use for Threat Level ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.isthreatlevel" {{checked data.isthreatlevel}}/></label>
</li>
</ul>
</div>
</section>

View File

@@ -27,7 +27,7 @@
{{#if equip.data.iscontainer}}
{{equip.data.contentsEnc}}
{{else}}
N/A
{{mul equip.data.weight equip.data.quantity}}
{{/if}}
</span>
<span class="item-field-label-medium">