GNOME.C
LIB3/STD/RACES/GNOME.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( "gnome" );
set_main_plural( "gnomes" );
set_long( "Amongst the most wise of creatures, the gnomes are " +
"small, and oftem fragile. They live underground, appearing " +
"only occasionally fearing that any of the larger and stronger " +
"creatures will set upon them.\n" );
reset_get();
} /* setup() */
string query_desc( object ob )
{
switch( (int)ob->query_gender() )
{
case GENDER_NEUTER:
return "A gnomish creature.\n";
case GENDER_MALE:
return "A gnomish man.\n";
case GENDER_FEMALE:
return "A gnomish woman.\n";
}
} /* query_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( 1 );
ob->set_bonus_wis( 3 );
set_max_light( 200 );
set_min_light( 0 );
} /* set_stats() */