APPLE.C

LIB3/D/HOME/CITY/ITEMS/FOODS/APPLE.C · 273 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

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

setup()
{
set_name("apple");
set_short("apple");
set_long("This is a delicious green apple. It is just ripe for eating.\n");
set_weight(3);
set_value(50);
set_eat_func("yum");
}

int yum()
{
this_player()->adjust_hp(50);
}

Site Stats

Snippets: 1791
Codebases: 571