Inebriety limit
This function returns the maximum safe drunkenness of a character before the character becomes falling-down drunk as an int. For characters without a Liver of Steel, this value is 14. For those characters with a Liver of Steel, this value is 19.
This example drinks you silly on St. Sneaky Pete's Day:
void get_sneaky() {
item FavoredDrink = $item[grogtini];
while(my_inebriety() < inebriety_limit()) {
overdrink(1,FavoredDrink);
}
int cirrosis = inebriety_limit() + 10 - my_inebriety();
overdrink(cirrosis,$item[green beer]);
if(inebriety_limit() < 16) {
print("Not ... drunk ... enough. Need ... ! ... potion");
}
}
When not logged in, this function returns 14.