clan/
class/
data/
doc/ideas/
doc/mobprogs/
gods/
log/
player/
time/
/*
 *  The unique portions of SunderMud code as well as the integration efforts
 *  for code from other sources is based on the efforts of:
 *
 *  Lotherius (elfren@aros.net)
 *
 *  This code can ony be used under the terms of the DikuMud, Merc,
 *  and ROM licenses. The same requirements apply to the changes that
 *  have been made.
 *
 * All other copyrights remain in place and in force.
*/

/* 
 * This File includes non-spell skill functions. 
 */

#include "everything.h"

/* command procedures */

bool skill_available ( int sn, CHAR_DATA *ch)
{
    int  i;

    for (i = 0; i < 5; i++)
    {
        if ( (pc_race_table[ch->race].skills[i] == NULL)
	   || (sn < 0) )
            break;
        if (sn == (skill_lookup(pc_race_table[ch->race].skills[i])) )
	{
	     return TRUE;
	}
    }

    if ( ch->level >= skill_table[sn].skill_level[ch->class] ) 
    {
        return TRUE;
    }

return FALSE;
}