/
lib/banish/
lib/d/
lib/doc/
lib/doc/domains/
lib/doc/efun/
lib/doc/examples/
lib/doc/examples/armour/
lib/doc/examples/contain/
lib/doc/examples/food/
lib/doc/examples/magic/
lib/doc/examples/monster/
lib/doc/examples/room/
lib/doc/examples/weapons/
lib/include/
lib/include/fn_specs/
lib/include/skills/
lib/info/
lib/inherit/base/
lib/log/
lib/manuals/312/
lib/news/
lib/obj/party/
lib/objects/components/
lib/open/
lib/open/library/
lib/open/party/
lib/players/
lib/players/zilanthius/
lib/room/
lib/room/city/arena/
lib/room/city/creator/
lib/room/city/garden/monst/
lib/room/city/obj/
lib/room/city/shop/
lib/room/death/
lib/room/registry/
lib/secure/
lib/secure/UDP_CMD_DIR/
lib/skills/
lib/skills/fighter/
lib/skills/thief/
lib/usr/
lib/usr/creators/
lib/usr/players/
#include <mudlib.h>
inherit BASE;

string consumer_msg;          /* message to consumer */
string room_msg;              /* message to room */
int strength;                 /* healing strength of consumable */

/* food, drinks cannot be put into bags */

status get() { return 1; }

prevent_insert() {
  write("You don't want to ruin "+(string)this_object()->short()+".\n");
  return 1;
}

                                        
status consume(string str) {
  this_player()->heal_self(strength);
  write(process_msg(consumer_msg));
  say(process_msg(room_msg));
  return 1;
}

/*********************************************************************/
/* sets */


int set_strength(int s)            { return strength = s; }

string set_room_msg(string em)     { return room_msg = em; }
string set_consumer_msg(string em) { return consumer_msg = em; }


/*********************************************************************/
/* query */


int query_strength()        { return strength; }

string query_room_msg()     { return room_msg; }
string query_consumer_msg() { return consumer_msg; }