hump.c

mud/2.4.5/room/hump.c · 683 B

From the archive 2.4.5-for-1.1.tgz

Download the archive   « Back to the archive contents

#include "room.h"

#undef EXTRA_RESET
#define EXTRA_RESET\
        no_castle_flag = 1;\
        if (!present("stick")) {\
            object stick;\
	    stick = clone_object("obj/torch");\
	    move_object(stick, "room/hump");\
	    call_other(stick, "set_name", "stick");\
	    call_other(stick, "set_fuel", 500);\
	    call_other(stick, "set_weight", 1);\
        }\
        if (!present("money")) {\
	    object money;\
            money = clone_object("obj/money");\
	    move_object(money, "room/hump");\
	    call_other(money, "set_money", 10);\
        }

TWO_EXIT("room/vill_green", "east",
	 "room/wild1", "west",
	 "Humpbacked bridge",
	 "An old humpbacked bridge.\n", 1)

Site Stats

Snippets: 1791
Codebases: 571