HOBBIT.C

LIB3/STD/RACES/HOBBIT.C · 906 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

inherit "/std/races/standard";
#include "living.h"


void    setup()
{
    set_name( "hobbit" );
    set_main_plural( "hobbi" );
    set_long( "Hobbits resemble children in not only their physical " +
	      "size, but in their unsurpassed curiosity and dexterity. " +
	      "They lack the strength of body for fighting, and do not have " +
	      "any special magic abilities, but they make natural thieves.\n" );
    reset_get();
}				/* setup() */


string  query_desc( object ob )
{
    switch( (int)ob->query_gender() )
    {
	case GENDER_NEUTER:
	    return "A hobbitite.\n";
	case GENDER_MALE:
	    return "A hobbit.\n";
	case GENDER_FEMALE:
	    return "A hobbitess.\n";
    }
}				/* query_desc() */


void    set_stats( object ob )
{
    ob->set_bonus_str( -3 );
    ob->set_bonus_dex( 4 );
    ob->set_bonus_con( -1 );
    set_max_light( 250 );
    set_min_light( 10 );
}				/* set_stats() */

Site Stats

Snippets: 1791
Codebases: 571