HALF-ELF.C

LIB3/STD/RACES/HALF-ELF.C · 885 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( "half-elf" );
    set_main_plural( "half-elves" );
    set_long( "Half-elves are brought about by the union of a common " +
	      "human with an elf. They usually consider themselves to " +
	      "be elves, but physically they more resemble men.\n" );
    reset_get();
}				/* setup() */


string  query_desc( object ob )
{
    switch( (int)ob->query_gender() )
    {
	case GENDER_NEUTER:
	    return "A half-elvish creature.\n";
	case GENDER_MALE:
	    return "A half-elvish man.\n";
	case GENDER_FEMALE:
	    return "A half-elvish woman.\n";
    }
}				/* query_desc() */


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

Site Stats

Snippets: 1791
Codebases: 571