ORC.C
LIB3/STD/RACES/ORC.C · 1.0 KB
From the archive nm4dos.zip
Download the archive « Back to the archive contents
inherit "/std/races/standard";
#include "living.h"
void setup()
{
set_name( "orc" );
set_main_plural( "orcs" );
set_long( "Orcs were once men, but evil forces have ravaged their " +
"bodies into deformed and twisted shapes. Their strength " +
"and consitution make them excellent fighters, but they are " +
"seldom intelligent or wise enough to practice magic. Orcs have " +
"good night-sight, but shy away from bright lights.\n" );
reset_get();
} /* setup() */
string query_desc( object ob )
{
switch( (int)ob->query_gender() )
{
case GENDER_NEUTER:
return "A orcish creature.\n";
case GENDER_MALE:
return "A orcish man.\n";
case GENDER_FEMALE:
return "A orcish woman.\n";
}
} /* query_desc() */
void set_stats( object ob )
{
ob->set_bonus_str( 3 );
ob->set_bonus_dex( -1 );
ob->set_bonus_con( 3 );
ob->set_bonus_int( -3 );
ob->set_bonus_wis( -2 );
set_max_light( 150 );
set_min_light( 0 );
} /* set_stats() */