cake.c

./lib/doc/examples/food/cake.c · 566 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

/* Chocolate cake */

inherit "inherit/food";

void reset(status arg) {
  if(arg) return;
  set_name("cake");
  set_alt_name("chocolate cake");
  set_short("Chocolate Cake");
  set_long("The chocolate cake is dark and rich.\n");
  set_smell("You smell chocolate.\n");
  set_room_msg("You see @@query_name:$this_player()$@@ stuff a piece "+
               "of chocolate cake into @@query_possessive:$this_player()$@@"+
               " mouth\n");
  set_consumer_msg("You gorge into the chocolate cake.\n");
  set_strength(5);   /* value is set by strength value */
}

Site Stats

Snippets: 1791
Codebases: 571