pig.c

skylib_fluffos_v3/mudlib/std/races/pig.c · 1.6 KB

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/*    Pig     *
 *   Gototh   *
 *  30/11/97  */

inherit "/std/races/ruminant";

void setup() {
   set_name( "pig" );
   set_long( "A domesticated mammal, of the swine family.\n" );
   set_desc( "a domesticated mammal, of the swine family" );
   set_weight( 1200 );
   set_height( 50 );

   remove_bit( "nose" );
   remove_bit( "head" );
   remove_bit( "left front leg" );
   remove_bit( "right front leg" );
   remove_bit( "left rear leg" );
   remove_bit( "right rear leg" );

   add_bit( "head", "head", ({ 0, 135, 0,
      "left eye", "right eye", "snout", "skull", "tongue", "left ear",
      "right ear" }) );
   add_bit( "snout", "snout", ({ "head", 12, 0 }) );
   add_bit( "left front trotter", "trotter", ({ 0, 180, 0, "left front hoof" }) );
   add_bit( "right front trotter", "trotter", ({ 0, 180, 0, "right front hoof" }) );
   add_bit( "left rear trotter", "trotter", ({ 0, 180, 0, "left rear hoof" }) );
   add_bit( "right rear trotter", "trotter", ({ 0, 180, 0, "right rear hoof" }) );

   inedible += ({ "left front trotter", "right front trotter",
      "left rear trotter", "right rear trotter" });
   unrottable += ({ "left front trotter", "right front trotter",
      "left rear trotter", "right rear trotter" });

   set_stats( ({ 2, 0, -2, 4, -4 }) );
} /* setup() */

void set_unarmed_attacks( object thing ) {
   thing->remove_attack( "hands" );
   thing->remove_attack( "feet" );
   thing->remove_attack( "standard" );

   thing->remove_attack( "hoof" );

   thing->add_attack( "hoof", 60, ({ 32, 10, 11 }),
      "blunt", "unarmed", 0 );

   thing->set_combat_response("dodge");
} /* set_unarmed_attacks() */

Site Stats

Snippets: 1791
Codebases: 571