plane9.c

mud/2.4.5/room/plane9.c · 963 B

From the archive 2.4.5-for-1.1.tgz

Download the archive   « Back to the archive contents

#include "room.h"

object stethoscope;
object frog;

extra_reset() {
    if (!stethoscope || environment(stethoscope) != this_object()) {
	stethoscope = clone_object("obj/stethoscope");
	move_object(stethoscope, this_object());
    }
    if (!frog || !living(frog)) {
	object crown;
	frog = clone_object("obj/monster");
	call_other(frog, "set_name", "frog");
	call_other(frog, "set_short", "A cute little frog");
	call_other(frog, "set_wc", 4);
	call_other(frog, "set_level", 1);
	call_other(frog, "set_frog", 1);
	move_object(frog, this_object());
	crown = clone_object("obj/treasure");
	call_other(crown, "set_id", "crown");
	call_other(crown, "set_value", 30);
	call_other(crown, "set_short", "An iron crown");
	move_object(crown, frog);
    }
}

#undef EXTRA_RESET
#define EXTRA_RESET\
    extra_reset();

ONE_EXIT("room/ruin", "west",
	 "A large open plain",
	 "A large open plain. There is a river to the east,\nand some kind of building to the west\n", 1)

Site Stats

Snippets: 1791
Codebases: 571