hp = (hp + mod_hp)%maxhp;
if ( hp<1 ) { /* 死亡処理 */ }

俺はこうかな。 mod_hp はダメージ or アイテムでもなんでも