Fix HP location and damages

This commit is contained in:
2023-10-23 16:38:34 +02:00
parent e19e6df228
commit 1f8275e153
59 changed files with 191 additions and 157 deletions

View File

@@ -29,7 +29,7 @@
<div class="tab main" data-group="primary" data-tab="main">
<div class="flexrow">
<ul class="stat-list alternate-list item-list">
<ul class="stat-list alternate-list item-list stat-column-size">
{{#each system.attributes as |attr key|}}
<li class="item stat flexrow list-item list-item-shadow">
<label class="item-field-label-medium">{{attr.label}}</label>
@@ -38,7 +38,7 @@
</li>
</ul>
<ul class="stat-list alternate-list item-list">
<ul class="stat-list alternate-list item-list derivated-column-size">
{{#each system.derivated as |deriv key|}}
<li class="item stat flexrow list-item list-item-shadow">
<label class="item-field-label-medium">{{deriv.label}}</label>
@@ -60,6 +60,19 @@
<label class="item-field-label-short">&nbsp;/&nbsp;{{second.max}}</label>
{{/if}}
<input type="text" class="item-field-label-short padd-right" name="system.secondary.{{key}}.bonus" value="{{second.bonus}}" data-dtype="Number"/>
{{#if (eq key "hp")}}
<ul class="stat-list alternate-list item-list hplocation-column">
{{#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>
</li>
{{/each}}
</ul>
{{/if}}
{{/each}}
</li>
<li class="item stat flexrow list-item list-item-shadow">

View File

@@ -24,7 +24,6 @@
{{/if}}
{{#if weapon}}
<li>Weapon : {{weapon.name}}</li>
<li>Location hit : {{upperFirst weaponAiming}} ({{locationMalus}})</li>
{{/if}}
{{#if isAboveEffectiveRange}}
<li>Above effective range: yes, -30% applied</li>
@@ -50,16 +49,17 @@
{{/if}}
{{#if (and weapon isSuccess)}}
<li>Location hit : {{upperFirst weaponAiming}} ({{locationMalus}})</li>
{{#if weapon.ammo}}
<li>Roll Ammo Damage ({{weapon.ammo.name}}): [[/r {{weapon.ammo.system.damage}}*{{damageMultiplier}}*{{locationMultiplier}}]]</li>
<li>Roll Ammo Damage ({{weapon.ammo.name}}): [[/r {{weapon.ammo.system.damage}}*{{damageMultiplier}}]]</li>
<li>BR: {{weapon.ammo.system.br}}</li>
{{else}}
{{#if weapon.system.hashpdamage}}
<li>Roll HP Damage: [[/r {{weapon.system.damage}}*{{damageMultiplier}}*{{locationMultiplier}}]]</li>
<li>Roll HP Damage: [[/r {{weapon.system.damage}}*{{damageMultiplier}}]]</li>
{{/if}}
{{#if weapon.system.hasfatiguedamage}}
<li>Roll Fatigue Damage: [[/r {{weapon.ammo.system.fatiguedamage}}*{{damageMultiplier}}*{{locationMultiplier}}]]</li>
<li>Roll Fatigue Damage: [[/r {{weapon.ammo.system.fatiguedamage}}*{{damageMultiplier}}]]</li>
{{/if}}
<li>BR: [[/r {{weapon.system.br}}]]</li>
{{/if}}