mud/lib/domains/default/obj/reset_button.c
2020-09-06 05:43:07 -07:00

27 lines
700 B
C

#include <lib.h>
#include ROOMS_H
inherit LIB_DUMMY; // These do not show up in desc, but you can look at them
inherit LIB_PRESS; // Makes the item pressable
object room;
int eventResetRoom() {
object *livings = get_livings(environment(this_object()),2);
room = environment(this_object());
livings->eventMove(ROOM_FURNACE);
livings->eventDestruct();
call_out( (: reload_room, room :), 0 );
return 1;
}
static void create() {
dummy::create();
SetKeyName("button");
SetId(({"button","button on the wall"}));
SetAdjectives("reset");
SetShort("a button");
SetLong("It is a button that you could probably press.");
SetPress((: eventResetRoom :));
}