
Just another set of eyes please. Maybe you see an error I don't on('sheet:opened change:strength change:hit_points_points change:hit_points_mod', function (e) {
updateHPLocations();
});
function updateHPLocations(v) {
getAttrs(['strength', 'strength_base', 'hit_points_points',
'hit_points_mod'], function (v) {
var base = (modCascadeAll ? +v.strength : +v.strength_base) + ((+v.hit_points_points || 0) / 2 | 0);
var mod = +v.hit_points_mod;
var maxhp = base + mod;
var eyes = Math.floor(maxhp / 10);
var limbs = Math.floor(maxhp / 2);
var extr = Math.floor(maxhp / 3);
setAttrs({
ehp: eyes,
limbhp: limb,
extremityhp: extr
});
});
} <div class="sheet-cell sheet-col1">
<input type="number" name="attr_ehp" value="0" readonly="readonly" />
</div>
<div class="sheet-cell sheet-col1">
<input type="number" name="attr_limbhp" value="10" readonly="readonly" />
</div>
<div class="sheet-cell sheet-col1">
<input type="number" name="attr_extremityhp" value="10" readonly="readonly" />
</div>