viewing paste mob.c snippet | 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 23 24
void mob_reload(void)
{
    int i;
#ifndef TXT_ONLY
    if(db_use_sqldbs)
        mob_read_sqldb();
    else
#endif /* TXT_ONLY */
    mob_readdb();
 
    mob_readdb_mobavail();
    mob_read_randommonster();
 
    //Mob skills need to be cleared before re-reading them. [Skotlex]
    for (i = 0; i < MAX_MOB_DB; i++)
        if (mob_db_data[i])
        {
            memset(&mob_db_data[i]->skill,0,sizeof(mob_db_data[i]->skill));
            mob_db_data[i]->maxskill=0;
        }
    mob_readchatdb();
    mob_readskilldb();
    mob_readdb_race();
}
Viewed 1075 times, submitted by Streusel.