diff --git a/main.js b/main.js index e9e5ebd..6f0f488 100644 --- a/main.js +++ b/main.js @@ -7,7 +7,7 @@ Spoilers ahead. http://orteil.dashnet.org */ -var VERSION=2.018; +var VERSION=2.019; var BETA=1; @@ -617,24 +617,34 @@ Game.Launch=function() '
Version history
'+ '
'+ - '
05/03/2019 - beta tweaks
'+ - '
• vaulting upgrades is now done with shift-click, as ctrl-click was posing issues for Mac browsers
'+ - '
• made tooltips for building CpS boosts from synergies hopefully clearer
'+ - '
• fixed an exploit with gambler\'s fever dream working across ascensions
'+ - '
• small ad slot in the top-right was made somewhat bigger, as the other one was compatible with too few ads and would most of the time not display anything; again, this is hopefully a temporary measure until we find more revenue streams. Thank you for bearing with us!
'+ + '
01/04/2019 - 2.019 (the "this year" update)
'+ + '
• game has been renamed to "Cookie Clicker" to avoid confusion
'+ + '
• can now click the big cookie to generate cookies for free
'+ + '
• removed fall damage
'+ + '
• fixed various typos : player\'s name is now correctly spelled as "[bakeryName]"
'+ + '
• removed all references to computer-animated movie Hoodwinked! (2005)
'+ + '
• went back in time and invented cookies and computer mice, ensuring Cookie Clicker would one day come to exist
'+ + '
• game now fully compliant with Geneva Conventions
'+ + '
• dropped support for TI-84 version
'+ + '
• released a low-res retro version of the game, playable here : orteil.dashnet.org/experiments/cookie
'+ + '
• updated version number
'+ '
'+ - '
03/03/2019 - cookies for days
'+ + '
05/03/2019 - cookies for days
'+ '
• added over 20 new cookies, all previously suggested by our supporters on Patreon
'+ '
• added 2 heavenly upgrades
'+ '
• the Golden goose egg now counts as a golden cookie upgrade for Residual luck purposes
'+ '
• golden sugar lumps now either double your cookies, or give you 24 hours of your CpS, whichever is lowest (previously was doubling cookies with no cap)
'+ '
• the amount of heralds is now saved with your game, and is used to compute offline CpS the next time the game is loaded; previously, on page load, the offline calculation assumed heralds to be 0
'+ '
• added a system to counteract the game freezing up (and not baking cookies) after being inactive for a long while on slower computers; instead, this will now trigger sleep mode, during which you still produce cookies as if the game was closed; to enable this feature, use the "Sleep mode timeout" option in the settings
'+ + '
• vaulting upgrades is now done with shift-click, as ctrl-click was posing issues for Mac browsers
'+ + '
• made tooltips for building CpS boosts from synergies hopefully clearer
'+ + '
• fixed an exploit with gambler\'s fever dream working across exports and ascensions
'+ + '
• can now hide tooltips in the garden by keeping the shift key pressed to make it easier to see where you\'re planting
'+ '
• fixed a bug with golden cookies/reindeer not disappearing properly in some circumstances
'+ '
• the Dragon\'s Curve aura should now properly make sugar lumps twice as weird
'+ '
• the ctrl key should less often register incorrectly as pressed
'+ - '
• added a new small ad in the top-right, as while our playerbase is strong and supportive as ever, our ad revenue sometimes fluctuates badly; we may remove the ad again should our income stabilize
'+ + '
• added a new ad slot in the top-right, as while our playerbase is strong and supportive as ever, our ad revenue sometimes fluctuates badly; we may remove the ad again should our income stabilize
'+ '
• made a few adjustments to make the game somewhat playable in mobile browsers; it\'s not perfect and can get buggy, but it\'s functional! (you may need to zoom out or scroll around to view the game properly)
'+ '
• speaking of which, we also got some good progress on the mobile app version (built from scratch for mobile), so stay tuned!
'+ @@ -1415,7 +1425,18 @@ Game.Launch=function() tt.style.top='auto'; tt.style.right='auto'; tt.style.bottom='auto'; - tt.innerHTML=(typeof this.text==='function')?unescape(this.text()):unescape(this.text); + if (typeof this.text==='function') + { + var text=this.text(); + if (text=='') tta.style.opacity='0'; + else + { + tt.innerHTML=unescape(text); + tta.style.opacity='1'; + } + } + else tt.innerHTML=unescape(this.text); + //tt.innerHTML=(typeof this.text==='function')?unescape(this.text()):unescape(this.text); tta.style.display='block'; tta.style.visibility='hidden'; Game.tooltip.update(); @@ -1511,9 +1532,15 @@ Game.Launch=function() this.tta.style.top=Y+'px'; this.tta.style.bottom='auto'; if (this.shouldHide) {this.hide();this.shouldHide=0;} - if (Game.drawT%10==0 && typeof(this.text)=='function') + else if (Game.drawT%10==0 && typeof(this.text)=='function') { - this.tt.innerHTML=unescape(this.text()); + var text=this.text(); + if (text=='') this.tta.style.opacity='0'; + else + { + this.tt.innerHTML=unescape(text); + this.tta.style.opacity='1'; + } } } Game.tooltip.hide=function() @@ -3546,11 +3573,10 @@ Game.Launch=function() if (Game.hasAura('Dragon\'s Curve')) loop=2; for (var i=0;ishimmering veil, a switch that passively boosts your CpS by 50%.
You start with the veil turned on; however, it is very fragile, and clicking the big cookie or any golden cookie or reindeer will turn it off, requiring 24 hours of CpS to turn back on.Hands off!',999999999,[9,10]);Game.last.pool='prestige';Game.last.parents=['Distilled essence of redoubled luck']; order=40005; - new Game.Upgrade('Shimmering veil [off]','Boosts your cookie production by 50% when active.
The veil is very fragile and will break if you click the big cookie or any golden cookies or reindeer.
Turning the veil back on costs 24 hours of unbuffed CpS.',1000000,[9,10]); + var func=function(){ + var boost=50; + var resist=0; + if (Game.Has('Reinforced membrane')) {boost+=10;resist+=10;} + return (this.name=='Shimmering veil [on]'?'
Active.
':'')+'Boosts your cookie production by '+Beautify(boost)+'% when active.
The veil is very fragile and will break if you click the big cookie or any golden cookies or reindeer.

Once broken, turning the veil back on costs 24 hours of unbuffed CpS.'+(resist>0?('

Has a '+Beautify(resist)+'% chance to not break.'):''); + }; + new Game.Upgrade('Shimmering veil [off]','',1000000,[9,10]); Game.last.pool='toggle';Game.last.toggleInto='Shimmering veil [on]'; Game.last.priceFunc=function(){return Game.unbuffedCps*60*60*24;} - new Game.Upgrade('Shimmering veil [on]','
Active.
Boosts your cookie production by 50% when active.
The veil is very fragile and will break if you click the big cookie or any golden cookies or reindeer.
Turning the veil back on costs 24 hours of unbuffed CpS.',0,[9,10]); + Game.last.descFunc=func; + new Game.Upgrade('Shimmering veil [on]','',0,[9,10]); Game.last.pool='toggle';Game.last.toggleInto='Shimmering veil [off]'; + Game.last.descFunc=func; Game.loseShimmeringVeil=function(context) { @@ -9422,8 +9461,8 @@ Game.Launch=function() Game.NewUpgradeCookie({name:'Chocolate chip cookie',desc:'This is the cookie you\'ve been clicking this whole time. It looks a bit dented and nibbled on, but it\'s otherwise good as new.',icon:[10,0],power:10,require:'Legacy',price:1000000000000}); - new Game.Upgrade('Cosmic beginner\'s luck','Prior to purchasing the Heavenly chip secret upgrade in a run, random drops are 7 times more common.Oh! A penny!
Oh! A priceless heirloom!
Oh! Another penny!
',999999999*15,[8,10]);Game.last.pool='prestige';Game.last.parents=['Shimmering veil']; - new Game.Upgrade('Reinforced membrane','The shimmering veil is more resistant, and has a 10% chance not to break.A consistency between jellyfish and cling wrap.',999999999*15,[7,10]);Game.last.pool='prestige';Game.last.parents=['Shimmering veil']; + new Game.Upgrade('Cosmic beginner\'s luck','Prior to purchasing the Heavenly chip secret upgrade in a run, random drops are 5 times more common.Oh! A penny!
Oh! A priceless heirloom!
Oh! Another penny!
',999999999*15,[8,10]);Game.last.pool='prestige';Game.last.parents=['Shimmering veil']; + new Game.Upgrade('Reinforced membrane','The shimmering veil is more resistant, and has a 10% chance not to break. It also gives +10% more CpS.A consistency between jellyfish and cling wrap.',999999999*15,[7,10]);Game.last.pool='prestige';Game.last.parents=['Shimmering veil']; //end of upgrades @@ -12644,7 +12683,7 @@ Game.Launch=function() } Game.ready=1; - if (typeof showAds==='undefined') Game.addClass('noAds'); + setTimeout(function(){if (typeof showAds==='undefined' && (!l('detectAds') || l('detectAds').clientHeight<1)) Game.addClass('noAds');},500); l('javascriptError').innerHTML=''; l('javascriptError').style.display='none'; Game.Loop();