domush.c

final_realms_fluffos_v1/lib/d/newbie/duergar/items/domush.c · 1.0 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

#define HP_RESTORE 8
#define VALUE 3

#include "/std/object.c"

 int query_auto_load() { return 1; }
void setup()
{
   set_name("orange mushroom");
   set_main_plural("orange mushrooms");
   add_alias("mushroom");
   add_plural("mushrooms");
   set_short("An Orange Mushroom");
   set_long("This fist sized mushroom reminds you of the oranges that you "
      "had heard of in some of the surface citys.  The only differance seems "
      "seems to be that this one grows on the ground and the surface variety "
      "grows on a tree.  It looks like the most appetizing thing that you "
      "have seen in a while.\n");
   set_value(VALUE);
   set_weight(4);
}
void init()
{  add_action("do_eat","eat");
   ::init();
}
int do_eat(string what)
{  if(what == "mushroom")
   {   this_player()->adjust_hp(-15);
       write("\n You take a bite of the Orange mushroom, and its tangy taste "
      "surprises you.  You continue to enjoy the mushroom until you begin "
     "to feel a little sick.\n");
      this_object()->dest_me();
      return(1);
   }
   return(0);
}

Site Stats

Snippets: 1791
Codebases: 571