sea.c

ldmud-3.3.719/mud/lp-245/room/sea.c · 539 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

#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)

int dive() {
    object ob;

    ob = first_inventory(this_player());
    while(ob) {
	if (ob->can_put_and_get()) {
	    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;
}

Site Stats

Snippets: 1791
Codebases: 571