Make gaining and loosing traits affect max HP

Fixes #1259