TROLL.C

LIB3/STD/RACES/TROLL.C · 994 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( "troll" );
    set_main_plural( "trolls" );
    set_long( "Trolls are enormous and powerful beasts. They can " +
	      "crush most opponents easily, despite their slowness. Magic "
	      "is practically unknown amongst trolls, due to their lack of "
	      "intellect. Trolls cannot see in bright sunlight, but can "
	      "in even the darkest of caves.\n" );
    reset_get();
}


string  query_desc( object ob )
{
    switch( (int)ob->query_gender() )
    {
	case GENDER_NEUTER:
	    return "A trollish creature.\n";
	case GENDER_MALE:
	    return "A male troll.\n";
	case GENDER_FEMALE:
	    return "A female troll.\n";
    }
}				/* query_desc() */


void    set_stats( object ob )
{
    ob->set_bonus_str( 5 );
    ob->set_bonus_dex( -2 );
    ob->set_bonus_con( 5 );
    ob->set_bonus_int( -4 );
    ob->set_bonus_wis( -4 );
    set_max_light( 100 );
    set_min_light( -20 );
}				/* set_stats() */

Site Stats

Snippets: 1791
Codebases: 571