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

36 lines
776 B
C

#include <lib.h>
inherit LIB_STORAGE;
void create() {
::create();
SetKeyName("bin");
SetAdjectives( ({"tall", "metal", "javelin","spear"}) );
SetId( ({"javelin bin"}) );
SetShort("a tall metal bin");
SetLong("This tall container is meant to hold javelins.");
SetInventory(([
"/domains/town/weap/javelin" : ({ 1200, 10 }),
]));
SetNoCondition(1);
SetCanClose(0);
SetMass(274);
SetBaseCost("silver",1);
SetMaxCarry(3500);
SetNoClean(1);
}
void init(){
::init();
}
mixed CanGet(object ob) { return "The bin does not budge.";}
int CanReceive(object ob) {
if(!answers_to("javelin",ob)) {
write("This is a bin for javelins only.");
return 0;
}
else return 1;
}