ROLL.C

LIB3/D/HOME/CITY/ITEMS/FOODS/ROLL.C · 346 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

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

setup()
{
   set_name("roll");
   set_short("roll");
   set_long("A small wholemeal roll, still a bit warm, although "+
      "that may be because you were keeping it in your pocket.\n");
   set_value(40);
   set_weight(2);
   set_eat_func("yum");
}
int yum()
{
this_player()->adjust_hp(20+random(20));
}

Site Stats

Snippets: 1791
Codebases: 571