luggage.c

skylib_fluffos_v3/mudlib/std/races/luggage.c · 1.0 KB

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

inherit "/std/races/base";

void setup() {
   set_name( "luggage" );
   set_long( "A sapient pearwood luggage.\n" );
   set_desc( "a nice set of luggage" );
   set_height( 75 );
   set_weight( 5000 );

/*
 *   short, name, ({ parent, percentage weight, ({ file name (0 is "/std/bit"),
 *        amount }), child bit 1, child bit 2, ... })
 */  
   bits = ({ 
      "trunk", "trunk", ({ 0, 400, 0 }),
      "lid", "lid", ({ 0, 1000, 0 }),
      "leg", "leg", ({ 0, 5, ({"/std/bit", 50}) })
   });
    
   inedible = ({ "trunk", "lid" });
   unrottable = ({ "trunk", "lid" });
   set_skin( "casing" );

   set_stats( ({ 10, 6, -2, 10, -2 }) );
} /* setup() */

void set_unarmed_attacks( object thing ) {
   int number;

   number = (int)thing->query_skill_bonus( "fighting.combat.melee.unarmed" );
   number = 4 + sqrt( number ) / 2;

   thing->remove_attack( "hands" );

   thing->add_attack( "feet", 75, ({ 5 * number, 10, number }), "blunt",
      "unarmed", 0 );

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

Site Stats

Snippets: 1791
Codebases: 571