store.c

lpc4/lib/room/store.c · 272 B

From the archive lpc4.05.14.tar.gz

Download the archive   « Back to the archive contents

inherit "/std/room";

void create()
{
  set_short("the store");
  set_long("This is where the shop stores all it's items, nobody is "+
	   "supposed to be able to come here.");
}

void reset()
{
  object o;
  foreach(all_inventory(),o) if(!random(4)) o->selfdestruct();
}

Site Stats

Snippets: 1791
Codebases: 571