From the NannyMUD documentation

LAST CHANGE

2001-09-09

NAME

        complex_drink - Multiple drink object

INHERITS

	/std/simple_drink

FUNCTIONS

SETUP FUNCTIONS

	set_sp_heal
	set_hp_heal
	set_full
	set_max_full

QUERY FUNCTIONS

	query_sp_heal
	query_hp_heal
	query_full
	query_max_full
	query_full_string

PROPERTIES

INTERNAL PROPERTIES


PROPERTY NAME

        _show_full_message - _show_full_message

DESCRIPTION

	Will, if true, tell the player how much there is
	left in the drink after he has drunk from it.

DESCRIPTION


NOTE

	Anything that uses this file has to be approved by the admin.

NOTE

	Note that if you use set_heal() from simple_drink.c
	then it will heal that amount of spell and hit points 
	AND heal the spell points and hit points you set with set_sp_heal() 
	and set_hp_heal() every time you drink from it.

FUNCTION


NAME

        set_sp_heal - Set how many spell points the drink shall heal.

SYNTAX

void set_sp_heal(mixed sp_heal)

DESCRIPTION

	This function sets how many spell points the player will get 
	for every time he drinks from it.
	The value can also be negative. The value is sent to eval() when 
	the player drinks the drink.

FUNCTION


NAME

        set_hp_heal - Set how many hit points the drink shall heal.

SYNTAX

void set_hp_heal(mixed hp_heal)

DESCRIPTION

	This function sets how many hit points the player will get
	for every time he drinks from it.
	The value can also be negative. The value is sent to eval() when 
	the player drinks the drink.

FUNCTION


NAME

        set_full - Set how many sips the player will get from this drink.

SYNTAX

void set_full(int full)

DESCRIPTION

	This function will define how many times you drink from it.
	If you try to put more into the drink then is possible,
	it expands so it can contain the new amount.
	Note that for EVERY SINGLE sip you will:
		* heal set_heal() hp and sp.
		* heal set_heal_sp() sp.
		* heal set_heal_hp() hp.
		* become set_strength() intoxicated.
		* become set_soak() soaked.

FUNCTION


NAME

        set_max_full - Set how the drink can be filled.

SYNTAX

void set_max_full(int max_full)

DESCRIPTION

	This function will define how full the drink can be.
	Also if it shrinks so much it can not contain the 
	current amount of sips, then how many times you can
	drink from it will be lowered to how full the drink can be.