/
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/
inherit "inherit/drink";


#include <spell.h>


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

status cast_spell(object caster,object target,object prev,int level) {
  mixed *loaded_spell;
  string c_name;

  /* the spell MUST have a component for the spell */

  loaded_spell = (mixed *)caster->query_loaded_spell();
  c_name = (string)COMPONENT[0]->query_empty_container();
  if(!c_name) c_name = "bottle";

  if(level > 40) level = 40;  /* healing strength */
  set_name("water");
  set_alias(c_name);
  set_alt_name("spell");
  set_soft_drink(1);
  set_short("A "+ c_name +" of water");
  set_weight(1);
  set_long("The water inside is fresh and cool.\n");
  set_empty_container(c_name);
  set_strength(level);
  set_consumer_msg("The cool water refreshes your partched throat.\n");
  set_room_msg("@@query_name:$this_player()$@@ drinks some fresh water.\n");

  tell_object(target, "Some water fills the "+ c_name +".\n");
  if(!target->add_weight(1)) move_object(this_object(), environment(target));
  target->recalc_carry();
  return 1;
}

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

/* Native Mode Move */

#include <move.h>