ELF.C

LIB3/STD/RACES/ELF.C · 948 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( "elf" );
    set_main_plural( "elves" );
    set_long( "The elves are an immortal race, sleight of build, " +
	      "but steeped in lore. While good archers, they are not natural " +
	      "warriors. Rather they are more suited to magical practices. " +
	      "Elves have excellent night-sight.\n" );
    reset_get();
}				/* setup() */


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


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

Site Stats

Snippets: 1791
Codebases: 571