/
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/function/
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/
/* created food */

inherit "inherit/food";

status cast_spell(object caster,object target,object prev,int level) {
  object obj;

  if(level > 50) level = 50;
  set_name("food");
  set_alt_name("spell");
  set_short("A bowl of lumpy food");
  set_weight(1);
  set_long("It looks like wet, soggy, thick cardboard.\n");
  set_strength(level);
  set_consumer_msg("It tastes lumpy and bland, but it quiet filling.\n");
  set_room_msg("@@query_name:$this_player()$@@ eats a bowl of lumpy food.\n");

  tell_object(target, "Some food magically appears before you.\n");
  if(!target->add_weight(1)) move_object(this_object(), environment(target));
  target->recalc_carry();
  return 1;
}

void dispel_magic() {
  tell_object(environment(),"The Food vanishes!\n");
  destruct(this_object());
}

status drop(status quit) {
  if(quit) dispel_magic();
  return 0;
}

/* Native Mode Move */

#include <move.h>