/
LIB3/
LIB3/D/ADMIN/
LIB3/D/ADMIN/OBJ/
LIB3/D/ADMIN/ROOM/W/
LIB3/D/HOME/
LIB3/D/HOME/CITY/ARENA/
LIB3/D/HOME/CITY/ITEMS/
LIB3/D/HOME/CITY/POSTOFFI/
LIB3/DOC/
LIB3/GLOBAL/SPECIAL/
LIB3/GLOBAL/VIRTUAL/
LIB3/NET/
LIB3/NET/CONFIG/
LIB3/NET/DAEMON/CHARS/
LIB3/NET/GOPHER/
LIB3/NET/INHERIT/
LIB3/NET/OBJ/
LIB3/NET/SAVE/
LIB3/NET/VIRTUAL/
LIB3/OBJ/B_DAY/
LIB3/OBJ/HANDLERS/TERM_TYP/
LIB3/PLAYERS/B/
LIB3/PLAYERS/N/
LIB3/ROOM/
LIB3/SAVE/
LIB3/SAVE/BOARDS/
LIB3/SAVE/ENVIRON/
LIB3/SAVE/POST/
LIB3/STD/COMMANDS/SHADOWS/
LIB3/STD/CREATOR/
LIB3/STD/DOM/
LIB3/STD/EFFECTS/
LIB3/STD/EFFECTS/HEALING/
LIB3/STD/EFFECTS/OTHER/
LIB3/STD/EFFECTS/POISONS/
LIB3/STD/ENVIRON/
LIB3/STD/GUILDS/
LIB3/STD/LIQUIDS/
LIB3/STD/ROOM/
LIB3/STD/TRIGGER/SHADOW/
LIB3/W/
LIB3/W/BANNOR/
LIB3/W/NEWSTYLE/
inherit "/std/effects/basic";
/* ok, weakest healing potion */

/*
 * NB: This potion is intended to cure 20-100 hps for 'standard' coordinate
 *     and standard dose (100ml)
 */

create()
{
    set_boundaries( 
		       ({ 5, 5 }), ({ 30, 30 }) );
}

query_attrs( coord )
{
    int     total;

    total = coord[ 0 ] + coord[ 1 ];

    return({ 0, 100,
/* NAME */ ({ }),
/* COLS */ ({ ({ "light blue", total }) }),
/* SMEL */ ({ ({ "mint", total }), ({ "toothpaste", total / 2 }) }),
/* FLAV */ ({ ({ "mint", total }), ({ "toothpaste", total / 2 }) })
	      });
}

action_drunk( ob, coord, quantity )
{
    int     total, heal;
    string  desc;
    int     old_hp;

    total = coord[ 0 ] + coord[ 1 ];

    heal = (20 + random( 80 )) * total * quantity / (30 * 100);
    old_hp = ob->query_hp();
    heal = ob->adjust_hp( heal ) - old_hp;

    switch( heal )
    {
	case 0..35:
	    desc = "ever so slightly less damaged";
	    break;
	case 36..70:
	    desc = "slightly less damaged";
	    break;
	case 71..105:
	    desc = "a touch more whole";
	    break;
	case 106..140:
	    desc = "ever so slightly better";
	    break;
	case 141..175:
	    desc = "a bit better";
	    break;
	case 176..210:
	    desc = "better";
	    break;
	default:
/* this effect is not intended to heal > 250 hp */
	    desc = "much better";
	    break;
    }
    tell_object( ob, "You feel " + desc + ".\n" );
}

action_smell( ob, coord, quantity )
{
    tell_object( ob, "Your nose tingles pleasantly.\n" );
}