staff.c

./lib/doc/examples/weapons/staff.c · 608 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

/* +2 staff */

inherit "inherit/weapon";

void reset(status arg) {
  if(arg) return;
  set_name("staff");  /* weapon type as set_name() see guidelines */
  set_short("Staff");
  set_long("For a staff of this size, it is extraordinarily light.\n");
  set_smell("It smells like walnut.\n");
  set_value(3000);       /* see guidelines for valid weight, value, wc */
  set_weight(4);
  set_wc(14);
  set_enchanted(1);      /* it is above normal guidelines for staff wc */
  set_length(80);        /* length in inches, for two weapon use */
  set_type("crush");     /* set default weapon attack messages   */
}

Site Stats

Snippets: 1791
Codebases: 571