In Cave Story, collecting all capsules on medium difficulty can give a maximum health of 50. Hard and easy modes may differ.