38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
#include <lib.h>
|
|
inherit LIB_ROOM;
|
|
|
|
static void create() {
|
|
room::create();
|
|
SetClimate("indoors");
|
|
SetAmbientLight(30);
|
|
SetShort("Healer's Guild Storeroom");
|
|
SetLong("This blank room is where the guild keeps their junk.");
|
|
SetInventory(([
|
|
"/domains/town/meals/claritin" : 20,
|
|
"/domains/town/obj/slip_heal" : 100,
|
|
"/domains/town/obj/slip_regenerate" : 10,
|
|
"/domains/town/obj/slip_excise" : 10,
|
|
"/domains/town/meals/potion_antidote" : 20,
|
|
"/domains/town/meals/potion_cure" : 20,
|
|
]));
|
|
SetExits( ([
|
|
]) );
|
|
|
|
}
|
|
int CanReceive(object sneak) {
|
|
object *living_stack = get_livings(sneak);
|
|
if(!living_stack || !arrayp(living_stack)) living_stack = ({ sneak });
|
|
foreach(object ob in living_stack){
|
|
if(living(ob) && !creatorp(ob) &&
|
|
!member_group(ob,"TEST")) {
|
|
message("info","The storeroom is for guild officers only.", ob);
|
|
return 0;
|
|
}
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
void init(){
|
|
::init();
|
|
}
|