viewing paste Unknown #19414 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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;
}
Viewed 1061 times, submitted by milk.