diff --git a/module/actor/entity.js b/module/actor/entity.js index 441dc87d..981d1aec 100644 --- a/module/actor/entity.js +++ b/module/actor/entity.js @@ -319,6 +319,11 @@ export default class Actor5e extends Actor { // Proficiency 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; } /* -------------------------------------------- */ diff --git a/template.json b/template.json index 1e4066f5..4df8e6b6 100644 --- a/template.json +++ b/template.json @@ -50,6 +50,7 @@ "crawl": 0, "fly": 0, "roll": 0, + "space": 0, "swim": 0, "turn": 0, "walk": 30, @@ -419,21 +420,14 @@ "dr": 0, "engpow": 1, "exhaustion": 0, - "hulldie": "", - "hulldice": 0, - "hull": { - "value": 0, - "max": 0, - "formula": "" - }, - "shlddie": "", - "shlddice": 0, - "shld": { - "value": 0, - "max": 0, - "formula": "" - }, "hsm": 1, + "hull": { + "die": "", + "dice": 0, + "formula":"", + "value": null, + "max": null + }, "mods": { "open": 10, "max": 10 @@ -466,6 +460,13 @@ "max": 0 } }, + "shld": { + "die": "", + "dice": 0, + "formula":"", + "value": null, + "max": null + }, "shieldpow": 1, "sscap": 0, "suites": { diff --git a/templates/actors/newActor/starship.html b/templates/actors/newActor/starship.html index 3e760a7c..b8e5a2b3 100644 --- a/templates/actors/newActor/starship.html +++ b/templates/actors/newActor/starship.html @@ -41,11 +41,11 @@

{{ localize "SW5E.HullPoints" }}

- + / - +
+ {{!-- SPEED / MOVEMENT TYPES --}} +

{{ localize "SW5E.Movement" }}

- {{data.attributes.movement.fly}} {{data.attributes.movement.units}} + {{data.attributes.movement.space}} {{data.attributes.movement.units}}