mud/
mud/2.4.5/dgd/include/
mud/2.4.5/dgd/std/
mud/2.4.5/dgd/sys/
mud/2.4.5/doc/
mud/2.4.5/doc/examples/
mud/2.4.5/log/
mud/2.4.5/obj/Go/
mud/2.4.5/players/
mud/2.4.5/players/lars/
mud/2.4.5/room/death/
mud/2.4.5/room/maze1/
mud/2.4.5/room/post_dir/
mud/2.4.5/room/sub/
#include "std.h"

#undef EXTRA_INIT
#define EXTRA_INIT add_action("dive", "dive");

string bag;

ONE_EXIT("room/jetty2","west",
	 "All at sea",
	 "You are swimming out at the sea.\n", 1)

dive() {
    object ob;

    ob = first_inventory(this_player());
    while(ob) {
	if (call_other(ob, "can_put_and_get", 0)) {
	    call_other(this_player(), "move_player", "down#room/sea_bottom");
	    return 1;
	}
	ob = next_inventory(ob);
    }
    write("You can't breathe under water !\n");
    write("You should try to get some portable air supply!\n");
    return 1;
}