From b7ff7356d86cda7faca21353587f41cd6826b4eb Mon Sep 17 00:00:00 2001 From: Chris B Date: Wed, 6 Jan 2016 11:03:05 -0500 Subject: [PATCH] added fix to hp mod --- Pathfinder-Neceros/pathfinder-neceros.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Pathfinder-Neceros/pathfinder-neceros.html b/Pathfinder-Neceros/pathfinder-neceros.html index d32a1f712d..0f6b446827 100644 --- a/Pathfinder-Neceros/pathfinder-neceros.html +++ b/Pathfinder-Neceros/pathfinder-neceros.html @@ -966,8 +966,9 @@ Ability Mod   - Max HP adj - Mod + HP adj1 + HP adj2 + Mod2   Temp HP   @@ -995,7 +996,8 @@ + - + +  |  @@ -11695,9 +11697,10 @@ var PFSheet = PFSheet || (function(){ * sets max HP */ updateHP = function() { - getAttrs(["HP-ability-mod","level","total-hp","condition-Drained","HP-formula-mod","HP_max"],function(values) { + getAttrs(["HP-ability-mod","level","total-hp","condition-Drained","HP-formula-mod","HP_max","HP-misc"],function(values) { var totalhp = (( parseInt(values["HP-ability-mod"],10)||0) * (parseInt(values["level"],10)||0)) + (parseInt(values["total-hp"],10)||0) + + (parseInt(values["HP-misc"],10)||0) + (parseInt(values["HP-formula-mod"],10)||0) + (5 * (parseInt(values["condition-Drained"],10)||0)); var grazedhp = Math.floor(totalhp * 0.75), @@ -13579,7 +13582,7 @@ on("change:init-ability-mod change:init-trait change:init-misc condition-deafene //hp on("change:hp-ability", function () {PFSheet.handleDropdown("HP-ability",["HP-ability-mod"]);}); -on("change:hp-ability-mod change:level change:total-hp change:hp-formula-mod", function() { PFSheet.updateHP(); }); +on("change:hp-ability-mod change:level change:total-hp change:hp-formula-mod change:HP-misc", function() { PFSheet.updateHP(); }); on("change:hp-temp-misc change:buff_hp-temp-total", function() { PFSheet.updateTempHP(); }); on("change:hp-formula-macro-text",function(){SWUtils.evaluateAndSetNumber("HP-formula-macro-text","HP-formula-mod");});