void homunculus_stat_reset(struct homun_data *hd) {
struct s_homunculus_db *db;
struct s_homunculus *hom;
struct h_stats *base;
hom = &hd->homunculus;
db = hd->homunculusDB;
base = &db->base;
hom->level = 1;
hom->hp = 10;
hom->max_hp = base->HP;
hom->max_sp = base->SP;
hom->str = base->str *10;
hom->agi = base->agi *10;
hom->vit = base->vit *10;
hom->int_= base->int_*10;
hom->dex = base->dex *10;
hom->luk = base->luk *10;
hom->exp = 0;
hd->exp_next = homun->exptable[0];
memset(&hd->homunculus.hskill, 0, sizeof hd->homunculus.hskill);
hd->homunculus.skillpts = 0;
}