bag.c

./lib/doc/examples/contain/bag.c · 265 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

/* a bag */

inherit "inherit/container";

void reset(status arg) {
  if(arg) return;
  set_name("bag");
  set_short("Bag");
  set_long("A small bag.\n");
  set_weight(2);      /* weight of bag */
  set_max_weight(6);  /* weight bag can carry */
  set_value(12);
}

Site Stats

Snippets: 1791
Codebases: 571