/
lib/banish/
lib/d/
lib/doc/
lib/doc/domains/
lib/doc/efun/
lib/doc/examples/
lib/doc/examples/armour/
lib/doc/examples/contain/
lib/doc/examples/food/
lib/doc/examples/magic/
lib/doc/examples/monster/
lib/doc/examples/room/
lib/doc/examples/weapons/
lib/include/
lib/include/fn_specs/
lib/include/skills/
lib/info/
lib/inherit/base/
lib/log/
lib/manuals/312/
lib/news/
lib/obj/party/
lib/objects/components/
lib/open/
lib/open/library/
lib/open/party/
lib/players/
lib/players/zilanthius/
lib/room/
lib/room/city/arena/
lib/room/city/creator/
lib/room/city/garden/monst/
lib/room/city/obj/
lib/room/city/shop/
lib/room/death/
lib/room/registry/
lib/secure/
lib/secure/UDP_CMD_DIR/
lib/skills/
lib/skills/fighter/
lib/skills/thief/
lib/usr/
lib/usr/creators/
lib/usr/players/
/* Short sword, used by the citizen monster here */
/* This weapon has a hit function which can      */
/* add to the hit strength of the weapon.        */
/* Author : Goosestep                            */

inherit "inherit/weapon";

void reset(status arg) {
  if(arg) return;
  set_name("shortsword");  /* weapon type as set_name() see guidelines */
  set_alias("sword");
  set_short("Short sword");
  set_long("This is a Golthan short sword. It is rather plain, but sturdy.\n");
  set_value(500);         /* see guidelines for valid weight, value, wc */
  set_weight(3);
  set_wc(9);
  set_length(24);        /* length in inches, for two weapon use */
  set_type("slash");     /* set default weapon attack messages   */
  set_hit_func(this_object()); /* use on special hit weapons */
}

int weapon_hit(object attacker) {
  if(attacker->id("undead")) {
    write("The sword glows blue as you slash "+attacker->query_name()+".\n");
    say(this_player()->query_name() + " sword flashes as it strikes "+
        attacker->query_name() +"!\n");
    return 5; /* +5 vs undead creatures */
  }
  return 0;
}