@@ -1059,11 +1059,11 @@ CM.Disp.CreateResetTooltip = function() {
10591059CM . Disp . CreateChoEggTooltip = function ( ) {
10601060 CM . Disp . ChoEggTooltipPlaceholder = document . createElement ( 'div' ) ;
10611061 var choEggTitleDesc = document . createElement ( 'div' ) ;
1062- choEggTitleDesc . style . minWidth = '290px ' ;
1062+ choEggTitleDesc . style . minWidth = '240px ' ;
10631063 choEggTitleDesc . style . marginBottom = '4px' ;
10641064 var div = document . createElement ( 'div' ) ;
10651065 div . style . textAlign = 'left' ;
1066- div . textContent = 'The amount of cookies you would get from selling all buildings and then buying Chocolate egg' ;
1066+ div . textContent = 'The amount of cookies you would get from selling all buildings, popping all wrinklers, and then buying Chocolate egg' ;
10671067 choEggTitleDesc . appendChild ( div ) ;
10681068 CM . Disp . ChoEggTooltipPlaceholder . appendChild ( choEggTitleDesc ) ;
10691069}
@@ -1376,24 +1376,28 @@ CM.Disp.AddMenuStats = function(title) {
13761376 stats . appendChild ( listing ( resetTitleFrag , resetFrag ) ) ;
13771377 }
13781378
1379+ var choEgg = ( Game . HasUnlocked ( 'Chocolate egg' ) && ! Game . Has ( 'Chocolate egg' ) ) ; // Needs to be done for the checking below
1380+
13791381 if ( Game . cpsSucked > 0 ) {
13801382 stats . appendChild ( header ( 'Wrinklers' , 'Wrink' ) ) ;
1381- if ( CM . Config . StatsPref . Wrink ) {
1383+ if ( CM . Config . StatsPref . Wrink || ( CM . Config . StatsPref . Sea && choEgg ) ) {
13821384 var sucked = 0 ;
13831385 for ( var i in Game . wrinklers ) {
13841386 sucked += Game . wrinklers [ i ] . sucked ;
13851387 }
13861388 sucked *= 1.1 ;
13871389 if ( Game . Has ( 'Wrinklerspawn' ) ) sucked *= 1.05 ;
1388- var popAllFrag = document . createDocumentFragment ( ) ;
1389- popAllFrag . appendChild ( document . createTextNode ( Beautify ( sucked ) + ' ' ) ) ;
13901390
1391- var popAllA = document . createElement ( 'a' ) ;
1392- popAllA . textContent = 'Pop All' ;
1393- popAllA . className = 'option' ;
1394- popAllA . onclick = function ( ) { Game . CollectWrinklers ( ) ; } ;
1395- popAllFrag . appendChild ( popAllA ) ;
1396- stats . appendChild ( listing ( 'Rewards of Popping' , popAllFrag ) ) ;
1391+ if ( CM . Config . StatsPref . Wrink ) {
1392+ var popAllFrag = document . createDocumentFragment ( ) ;
1393+ popAllFrag . appendChild ( document . createTextNode ( Beautify ( sucked ) + ' ' ) ) ;
1394+ var popAllA = document . createElement ( 'a' ) ;
1395+ popAllA . textContent = 'Pop All' ;
1396+ popAllA . className = 'option' ;
1397+ popAllA . onclick = function ( ) { Game . CollectWrinklers ( ) ; } ;
1398+ popAllFrag . appendChild ( popAllA ) ;
1399+ stats . appendChild ( listing ( 'Rewards of Popping' , popAllFrag ) ) ;
1400+ }
13971401 }
13981402 }
13991403
@@ -1433,7 +1437,6 @@ CM.Disp.AddMenuStats = function(title) {
14331437 specDisp = true ;
14341438 }
14351439 }
1436- var choEgg = ( Game . HasUnlocked ( 'Chocolate egg' ) && ! Game . Has ( 'Chocolate egg' ) ) ;
14371440
14381441 if ( Game . season == 'christmas' || specDisp || choEgg ) {
14391442 stats . appendChild ( header ( 'Season Specials' , 'Sea' ) ) ;
@@ -1502,7 +1505,11 @@ CM.Disp.AddMenuStats = function(title) {
15021505 choEggTitleSpan . style . verticalAlign = 'bottom' ;
15031506 choEggTitleSpan . textContent = '?' ;
15041507 choEggTitleFrag . appendChild ( choEggTitleSpan ) ;
1505- var choEggTotal = ( Game . cookies + CM . Cache . SellAllTotal ) * 0.05 ;
1508+ var choEggTotal = Game . cookies + CM . Cache . SellAllTotal ;
1509+ if ( Game . cpsSucked > 0 ) {
1510+ choEggTotal += sucked ;
1511+ }
1512+ choEggTotal *= 0.05 ;
15061513 stats . appendChild ( listing ( choEggTitleFrag , document . createTextNode ( Beautify ( choEggTotal ) ) ) ) ;
15071514 }
15081515 }
0 commit comments