Drink Object Functions for Mocha


integer obj.drink_type;
void set_drink_type (object obj, integer type);
Determine or set the type of a drink. The type must appear in the following list of constants:

integer obj.drink_size;
integer obj.drink_cur_size;
void set_drink_size (object obj, integer size, integer cur_size);
Determine or set the number of units of liquid held by a drink and currently inside of a drink. Hours of satisfied thirst, satisfied hunger, and intoxication depend on the type of the drink. Handheld drink containers should hold no more than 50 units (a waterskin holds 20).

boolean obj.drink_poisoned;
void set_drink_poisoned (object obj, boolean poisoned);
Determine or set whether or not a drink is poisoned.


Return to Mocha Object Functions Page

Return to Mocha's Main Page