Revert back to hp instead of hull/shld for compatibility

Left the dice separated out since hit die are controlled by character level.
This commit is contained in:
supervj 2021-05-05 01:37:44 -04:00
parent d0eae64241
commit 0607152f51
3 changed files with 33 additions and 25 deletions

View file

@ -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;
}
/* -------------------------------------------- */