dragonbreath.c - example for course 02

[previous example] [course 02] [Table of contents] [next example]
/* Filename      : dragonbreath.c
 * Description   : a simple drink
 *
 * written       : 30-09-1996 - Gunner
 * last modified : 30-09-1996 - Gunner
 * HTML-Version  : 22-01-2000 - Ghorwin
 */

#include <mudlib.h>
inherit I_DRINK;                // inherit "/std/drink.c"

create()
{
    ::create();
    set_name("dragonbreath");
    add_id(({"drink","bubbling drink","fizzling drink","infamous drink",
         "green drink","infamous dragonbreath","bubbling dragonbreath",
         "fizzling dragonbreath"}));
    set_short("A green drink");
    set_long("The green drink bubbles and fizzles. It is the infamous "
         "dragonbreath.\n");
    set_weight(1);
    set_value(100);
    set_heal(10);
    set_strength(5);
    set_soft_strength(5);
    set_drinking_mess(" drinks a dragonbreath. It seems to be hot!\n");
    set_drinker_mess("You drink the dragonbreath. Yikes! It was hot!\n");
    replace_program(I_DRINK);
}