/* 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;
}