LOAF.C

LIB3/D/HOME/CITY/ITEMS/FOODS/LOAF.C · 429 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

#include "path.h"
inherit "/std/food";

setup()
{
set_name("loaf");
set_short("loaf of bread");
add_alias( "bread" );
set_main_plural("loaves of bread");
add_plural( "loaves" );
set_long("A small cob loaf. Its colour may be due to the wholemeal "+
         "flour it is made with, but whoever heard of green flour?\n");
set_value(70);
set_weight(6);
set_eat_func("yum");
}
int yum()
{
this_player()->adjust_hp(50+random(20));
}

Site Stats

Snippets: 1791
Codebases: 571