ROBOT.C

LIB3/STD/RACES/ROBOT.C · 1.6 KB

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

inherit "/std/races/standard";


void    setup()
{
    set_name( "robot" );
    set_main_plural( "robots" );
    set_long( "Large metallic automaton which resembles a human.\n" );

    /* All the parts will be related to mechanical parts        */
    /* They will also be valuable to some extent. Hey, they are */
    /* spare parts after all.                                        */

    bits = ({ 
		 "head", 0, ({ 0, 2, 20, "left optical", "right optical",
			       "left air intake", "right air intake" }),
		 "left optical", "optical", ({ "head", 1, 5 }),
		 "right optical", "optical", ({ "head", 1, 5 }),
		 "left air intake", "intake", ({ "head", 1, 5 }),
		 "right air intake", "intake", ({ "head", 1, 5 }),
		 "torso", "guts", ({ 0, 400, 200, "oil reservoir", "left oil filter",
				     "right oil filter", "servo motor", "speaker" }),
		 "oil reservoir", "reservoir", ({ "torso", 5, 25 }),
		 "left oil filter", "filter", ({ "torso", 5, 15 }),
		 "right oil filter", "filter", ({ "torso", 5, 15 }),
		 "servo motor", "motor", ({ "torso", 20, 75 }),
		 "speaker", 0, ({ "torso", 15, 100 }),
		 "left arm", "arm", ({ 0, 28, 75 }),
		 "right arm", "arm", ({ 0, 28, 75 }),
		 "left leg", "leg", ({ 0, 30, 100 }),
		 "right leg", "leg", ({ 0, 30, 100 }),
		  });
}				/* setup() */


string  query_desc( object ob )
{
    return "A roughly humanoid metallic creature";
}				/* query_desc() */


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

Site Stats

Snippets: 1791
Codebases: 571