Fix HP location and damages

This commit is contained in:
2023-10-24 07:05:01 +02:00
parent 1f8275e153
commit c7ccc50db0
50 changed files with 192 additions and 158 deletions

View File

@@ -63,11 +63,18 @@
{{#if (eq key "hp")}}
<ul class="stat-list alternate-list item-list hplocation-column">
<li class="item stat flexrow list-item list-item-shadow">
<label class="item-field-label-short">Loc.</label>
<label class="item-field-label-short">Cur</label>
<label class="item-field-label-short">Max</label>
<label class="item-field-label-short">Armor</label>
</li>
{{#each @root.system.hitlocations as |loc key|}}
<li class="item stat flexrow list-item list-item-shadow">
<label class="item-field-label-short">{{loc.label}}</label>
<input type="text" class="item-field-label-short padd-right" name="system.hitlocations.{{key}}.value" value="{{loc.value}}" data-dtype="Number"/>
<label class="item-field-label-short">&nbsp;/&nbsp;{{loc.max}}</label>
<input type="text" class="item-field-label-short padd-right" name="system.hitlocations.{{key}}.armor" value="{{loc.armor}}" data-dtype="Number"/>
</li>
{{/each}}
</ul>
@@ -115,7 +122,7 @@
<li class="item flexrow list-item list-item-shadow" data-item-id="{{skill._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{skill.img}}" />
</a>
<span class="item-field-label-vlong2"><a class="roll-skill">{{skill.name}}</a></span>
<span class="item-field-label-vlong2"><i class="fa-solid fa-dice-d10"></i><a class="roll-skill">{{skill.name}}</a></span>
<span class="item-field-label-medium">{{skill.system.value}}</span>
<span class="item-field-label-long">{{skill.derivated.label}} ({{skill.derivated.value}})</span>
<span class="item-field-label-medium">{{skill.system.bonus}}</span>
@@ -138,6 +145,11 @@
<span class="item-name-label-header-long2">
<h3><label class="items-title-text">Perks</label></h3>
</span>
<span class="item-field-label-medium">
<label class="short-label">Type</label>
</span>
<div class="item-filler">&nbsp;</div>
<span class="item-field-label-medium">
<label class="short-label">&nbsp;</label>
</span>
@@ -147,6 +159,8 @@
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{perk.img}}" />
</a>
<span class="item-field-label-vlong2">{{perk.name}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
@@ -163,7 +177,7 @@
<div>
<ul class="stat-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header-long">
<span class="item-name-label-header">
<h3><label class="items-title-text">Weapons</label></h3>
</span>
<span class="item-field-label-medium">
@@ -175,19 +189,25 @@
<span class="item-field-label-long">
<label class="short-label">Ammo</label>
</span>
<span class="item-field-label-medium">
<span class="item-field-label-medium margin-left-4">
<label class="short-label">Damage</label>
</span>
<span class="item-field-label-short">
<label class="short-label">BR</label>
</span>
<span class="item-field-label-medium">
<label class="short-label">Penetration</label>
</span>
</li>
{{#each equippedWeapons as |weapon key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{weapon._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{weapon.img}}" /></a>
<span class="item-name-label-long"><a class ="roll-weapon">{{weapon.name}}</a></span>
<span class="item-name-label"><a class ="roll-weapon"><i class="fa-solid fa-dice-d10"></i>{{weapon.name}}</a></span>
<span class="item-field-label-medium">{{upperFirst weapon.system.weapontype}}</span>
<span class="item-field-label-long">{{upperFirst weapon.system.associatedskill}}</span>
<span class="item-field-label-long">{{upperFirst weapon.system.skill}}</span>
{{#if weapon.system.needammo}}
<select class="item-field-label-long edit-weapon-ammo" type="text" data-dtype="String">
@@ -199,19 +219,25 @@
{{/select}}
</select>
{{#if weapon.ammo}}
<span class="item-field-label-medium"><label>{{weapon.ammo.system.damage}}</label></span>
<span class="item-field-label-medium margin-left-4"><label>{{weapon.ammo.system.damage}}</label></span>
{{else}}
<span class="item-field-label-medium"><label>-</label></span>
<span class="item-field-label-medium margin-left-4"><label>-</label></span>
{{/if}}
{{else}}
<span class="item-field-label-long"><label>N/A</label></span>
<span class="item-field-label-medium"><label>{{weapon.system.damage}}</label></span>
<span class="item-field-label-medium margin-left-4"><label>{{weapon.system.damage}}</label></span>
{{/if}}
<span class="item-field-label-short">{{weapon.system.br}}</span>
<span class="item-field-label-medium">{{weapon.system.penetrationmin}} - {{weapon.system.penetrationmax}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
@@ -351,7 +377,7 @@
src="{{weapon.img}}" /></a>
<span class="item-name-label">{{weapon.name}}</span>
<span class="item-field-label-medium"><label>{{weapon.system.weapontype}}</label></span>
<span class="item-field-label-medium"><label>{{upperFirst weapon.system.weapontype}}</label></span>
{{#if weapon.system.needammo}}
<select class="item-field-label-vlong edit-weapon-ammo" type="text" data-dtype="String">

View File

@@ -61,7 +61,7 @@
{{#if weapon.system.hasfatiguedamage}}
<li>Roll Fatigue Damage: [[/r {{weapon.ammo.system.fatiguedamage}}*{{damageMultiplier}}]]</li>
{{/if}}
<li>BR: [[/r {{weapon.system.br}}]]</li>
<li>BR: {{weapon.system.br}}</li>
{{/if}}
<li>Penetration : {{mul weapon.system.penetrationmin damageMultiplier}} - {{mul weapon.system.penetrationmax damageMultiplier}}</li>
{{/if}}