hole.c

nightmare3_fluffos_v2/lib/domains/Praxis/standardOld/hole.c · 856 B

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

inherit "std/room";

void create() {
    ::create();
    set_property("light", 0);
    set_short( "A hole in the ground");
    set_long(
	"You are in a deep hole in the ground. The light is very poor "
	"down here.");
    set_no_clean(1);
    set_exits( ([ ]) );
}

void fixing_a_hole() {
    remove_item_description("hole");
    remove_exit("up");
}

void digging() {
   add_item_description("hole", "A hole up to the surface.");   add_exit( "up", "/domains/Praxis/west_road2");

}

void reset() {
    object money;
    ::reset();
    if(!present("match"))
      new("/domains/Praxis/obj/misc/match")->move(this_object());
    if(!present("money")) {
        money = new("/std/obj/coins");
	money->set_money("platinum", random(5));
	money->set_money("silver", random(100));
	money->set_money("copper", random(1000));
	money->move(this_object());
    }
}

Site Stats

Snippets: 1791
Codebases: 571