tunnel16.c

mud/2.4.5/room/mine/tunnel16.c · 700 B

From the archive 2.4.5-for-1.1.tgz

Download the archive   « Back to the archive contents

#include "../std.h"

object dwarf;

#undef EXTRA_MOVE1
#define EXTRA_MOVE1\
    if (dwarf && present(dwarf)) {\
	write("The dwarf bars the way !\n");\
	return 1;\
    }
#undef EXTRA_RESET
#define EXTRA_RESET\
    if (!dwarf || !living(dwarf)) {\
	dwarf = clone_object("obj/monster");\
	call_other(dwarf, "set_name", "dwarf");\
	call_other(dwarf, "set_level", 10);\
	call_other(dwarf, "set_al", -100);\
	call_other(dwarf, "set_short", "A short and sturdy dwarf");\
	call_other(dwarf, "set_wc", 10);\
	call_other(dwarf, "set_ac", 1);\
	move_object(dwarf, this_object());\
    }
TWO_EXIT("room/mine/tunnel17", "north",
	 "room/mine/tunnel15", "west",
	 "Tunnel",
	 "In the tunnel into the mines.\n", 0)

Site Stats

Snippets: 1791
Codebases: 571