potion_strength.c

ds2.4.1/lib/domains/town/meals/potion_strength.c · 771 B

From the archive ds2.4.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include <vendor_types.h>
#include <meal_types.h>

inherit LIB_POTION;

static void create() {
    potion::create();
    SetKeyName("potion");
    SetId( ({ "bottle", "potion","philtrum","potion of strength" }) );
    SetAdjectives( "strength", "strongitude", "strongicity" );
    SetShort("a red potion of strength");
    SetLong("A bottle containing a red fluid with the magical property of making one stronger.");
    SetMass(60);
    SetMealType(MEAL_DRINK);
    SetStrength(5);
    SetMealMessages("You drink a potion.",
      "$N drinks a potion.");
    SetBaseCost("silver",1000);
    SetDuration(300);
    SetStats( ([ "strength" : 10 ]) );
    SetPoints( ([ "HP" : 50, "SP" : 50 ]) );
    SetVendorType(VT_MAGIC);
}
void init(){
    ::init();
}

Site Stats

Snippets: 1791
Codebases: 571