I ran this CLI script from the gCLI:
I forgot that I had gotten booze from the Hobopolis Marketplace (Mafia was correctly showing my inebriety of 5/19).
Running the CLI script resulted in:
Of course, this is a flagrant case of user error, but I tried to look at UseItemRequest.java, and it looked like the code should handle this sort of case.
I was wrong apparently: allowBoozeConsumption() on line 981 handles the overdrinking warning, but the warning only happens if the player has pvp attacks or adventures left.
I don't know if this code pre-dates the CLI and ASH overdrink functions, but since there is a way for scripts to get around the warning, could we change line 1030 of UseItemRequest.java to:
Code:
equip tuxedo shirt
drink 4 rockin' wagon ;
drink 1 black tan
drink 1 shot of blackberry schnapps
Running the CLI script resulted in:
Code:
> call temp2
Putting on tuxedo shirt...
Equipment changed.
Since you are not in a Moxie sign, you may not visit the brewery.
Verifying ingredients for rockin' wagon (4)...
[...]
Successfully created rockin' wagon (4)
Drinking 4 rockin' wagon...
You gain 21 Adventures
You gain 35 Smarm
You gain 4 Drunkenness
You gain 16 Adventures
You gain 36 Sarcasm
You gain 4 Drunkenness
You gain 18 Adventures
You gain 34 Chutzpah
You gain 4 Drunkenness
You gain 21 Adventures
You gain 34 Smarm
You gain 4 Drunkenness
Finished drinking 4 rockin' wagon.
Since you are not in a Moxie sign, you may not visit the brewery.
(usable quantity of black & tan is limited to 0 by inebriety)
Since you are not in a Moxie sign, you may not visit the brewery.
(usable quantity of shot of blackberry schnapps is limited to 0 by inebriety)
Of course, this is a flagrant case of user error, but I tried to look at UseItemRequest.java, and it looked like the code should handle this sort of case.
I was wrong apparently: allowBoozeConsumption() on line 981 handles the overdrinking warning, but the warning only happens if the player has pvp attacks or adventures left.
I don't know if this code pre-dates the CLI and ASH overdrink functions, but since there is a way for scripts to get around the warning, could we change line 1030 of UseItemRequest.java to:
PHP:
if ( !InputFieldUtilities.confirm( "Are you sure you want to overdrink?" ) )