generate hitpoints