forked from GitHub-Mirrors/foundry-sw5e
Merge pull request #197 from unrealkakeman89/Develop-VJ
Revert back to hp instead of hull/shld for compatibility
This commit is contained in:
commit
bf2f09381e
3 changed files with 33 additions and 25 deletions
|
@ -319,6 +319,11 @@ export default class Actor5e extends Actor {
|
||||||
// Proficiency
|
// Proficiency
|
||||||
data.attributes.prof = Math.floor((Math.max(data.details.tier, 1) + 7) / 4);
|
data.attributes.prof = Math.floor((Math.max(data.details.tier, 1) + 7) / 4);
|
||||||
|
|
||||||
|
// Link hull to hp and shields to temp hp
|
||||||
|
data.attributes.hull.value = data.attributes.hp.value;
|
||||||
|
data.attributes.hull.max = data.attributes.hp.max;
|
||||||
|
data.attributes.shld.value = data.attributes.hp.temp;
|
||||||
|
data.attributes.shld.max = data.attributes.hp.tempmax;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"crawl": 0,
|
"crawl": 0,
|
||||||
"fly": 0,
|
"fly": 0,
|
||||||
"roll": 0,
|
"roll": 0,
|
||||||
|
"space": 0,
|
||||||
"swim": 0,
|
"swim": 0,
|
||||||
"turn": 0,
|
"turn": 0,
|
||||||
"walk": 30,
|
"walk": 30,
|
||||||
|
@ -419,21 +420,14 @@
|
||||||
"dr": 0,
|
"dr": 0,
|
||||||
"engpow": 1,
|
"engpow": 1,
|
||||||
"exhaustion": 0,
|
"exhaustion": 0,
|
||||||
"hulldie": "",
|
|
||||||
"hulldice": 0,
|
|
||||||
"hull": {
|
|
||||||
"value": 0,
|
|
||||||
"max": 0,
|
|
||||||
"formula": ""
|
|
||||||
},
|
|
||||||
"shlddie": "",
|
|
||||||
"shlddice": 0,
|
|
||||||
"shld": {
|
|
||||||
"value": 0,
|
|
||||||
"max": 0,
|
|
||||||
"formula": ""
|
|
||||||
},
|
|
||||||
"hsm": 1,
|
"hsm": 1,
|
||||||
|
"hull": {
|
||||||
|
"die": "",
|
||||||
|
"dice": 0,
|
||||||
|
"formula":"",
|
||||||
|
"value": null,
|
||||||
|
"max": null
|
||||||
|
},
|
||||||
"mods": {
|
"mods": {
|
||||||
"open": 10,
|
"open": 10,
|
||||||
"max": 10
|
"max": 10
|
||||||
|
@ -466,6 +460,13 @@
|
||||||
"max": 0
|
"max": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"shld": {
|
||||||
|
"die": "",
|
||||||
|
"dice": 0,
|
||||||
|
"formula":"",
|
||||||
|
"value": null,
|
||||||
|
"max": null
|
||||||
|
},
|
||||||
"shieldpow": 1,
|
"shieldpow": 1,
|
||||||
"sscap": 0,
|
"sscap": 0,
|
||||||
"suites": {
|
"suites": {
|
||||||
|
|
|
@ -41,11 +41,11 @@
|
||||||
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
|
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
|
||||||
<h1 class="attribute-name rollable">{{ localize "SW5E.HullPoints" }}</h1>
|
<h1 class="attribute-name rollable">{{ localize "SW5E.HullPoints" }}</h1>
|
||||||
<div class="attribute-value multiple">
|
<div class="attribute-value multiple">
|
||||||
<input name="data.attributes.hull.value" type="text" value="{{data.attributes.hull.value}}"
|
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||||
data-dtype="Number" class="value-number" />
|
data-dtype="Number" placeholder="0" class="value-number" />
|
||||||
<span class="value-separator">/</span>
|
<span class="value-separator">/</span>
|
||||||
<input name="data.attributes.hull.max" type="text" value="{{data.attributes.hull.max}}"
|
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||||
data-dtype="Number" class="value-number" />
|
data-dtype="Number" placeholder="0" class="value-number" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="attribute-footer hit-points">
|
<footer class="attribute-footer hit-points">
|
||||||
<input name="data.attributes.hull.formula" class="hpformula" type="text"
|
<input name="data.attributes.hull.formula" class="hpformula" type="text"
|
||||||
|
@ -57,24 +57,26 @@
|
||||||
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
|
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
|
||||||
<h1 class="attribute-name rollable">{{ localize "SW5E.ShieldPoints" }}</h1>
|
<h1 class="attribute-name rollable">{{ localize "SW5E.ShieldPoints" }}</h1>
|
||||||
<div class="attribute-value multiple">
|
<div class="attribute-value multiple">
|
||||||
<input name="data.attributes.shld.value" type="text" value="{{data.attributes.shld.value}}"
|
<input name="data.attributes.hp.temp" type="text" value="{{data.attributes.hp.temp}}"
|
||||||
data-dtype="Number" placeholder="10" class="value-number" />
|
data-dtype="Number" placeholder="0" class="value-number" />
|
||||||
<span class="value-separator">/</span>
|
<span class="value-separator">/</span>
|
||||||
<input name="data.attributes.shld.max" type="text" value="{{data.attributes.shld.max}}"
|
<input name="data.attributes.hp.tempmax" type="text" value="{{data.attributes.hp.tempmax}}"
|
||||||
data-dtype="Number" placeholder="10" class="value-number" />
|
data-dtype="Number" placeholder="0" class="value-number" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="attribute-footer hit-points">
|
<footer class="attribute-footer hit-points">
|
||||||
<input name="data.attributes.shld.formula" class="hpformula" type="text"
|
<input name="data.attributes.shld.Formula" class="hpformula" type="text"
|
||||||
placeholder="{{ localize 'SW5E.ShieldPointsFormula' }}" value="{{data.attributes.shld.formula}}" style="min-width: 150px;" />
|
placeholder="{{ localize 'SW5E.ShieldPointsFormula' }}" value="{{data.attributes.shld.formula}}" style="min-width: 150px;" />
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{{!-- SPEED / MOVEMENT TYPES --}}
|
||||||
|
|
||||||
<section style="box-sizing: border-box; width: 150px;">
|
<section style="box-sizing: border-box; width: 150px;">
|
||||||
<h1>{{ localize "SW5E.Movement" }}
|
<h1>{{ localize "SW5E.Movement" }}
|
||||||
<a class="config-button" data-action="movement" title="{{localize 'SW5E.MovementConfig'}}"><i class="fas fa-cog"></i></a>
|
<a class="config-button" data-action="movement" title="{{localize 'SW5E.MovementConfig'}}"><i class="fas fa-cog"></i></a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="attribute-value">
|
<div class="attribute-value">
|
||||||
<span>{{data.attributes.movement.fly}} {{data.attributes.movement.units}}</span>
|
<span>{{data.attributes.movement.space}} {{data.attributes.movement.units}}</span>
|
||||||
</div>
|
</div>
|
||||||
<footer class="attribute-footer" style="font-family: 'Russo One'; text-align: center;">
|
<footer class="attribute-footer" style="font-family: 'Russo One'; text-align: center;">
|
||||||
<span>Turning Speed: {{data.attributes.movement.turn}} {{data.attributes.movement.units}}</span>
|
<span>Turning Speed: {{data.attributes.movement.turn}} {{data.attributes.movement.units}}</span>
|
||||||
|
@ -92,7 +94,7 @@
|
||||||
<button class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</button>
|
<button class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</button>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{!-- NPC Sheet Body --}}
|
{{!-- Starship Sheet Body --}}
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
<section class="tab attributes core" data-group="primary" data-tab="attributes">
|
<section class="tab attributes core" data-group="primary" data-tab="attributes">
|
||||||
<section class="panel abilities">
|
<section class="panel abilities">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue