I recently published a mod that patches professions such that Defender no longer increases HP.
I'm not sure why you increment HP directly instead of just calling LevelUpMenu.getImmediateProfessionPerk, but that causes a soft incompatibility with mine and any profession overhaul mods (soft because the game will revalidate HP on save loaded anyway). It seems better to call the method so that any Harmony patches also take effect.
I recently published a mod that patches professions such that Defender no longer increases HP. I'm not sure why you increment HP directly instead of just calling
LevelUpMenu.getImmediateProfessionPerk
, but that causes a soft incompatibility with mine and any profession overhaul mods (soft because the game will revalidate HP on save loaded anyway). It seems better to call the method so that any Harmony patches also take effect.