chain.c

./lib/doc/examples/armour/chain.c · 660 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

/* Suit of +1 chainmail */
/* Read armour.doc for armour guidelines */

inherit "inherit/armour";

void reset(status arg) {
  if(arg) return;
  set_name("chainmail");  
  set_short("Chainmail");
  set_long("The chainmail is made of iron. It looks like\n"+
           "it would be resilient to physical attacks.\n");
  set_ac(4);
  set_weight(3);
  set_value(5600);
  set_type("armour");
  set_armour_material("iron");
  set_enchanted(1);
  set_info("This chainmail is well made, but it exihibits little "+
           "magical dweomer.\n");
  set_listen("The chainmail rattles as you move.\n");
  set_smell("The chainmail smells like it is newly forged.\n");
}

Site Stats

Snippets: 1791
Codebases: 571