Inebriety limit
This function returns the minimum drunkenness at which the logged-in character's will become falling-down drink as an int. For characters without a Liver of Steel, this value will be 15. For those characters with a Liver of Steel, this value is 20.
An example:
void get_sneaky() {
item FavoredDrink = $item[grogtini];
while(my_inebriety() < inebriety_limit()) {
drink(1,FavoredDrink);
}
int cirrosis = inebriety_limit() + 10 - my_inebriety();
drink(cirrosis,$item[green beer]);
if(inebriety_limit() < 16) {
print("Not ... drunk ... enough. Need ... ! ... potion");
}
}