Bug - Fixed Eating optimal dog with Mayodiol active

Ezandora

Member
r16297

Steps to reproduce:
-No milk of magnesium active.
-Consume a mayodiol. (from mayo clinic)
-Eat an optimal dog.

Results:
-Property mayoInMouth is still Mayodiol
-Fortune cookie counter is not reset to zero.

I suspect this is due to this line in ClanLoungeRequest.java:
Code:
if ( responseText.contains( "You don't feel up to eating that" ) ||
	 ( !responseText.contains( "You lose some of an effect" ) &&
	   !responseText.contains( "You lose an effect" ) &&
	   responseText.contains( "You lose" ) ) )
{
	return;

Which matches some of the response text and returns early:
Code:
You lose 1 Fullness.

The same line won't match if milk of magnesium is active. This probably affects other the other hot dogs as well.

Entire response text:
Code:
<table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>You find the sharpest knife in the lounge and plunge it into the hot dog as hard as you can.  Take that, you stupid hot dog.  Take that.
<p>
You eat the mangled hot dog, and a feeling of perfect peace and well-being suffuses you.  You feel at one with the Universe.  You feel like now -- <i>right now</i> -- is the moment when something... important is supposed to happen.<center><table><tr><td><img src="/images/itemimages/hourglass.gif" height=30 width=30 alt="Adventures"></td><td valign=center>You gain 4 Adventures.</td></tr></table></center><center>You gain 1 Fullness.</center><p>The Mayodiol kicks in and converts some of what you just ate into pure ethanol.<center>You lose 1 Fullness.</center><center><table><tr><td>You gain 1 Drunkenness.</td></tr></table></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table>
 
Top