Fix various issues
This commit is contained in:
@ -13,10 +13,24 @@
|
||||
<div>
|
||||
<ul>
|
||||
<li>Name : {{title}}</li>
|
||||
<li>Damage Effect: {{upperFirst item.system.damageeffect}}</li>
|
||||
<li>Damage formula : {{diceFormula}}</li>
|
||||
<li><strong>TOTAL : {{result}}</strong></li>
|
||||
<li><strong>BODY : {{bodyValue}}</strong></li>
|
||||
|
||||
{{#if (or (eq item.system.damageeffect "killing") (eq item.system.damageeffect "normal"))}}
|
||||
<li><strong>1d3 result + STUNx : {{killingMultiplier}} + {{item.system.stunx}}</strong></li>
|
||||
<li><strong>STUN : {{stunValue}}</strong></li>
|
||||
<li><strong>BODY : {{bodyValue}}</strong></li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq item.system.damageeffect "stunonly")}}
|
||||
<li><strong>STUN : {{stunValue}}</strong></li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq item.system.damageeffect "bodyonly")}}
|
||||
<li><strong>BODY : {{stunValue}}</strong></li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -38,9 +38,27 @@
|
||||
<li class="flexrow"><label class="item-field-label-long">Range</label>
|
||||
<input type="text" class="item-field-label-medium" name="system.range" value="{{system.range}}" data-dtype="String"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="item-field-label-long">Damage Effect</label>
|
||||
<select class="item-field-label-long" type="text" name="system.damageeffect" value="{{system.damageeffect}}" data-dtype="String">
|
||||
{{#select (lower system.damageeffect)}}
|
||||
{{#each config.damageEffect as |name key|}}
|
||||
<option value="{{key}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="item-field-label-long">Damage</label>
|
||||
<input type="text" class="item-field-label-medium" name="system.damage" value="{{system.damage}}" data-dtype="String"/>
|
||||
</li>
|
||||
|
||||
{{#if (eq system.damageeffect "killing")}}
|
||||
<li class="flexrow"><label class="item-field-label-long">STUNx</label>
|
||||
<input type="text" class="item-field-label-medium" name="system.stunx" value="{{system.stunx}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
<li class="flexrow"><label class="item-field-label-long">Endurance</label>
|
||||
|
Reference in New Issue
Block a user