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

44 lines
1.1 KiB
C

#include <lib.h>
#include <vendor_types.h>
inherit LIB_ITEM;
string patient;
void create(){
::create();
SetKeyName("curing slip");
SetId( ({"slip","leaf","paper","healer token"}) );
SetAdjectives( ({"cure","curing","medical","paper"}) );
SetShort("a curing slip");
SetLong("This is a small, fragile piece of paper, possibly even a leaf. "
"It has some script scribbled on it.");
SetMass(1);
SetBaseCost("silver",1500);
SetVendorType(VT_HERB);
SetItems( ([
({"script","writing","scribbling"}) : "There is writing on the slip."
]) );
SetRead( ([
({"script","writing","scribbling"}) : "The slip reads: \"vbgkqjxz\""
]) );
SetDefaultRead("default", "The slip reads: \"etaoin\"");
SetProperty("problem","cure");
}
void init(){
::init();
if( living(environment()) && environment()->GetKeyName() != "clepius"){
patient = environment()->GetKeyName();
}
}
int SetPatient(string str){
if(str) patient = str;
return 1;
}
string GetPatient(){
if(patient) return patient;
else return "none";
}