#include <lib.h>
inherit LIB_ROOM;
int PreExit(){
object *livings;
livings = get_livings(this_object());
foreach(object living in livings){
if(living->GetRace() == "orc" && !interactive(living)) {
write("An orc bars your way!");
return 0;
}
}
return 1;
}
static void create() {
room::create();
SetClimate("outdoors");
SetAmbientLight(30);
SetShort("Orc Valley");
SetLong("You are in a small valley below the sheer cliffs to the west. A band of orcs appears to have made this place their home, and you can see their ramshackle fortress toward the north. A path leads east into a forest.");
SetExits( ([
"east" : "/domains/town/room/clearing"
]) );
AddExit("north", "/domains/town/room/orc_fortress", (: PreExit :));
SetInventory(([
"/domains/town/npc/orc" : 1,
"/domains/town/npc/orc2" : 1,
]) );
}
void init(){
::init();
}
int CanReceive(object ob){
if(answers_to("provost",ob)) return 0;
return ::CanReceive();
}