From the NannyMUD documentation

LAST CHANGE

2007-07-28

FUNCTION


NAME

        drink_alcohol - The player drinks some alcoholic beverage.

LOCATION

        This function is located in /obj/player.

AVAILABILITY

        This function can be called by any object.

SYNTAX

        int drink_alcohol(int strength)

DESCRIPTION

        This function checks if the player can drink a drink of the
        given strength, and if so, updates the intox level.

RETURN VALUES

        0        Drinking failed; the player is too drunk.
        1        Drinking succeeded.

SEE ALSO

        query_can_drink_alcohol in lfun/player/query_can_drink_alcohol