POLYMORP.C
LIB3/STD/RACES/POLYMORP.C · 964 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( "polymorph" );
set_main_plural( "polymorphs" );
set_long( "A polymorph is a being who has not yet chosen his " +
"shape. Humanoid in shape, they lack definate features. The " +
"pliable nature of their component materials makes them " +
"deficient in all areas of skill.\n" );
reset_get();
} /* setup() */
string query_desc( object ob )
{
switch( (int)ob->query_gender() )
{
case GENDER_NEUTER:
return "A polymorph creature.\n";
case GENDER_MALE:
return "A male polymorph.\n";
case GENDER_FEMALE:
return "A female polymorph.\n";
}
} /* query_desc() */
void set_stats( object ob )
{
ob->set_bonus_str( -2 );
ob->set_bonus_dex( -2 );
ob->set_bonus_con( -2 );
ob->set_bonus_int( -2 );
ob->set_bonus_wis( -2 );
set_max_light( 100 );
set_min_light( 20 );
} /* set_stats() */