dbread3.c

final_realms_fluffos_v1/lib/d/newbie/duergar/items/dbread3.c · 850 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

/* basic food item for the bakery */
#define HP_RESTORE 2
#define VALUE 350

#include "/std/object.c"

 int query_auto_load() { return 1; }
void setup() {
set_name("muffin");
set_main_plural("muffins");
set_short("A light, muffin.");
set_long("A small but delicious looking mushroom.  It appears to have a few "
     "small chuncks of something inside to add flavor.\n\n");
set_value(VALUE);
set_weight(10);
}
void init() {
add_action("do_eat","eat");
::init();
}

int do_eat(string what) {
if(what == "muffin") {
 this_player()->adjust_hp(HP_RESTORE);
 write("\n You pop the whole muffin into your mouth and savor the flavor "
       "reminds you of oranges.  Thats what those chuncks were, the orange "
       "mushrooms of the farm to the north."
       "\nMy it was tasty. "
       "\n\n");
 this_object()->dest_me();
 return(1);
 }
return(0);
}

Site Stats

Snippets: 1791
Codebases: 571