diff --git a/main.js b/main.js index 6f0f488..76be5a6 100644 --- a/main.js +++ b/main.js @@ -7,7 +7,7 @@ Spoilers ahead. http://orteil.dashnet.org */ -var VERSION=2.019; +var VERSION=2.021; var BETA=1; @@ -569,6 +569,7 @@ Game.Launch=function() Game.version=VERSION; Game.beta=BETA; if (window.location.href.indexOf('/beta')>-1) Game.beta=1; + Game.https=(location.protocol!='https:')?false:true; Game.mobile=0; Game.touchEvents=0; //if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) Game.mobile=1; @@ -616,12 +617,20 @@ Game.Launch=function() '
')+3); + me=me.substring(0,me.length-4); + } + me=''+me+''; + Math.seedrandom(); + list=[me]; + } + } + Game.TickerAge=Game.fps*10; Game.Ticker=choose(list); Game.AddToLog(Game.Ticker); @@ -6319,7 +6427,38 @@ Game.Launch=function() void Game.tickerL.offsetWidth; Game.tickerL.className='commentsText risingUp'; } - AddEvent(Game.tickerL,'click',function(event){Game.Ticker='';Game.TickerClicks++;if (Game.TickerClicks==50) {Game.Win('Tabloid addiction');}}); + AddEvent(Game.tickerL,'click',function(event){ + Game.Ticker=''; + Game.TickerClicks++; + if (Game.TickerClicks==50) {Game.Win('Tabloid addiction');} + + if (Game.TickerEffect && Game.TickerEffect.type=='fortune') + { + PlaySound('snd/fortune.mp3',1); + Game.SparkleAt(Game.mouseX,Game.mouseY); + var effect=Game.TickerEffect.sub; + if (effect=='fortuneGC') + { + Game.Notify('Fortune!','A golden cookie has appeared.',[10,32]); + Game.fortuneGC=1; + var newShimmer=new Game.shimmer('golden',{noWrath:true}); + } + else if (effect=='fortuneCPS') + { + Game.Notify('Fortune!','You gain one hour of your CpS (capped at double your bank).',[10,32]); + Game.fortuneCPS=1; + Game.Earn((Game.cookiesPs*60*60,Game.cookies)); + } + else + { + Game.Notify(effect.name,'You\'ve unlocked a new upgrade.',effect.icon); + effect.unlock(); + } + } + + Game.TickerEffect=0; + + }); Game.Log=[]; Game.AddToLog=function(what) @@ -6378,10 +6517,11 @@ Game.Launch=function() var digits=Math.pow(10,(Math.ceil(Math.log(Math.ceil(this.baseCps))/Math.LN10)))/100; this.baseCps=Math.round(this.baseCps/digits)*digits; - this.basePrice=(this.n*1+9+(this.n<5?0:Math.pow(this.n-5,1.75)*5))*Math.pow(10,this.n); + this.basePrice=(this.n*1+9+(this.n<5?0:Math.pow(this.n-5,1.75)*5))*Math.pow(10,this.n)*(Math.max(1,this.n-14)); //this.basePrice=(this.n*2.5+7.5)*Math.pow(10,this.n); var digits=Math.pow(10,(Math.ceil(Math.log(Math.ceil(this.basePrice))/Math.LN10)))/100; this.basePrice=Math.round(this.basePrice/digits)*digits; + if (this.id>=16) this.basePrice*=10; this.price=this.basePrice; this.bulkPrice=this.price; } @@ -6402,6 +6542,7 @@ Game.Launch=function() this.tieredUpgrades=[]; this.tieredAchievs=[]; this.synergies=[]; + this.fortune=0; this.amount=0; this.bought=0; @@ -6468,7 +6609,8 @@ Game.Launch=function() this.getSellMultiplier=function() { var giveBack=0.25; - if (Game.hasAura('Earth Shatterer')) giveBack=0.5; + //if (Game.hasAura('Earth Shatterer')) giveBack=0.5; + giveBack*=1+Game.auraMult('Earth Shatterer'); return giveBack; } @@ -6876,6 +7018,7 @@ Game.Launch=function() //x : horizontal offset //y : vertical offset (+32) //rows : if >1, arrange the pictures in rows containing this many pictures + //frames : if present, slice the pic in [frames] horizontal slices and pick one at random var pic=this.art.pic; var bg=this.art.bg; @@ -6886,6 +7029,7 @@ Game.Launch=function() var offX=this.art.x||0; var offY=this.art.y||0; var rows=this.art.rows||1; + var frames=this.art.frames||1; if (typeof(bg)=='string') ctx.fillPattern(Pic(this.art.bg),0,0,this.canvas.width,this.canvas.height,128,128); else bg(this,ctx); @@ -6925,7 +7069,9 @@ Game.Launch=function() y=32+Math.floor((Math.random()-0.5)*yV)+offY; } var usedPic=(typeof(pic)=='string'?pic:pic(this,i)); - this.pics.push({x:Math.floor(x),y:Math.floor(y),z:y,pic:usedPic,id:i}); + var frame=-1; + if (frames>1) frame=Math.floor(Math.random()*frames); + this.pics.push({x:Math.floor(x),y:Math.floor(y),z:y,pic:usedPic,id:i,frame:frame}); i++; added++; } @@ -6961,6 +7107,7 @@ Game.Launch=function() for (var i=0;i=Game.SpecialGrandmaUnlock && Game.Objects['Grandma'].amount>0) Game.Unlock(this.grandma.name); }); - new Game.Object('Chancemaker','chancemaker|chancemakers|spontaneously generated|Chancemakers are powered by [X]-leaf clovers|Chancemakers are powered by [X]-leaf clovers','Generates cookies out of thin air through sheer luck.',15,19,{base:'chancemaker',xV:8,yV:64,w:64,rows:1,x:0,y:0},77777777777,function(me){ + new Game.Object('Chancemaker','chancemaker|chancemakers|spontaneously generated|Chancemakers are powered by [X]-leaf clovers|Chancemakers are powered by [X]-leaf clovers','Generates cookies out of thin air through sheer luck.',15,19,{base:'chancemaker',xV:8,yV:64,w:64,rows:1,x:0,y:0,rows:2},77777777777,function(me){ var mult=1; mult*=Game.GetTieredCpsMult(me); mult*=Game.magicCpS(me.name); @@ -7468,6 +7623,18 @@ Game.Launch=function() if (this.amount>=Game.SpecialGrandmaUnlock && Game.Objects['Grandma'].amount>0) Game.Unlock(this.grandma.name); }); + new Game.Object('Javascript console','javascript console|javascript consoles|programmed|Equipped with [X] external library|Equipped with [X] external libraries','Creates cookies from the very code this game was written in.',17,32,{base:'javascriptconsole',xV:8,yV:64,w:14,rows:1,x:8,y:-32,frames:2},12345678987654321,function(me){ + var mult=1; + mult*=Game.GetTieredCpsMult(me); + mult*=Game.magicCpS(me.name); + return me.baseCps*mult; + },function(){ + Game.UnlockTiered(this); + if (this.amount>=Game.SpecialGrandmaUnlock && Game.Objects['Grandma'].amount>0) Game.Unlock(this.grandma.name); + }); + Game.last.displayName='Javascript console';//shrink the name since it's so large + + Game.foolObjects={ 'Unknown':{name:'Investment',desc:'You\'re not sure what this does, you just know it means profit.',icon:0}, 'Cursor':{name:'Rolling pin',desc:'Essential in flattening dough. The first step in cookie-making.',icon:0}, @@ -7486,6 +7653,7 @@ Game.Launch=function() 'Prism':{name:'Corporate country',desc:'You\'ve made it to the top, and you can now buy entire nations to further your corporate greed. Godspeed.',icon:13}, 'Chancemaker':{name:'Privatized planet',desc:'Actually, you know what\'s cool? A whole planet dedicated to producing, advertising, selling, and consuming your cookies.',icon:15}, 'Fractal engine':{name:'Senate seat',desc:'Only through political dominion can you truly alter this world to create a brighter, more cookie-friendly future.',icon:16}, + 'Javascript console':{name:'Doctrine',desc:'Taking many forms -religion, culture, philosophy- a doctrine may, when handled properly, cause a lasting impact on civilizations, reshaping minds and people and ensuring all future generations share a singular goal - the production, and acquisition, of more cookies.',icon:17}, }; @@ -7575,7 +7743,7 @@ Game.Launch=function() Game.Upgrade.prototype.getPrice=function() { var price=this.basePrice; - if (this.priceFunc) price=this.priceFunc(); + if (this.priceFunc) price=this.priceFunc(this); if (price==0) return 0; if (this.pool!='prestige') { @@ -7584,9 +7752,11 @@ Game.Launch=function() if (Game.Has('Santa\'s dominion')) price*=0.98; if (Game.Has('Faberge egg')) price*=0.99; if (Game.Has('Divine sales')) price*=0.99; + if (Game.Has('Fortune #100')) price*=0.99; if (Game.hasBuff('Haggler\'s luck')) price*=0.98; if (Game.hasBuff('Haggler\'s misery')) price*=1.02; - if (Game.hasAura('Master of the Armory')) price*=0.98; + //if (Game.hasAura('Master of the Armory')) price*=0.98; + price*=1-Game.auraMult('Master of the Armory')*0.02; price*=Game.eff('upgradeCost'); if (this.pool=='cookie' && Game.Has('Divine bakeries')) price/=5; } @@ -7948,9 +8118,12 @@ Game.Launch=function() 10:{name:'Mooncandy',unlock:350,achievUnlock:450,iconRow:19,color:'#7e7ab9',price: 500000000000000000000}, 11:{name:'Astrofudge',unlock:400,achievUnlock:500,iconRow:28,color:'#9a3316',price: 5000000000000000000000000}, 12:{name:'Alabascream',unlock:450,achievUnlock:550,iconRow:30,color:'#c1a88c',price: 50000000000000000000000000000}, + 13:{name:'Iridyum',unlock:500,achievUnlock:600,iconRow:31,color:'#adb1b3',price: 500000000000000000000000000000000}, 'synergy1':{name:'Synergy I',unlock:15,iconRow:20,color:'#008595',special:1,req:'Synergies Vol. I',price: 200000}, 'synergy2':{name:'Synergy II',unlock:75,iconRow:29,color:'#008595',special:1,req:'Synergies Vol. II',price: 200000000000}, + 'fortune':{name:'Fortune',unlock:-1,iconRow:32,color:'#9ab834',special:1,price: 77777777777777777777777777777}, }; + for (var i in Game.Tiers){Game.Tiers[i].upgrades=[];} Game.GetIcon=function(type,tier) { var col=0; @@ -7974,6 +8147,8 @@ Game.Launch=function() { var upgrade=new Game.Upgrade(name,desc,Game.Objects[building].basePrice*Game.Tiers[tier].price,Game.GetIcon(building,tier)); Game.SetTier(building,tier); + if (!upgrade.buildingTie1 && building) upgrade.buildingTie1=Game.Objects[building]; + if (tier=='fortune' && building) Game.Objects[building].fortune=upgrade; return upgrade; } Game.SynergyUpgrade=function(name,desc,building1,building2,tier) @@ -8017,12 +8192,13 @@ Game.Launch=function() else if (syn.buildingTie2.name==me.name) mult*=(1+0.001*syn.buildingTie1.amount); } } + if (me.fortune && Game.Has(me.fortune.name)) mult*=1.07; if (me.grandma && Game.Has(me.grandma.name)) mult*=(1+Game.Objects['Grandma'].amount*0.01*(1/(me.id-1))); return mult; } Game.UnlockTiered=function(me) { - for (var i in me.tieredUpgrades) {if (me.amount>=Game.Tiers[me.tieredUpgrades[i].tier].unlock) Game.Unlock(me.tieredUpgrades[i].name);} + for (var i in me.tieredUpgrades) {if (Game.Tiers[me.tieredUpgrades[i].tier].unlock!=-1 && me.amount>=Game.Tiers[me.tieredUpgrades[i].tier].unlock) Game.Unlock(me.tieredUpgrades[i].name);} for (var i in me.tieredAchievs) {if (me.amount>=Game.Tiers[me.tieredAchievs[i].tier].achievUnlock) Game.Win(me.tieredAchievs[i].name);} for (var i in me.synergies) {var syn=me.synergies[i];if (Game.Has(Game.Tiers[syn.tier].req) && syn.buildingTie1.amount>=Game.Tiers[syn.tier].unlock && syn.buildingTie2.amount>=Game.Tiers[syn.tier].unlock) Game.Unlock(syn.name);} } @@ -8856,6 +9032,7 @@ Game.Launch=function() choices[25]={name:'Spiced milk',icon:[26,23]}; choices[26]={name:'Maple milk',icon:[28,23]}; + choices[27]={name:'Mint milk',icon:[29,23]}; choices[Game.milkType].selected=1; return choices; @@ -8891,6 +9068,7 @@ Game.Launch=function() 24:{pic:'milkSoy'}, 25:{pic:'milkSpiced'}, 26:{pic:'milkMaple'}, + 27:{pic:'milkMint'}, }; @@ -8911,7 +9089,7 @@ Game.Launch=function() order=10030; Game.NewUpgradeCookie({name:'Digits',desc:'Three flavors, zero phalanges.',icon:[26,8],require:'Box of brand biscuits',power: 2, price: 999999999999999*5}); - order=10030; + order=10029; Game.NewUpgradeCookie({name:'Butter horseshoes',desc:'It would behoove you to not overindulge in these.',icon:[22,9],require:'Tin of butter cookies',power: 4, price: 99999999999999999999999}); Game.NewUpgradeCookie({name:'Butter pucks',desc:'Lord, what fools these mortals be!
(This is kind of a hokey reference.)',icon:[23,9],require:'Tin of butter cookies',power: 4, price: 99999999999999999999999*5}); Game.NewUpgradeCookie({name:'Butter knots',desc:'Look, you can call these pretzels if you want, but you\'d just be fooling yourself, wouldn\'t you?',icon:[24,9],require:'Tin of butter cookies',power: 4, price: 999999999999999999999999}); @@ -9188,7 +9366,7 @@ Game.Launch=function() new Game.Upgrade('Kitten marketeers','You gain more CpS the more milk you have.no such thing as a saturated markit, sir',900000000000000000000000000000000000000,Game.GetIcon('Kitten',11));Game.last.kitten=1;Game.MakeTiered(Game.last,11,18); order=10030; - Game.NewUpgradeCookie({name:'Festivity loops',desc:'These garish biscuits are a perfect fit for children\'s birthday parties or the funerals of strange, eccentric billionaires.',icon:[25,17],require:'Box of brand biscuits',power: 2, price: 999999999999999*5}); + Game.NewUpgradeCookie({name:'Festivity loops',desc:'These garish biscuits are a perfect fit for children\'s birthday parties or the funerals of strange, eccentric billionaires.',icon:[25,17],require:'Box of brand biscuits',power: 2, price: 999999999999999999999999*5}); order=10020; Game.NewUpgradeCookie({name:'Persian rice cookies',desc:'Rose water and poppy seeds are the secret ingredients of these small, butter-free cookies.',icon:[28,15],power: 4,price: 99999999999999999999999999999999*5}); @@ -9259,7 +9437,7 @@ Game.Launch=function() Game.NewUpgradeCookie({name:'Chocolate oatmeal cookies',desc:'These bad boys compensate for lack of a cohesive form and a lumpy, unsightly appearance by being just simply delicious. Something we should all aspire to.',icon:[23,28],power: 4,price: 99999999999999999999999999999999999*5}); Game.NewUpgradeCookie({name:'Molasses cookies',desc:'Sticky, crackly, and dusted in fine sugar.
Some lunatics have been known to eat these with potatoes.',icon:[24,28],power: 4,price: 999999999999999999999999999999999999}); Game.NewUpgradeCookie({name:'Biscotti',desc:'Almonds and pistachios make these very robust cookies slightly more interesting to eat than to bludgeon people with.',icon:[22,28],power: 4,price: 999999999999999999999999999999999999*5}); - Game.NewUpgradeCookie({name:'Waffle cookies',desc:'Whether these are cookies with shocklingly waffle-like features or simply regular cookie-sized waffles is a debate we\'re not getting into here.',icon:[21,28],power: 4,price: 9999999999999999999999999999999999999}); + Game.NewUpgradeCookie({name:'Waffle cookies',desc:'Whether these are cookies with shockingly waffle-like features or simply regular cookie-sized waffles is a debate we\'re not getting into here.',icon:[21,28],power: 4,price: 9999999999999999999999999999999999999}); order=10000; @@ -9319,7 +9497,7 @@ Game.Launch=function() //Game.SynergyUpgrade('Compounded odds','When probabilities start cascading, "never in a billion lifetimes" starts looking terribly like "probably before Monday comes around".','Fractal engine','Chancemaker','synergy1'); Game.SynergyUpgrade('Mice clicking mice','','Fractal engine','Cursor','synergy2'); Game.last.descFunc=function(){ - Math.seedrandom(Game.seed+'-blacsphemouse'); + Math.seedrandom(Game.seed+'-blasphemouse'); if (Math.random()<0.3) {Math.seedrandom();return this.desc+'Absolutely blasphemouse!';} else {Math.seedrandom();return this.desc+'Absolutely blasphemous!';} }; @@ -9464,6 +9642,103 @@ Game.Launch=function() 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!',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.
Oh! A priceless heirloom!
Oh! Another penny!A consistency between jellyfish and cling wrap.',999999999*15,[7,10]);Game.last.pool='prestige';Game.last.parents=['Shimmering veil']; + + order=255; + Game.GrandmaSynergy('Binary grandmas','A digital grandma to transfer more cookies.
(See also : boolean grandmas, string grandmas, and not-a-number grandmas, also known as "NaNs".)','Javascript console'); + + order=1400; + new Game.TieredUpgrade('The JavaScript console for dummies','Javascript consoles are twice as efficient.This should get you started. The first line reads: "To open the javascript console, press-"','Javascript console',1); + new Game.TieredUpgrade('64bit arrays','Javascript consoles are twice as efficient.
...the rest of the book is soaked in chocolate milk. If only there was a way to look up this sort of information...A long-form variable type to pack your cookies much more efficiently.','Javascript console',2); + new Game.TieredUpgrade('Stack overflow','Javascript consoles are twice as efficient.This is really bad! You probably forgot to close a loop somewhere and now your programs are going crazy! The rest of your engineers seem really excited about it somehow. How could a software mishap like a stack overflow possibly ever help anyone?','Javascript console',3); + new Game.TieredUpgrade('Enterprise compiler','Javascript consoles are twice as efficient.This bespoke javascript compiler took your team years of development and billions in research, but it should let you execute (certain) functions (up to) 2% faster (in optimal circumstances).','Javascript console',4); + new Game.TieredUpgrade('Syntactic sugar','Javascript consoles are twice as efficient.Tastier code for tastier cookies.','Javascript console',5); + new Game.TieredUpgrade('A nice cup of coffee','Javascript consoles are twice as efficient.All this nerd stuff has you exhausted. You make yourself a nice cup of coffee, brewed with roasted beans from some far-away island. You may have been working a bit too hard though - the cup of coffee starts talking to you, insisting that it is NOT javascript.','Javascript console',6); + new Game.TieredUpgrade('Just-in-time baking','Javascript consoles are twice as efficient.A new method of preparing cookies; they bake themselves right in front of the customers before eating, leaving your kitchens mess-free.','Javascript console',7); + new Game.TieredUpgrade('cookies++','Javascript consoles are twice as efficient.Your very own cookie-themed programming language, elegantly named after its most interesting ability - increasing the "cookies" variable by 1.','Javascript console',8); + new Game.TieredUpgrade('Software updates','Javascript consoles are twice as efficient.This is grand news - someone\'s finally figured out the Wifi password, and your newfound internet connection seems to have triggered a whole lot of software updates! Your browsers, drivers and plugins all received a fresh coat of paint, and your javascript version has been updated to the latest ECMAScript specification. It\'s really too bad thousands had to die due to some deprecated function in your neurotoxin ventilation code, but I guess that\'s progress for you.','Javascript console',9); + new Game.TieredUpgrade('Game.Loop','Javascript consoles are twice as efficient.You\'re not quite sure what to make of this. What does it mean? What does it do? Who would leave something like that just laying around here? Try asking again in 1/30th of a second.','Javascript console',10); + new Game.TieredUpgrade('eval()','Javascript consoles are twice as efficient.It is said that this simple function holds the key to the universe, and that whosoever masters it may shape reality to their will.','Javascript console',11); + + order=5000; + Game.SynergyUpgrade('Script grannies','
Good thing you have no idea how it works. Makes for a neat plaque on your wall, though.Armies of energy drink-fueled grandmas ready to hack into the cyberspace for renegade e-cookies.','Javascript console','Grandma','synergy1'); + Game.SynergyUpgrade('Tombola computing','','Javascript console','Chancemaker','synergy2'); + Game.last.descFunc=function(){ + Math.seedrandom(Game.seed+'-tombolacomputing'); + var str='(Your ticket reads '+Math.floor(Math.random()*100)+' '+Math.floor(Math.random()*100)+' '+Math.floor(Math.random()*100)+' '+Math.floor(Math.random()*100)+', entitling you to '+choose([Math.floor(Math.random()*5+2)+' lines of javascript','one free use of Math.random()','one qubit, whatever that is','one half-eaten cookie','a brand new vacuum cleaner','most of one room-temperature cup of orange soda','one really good sandwich','one handful of pocket lint','someone\'s mostly clean hairpiece','a trip to a fancy restaurant','the knowledge of those numbers','a furtive glance at the news ticker','another ticket, half-price','all-you-can-eat moldy bread','one lifetime supply of oxygen','the color '+choose['red','orange','yellow','green','blue','purple','black','white','gray','brown','pink','teal'],'increased intellect for a limited time','an ancient runesword','the throne of a far-away country','the position of Mafia capo. Good luck','one free time-travel week-end','something beautiful','the deed to some oil well','one hamburger made out of the animal, plant, or person of your choice','the last surviving '+choose['dodo bird','thylacine','unicorn','dinosaur','neanderthal'],'a deep feeling of accomplishment','a fleeting tinge of entertainment','a vague sense of unease','deep existential dread','one extra week added to your lifespan','breathe manually','blink right here and now','one meeting with any famous person, living or dead, in your next dream','one very nice dream','a wacky sound effect','45 seconds of moral flexibility','hundreds and thousands, also known as "sprinkles"','one circle, triangle, square or other simple geometric shape, of average dimensions','just this extra bit of randomness','the extra push you needed to turn your life around','a good fright','one secret superpower','a better luck next time','an irrational phobia of tombola tickets','one whole spider','an increased sense of self-worth and determination','inner peace','one double-XP week-end in the MMORPG of your choice','a little piece of the universe, represented by the trillions of atoms that make up this very ticket','food poisoning','the Moon! Well, conceptually','a new car, baby','a new catchphrase','an intrusive thought of your choice','- ...aw man, it just cuts off there','the director spot for the next big hit movie','really good-looking calves','one genuine pirate golden doubloon','"treasure and riches", or something','one boat, sunken','baby shoes, never worn','direct lineage to some King or Queen','innate knowledge of a dead language you\'ll never encounter','the melody of a song you don\'t know the words to','white noise','mild physical impairment','a new pair of lips','things, and such','one popular expression bearing your name','one typo','one get-out-of-jail-free card','the rest of your life... for now','one polite huff','a condescending stare','one cursed monkey paw','true love, probably','an interesting factoid about the animal, country, TV show or celebrity of your choice','a pop culture reference','minutes of fun','the etymology of the word "tombola" - it\'s Italian for "a tumble"','nothing. You lost, sorry'])+'.)'; + Math.seedrandom(); + return this.desc+'Like quantum computing, but more fun.'; + }; + + order=10020; + Game.NewUpgradeCookie({name:'Kruidnoten',desc:'A festive dutch favorite; tiny cinnamony bites sometimes coated in chocolate. The name translates roughly to "kruidnoten".',icon:[30,3],power: 5,price: getCookiePrice(22)}); + Game.NewUpgradeCookie({name:'Marie biscuits',desc:'Pleasantly round, smoothly buttery, subtly vanilla-flavored, ornately embossed, each ridge represents a person Marie killed in prison.',icon:[30,4],power: 5,price: getCookiePrice(23)}); + Game.NewUpgradeCookie({name:'Meringue cookies',desc:'Probably the most exciting thing you can make out of egg whites. Also called forgotten cookies, due to the recipe being once lost in a sealed mystical vault for 10,000 years.',icon:[31,4],power: 5,price: getCookiePrice(24)}); + + order=10060; + Game.NewUpgradeCookie({name:'Pizza',desc:'What is a pizza if not a large, chewy cookie, frosted with a rather exuberant tomato & cheese icing? Not a cookie, that\'s what.',icon:[31,9],require:'Box of not cookies', power:5,price: Math.pow(10,44)}); + + order=10050; + Game.NewUpgradeCookie({name:'Crackers',desc:'These are the non-flavored kind with no salt added. Really just a judgement-free wheat square begging to have bits of ham and spreadable cheese piled onto it, its main contribution being "crunchy".',icon:[30,9],require:'Box of maybe cookies', power:4,price: Math.pow(10,45)}); + + order=10030; + Game.NewUpgradeCookie({name:'Havabreaks',desc:'You can snap the sections neatly or just bite into the whole thing like some kind of lunatic. Some oversea countries manufacture these in hundreds of unique flavors, such as green tea, lobster bisque, and dark chocolate.',icon:[31,3],require:'Box of brand biscuits',power: 2, price: 999999999999999999999999999*5}); + + order=20000; + new Game.Upgrade('Kitten executives','You gain more CpS the more milk you have.
'+str+'ready to execute whatever and whoever you\'d like, sir',900000000000000000000000000000000000000000000,Game.GetIcon('Kitten',13));Game.last.kitten=1;Game.MakeTiered(Game.last,13,18); + + + order=10020; + Game.NewUpgradeCookie({name:'Chai tea cookies',desc:'Not exactly Captain Picard\'s favorite, but I mean, these will do in a pinch.',icon:[23,32],power: 5,price: getCookiePrice(4)+5});Game.last.order=10020.5685; + + Game.NewUpgradeCookie({name:'Yogurt cookies',desc:'Augmented by the wonders of dairy, these cookies are light and fluffy and just one more thing for the lactose-intolerant to avoid.
Truly for the cultured among us.',icon:[24,32],power: 5,price: getCookiePrice(25)}); + Game.NewUpgradeCookie({name:'Thumbprint cookies',desc:'Filled with jam and sometimes served in little paper cups. No longer admissible as biometric evidence in court. We\'re not having a repeat of that whole mess.',icon:[25,32],power: 5,price: getCookiePrice(26)}); + Game.NewUpgradeCookie({name:'Pizzelle',desc:'Thin, crisp waffle cookies baked in a bespoke iron following an ancient Italian recipe.
These cookies have been around for a long, long time.
These cookies have seen things.',icon:[26,32],power: 5,price: getCookiePrice(27)}); + + order=10030; + Game.NewUpgradeCookie({name:'Zilla wafers',desc:'Popular vanilla-flavored biscuits that somehow keep ending up in banana pudding.
Themed after a beloved radioactive prehistoric monster, for some reason.',icon:[22,32],require:'Box of brand biscuits',power: 2, price: 999999999999999999999999999999*5}); + Game.NewUpgradeCookie({name:'Dim Dams',desc:'Two biscuits joined by chocolate and coated in even more chocolate.
You wonder - which one is the dim, and which one is the dam?',icon:[31,10],require:'Box of brand biscuits',power: 2, price: 999999999999999999999999999999*5}); + + order=10060; + Game.NewUpgradeCookie({name:'Candy',desc:'There are two pillars to the world of sweets : pastries, of course - and candy.
You could make a whole new game just about these, but for now, please enjoy these assorted generic candies.',icon:[30,10],require:'Box of not cookies', power:5,price: Math.pow(10,46)}); + + + order=19000; + new Game.TieredUpgrade('Fortune #001','Cursors are 7% more efficient and 7% cheaper.Fingers are not the only thing you can count on.','Cursor','fortune'); + new Game.TieredUpgrade('Fortune #002','Grandmas are 7% more efficient and 7% cheaper.A wrinkle is a crack in a mundane facade.','Grandma','fortune'); + new Game.TieredUpgrade('Fortune #003','Farms are 7% more efficient and 7% cheaper.The seeds of tomorrow already lie within the seeds of today.','Farm','fortune'); + new Game.TieredUpgrade('Fortune #004','Mines are 7% more efficient and 7% cheaper.Riches from deep under elevate you all the same.','Mine','fortune'); + new Game.TieredUpgrade('Fortune #005','Factories are 7% more efficient and 7% cheaper.True worth is not in what you find, but in what you make.','Factory','fortune'); + new Game.TieredUpgrade('Fortune #006','Banks are 7% more efficient and 7% cheaper.The value of money means nothing to a pocket.','Bank','fortune'); + new Game.TieredUpgrade('Fortune #007','Temples are 7% more efficient and 7% cheaper.Not all guides deserve worship.','Temple','fortune'); + new Game.TieredUpgrade('Fortune #008','Wizard towers are 7% more efficient and 7% cheaper.Magic is about two things - showmanship, and rabbits.','Wizard tower','fortune'); + new Game.TieredUpgrade('Fortune #009','Shipments are 7% more efficient and 7% cheaper.Every mile travelled expands the mind by just as much.','Shipment','fortune'); + new Game.TieredUpgrade('Fortune #010','Alchemy labs are 7% more efficient and 7% cheaper.Don\'t get used to yourself. You\'re gonna have to change.','Alchemy lab','fortune'); + new Game.TieredUpgrade('Fortune #011','Portals are 7% more efficient and 7% cheaper.Every doorway is a gamble. Tread with care.','Portal','fortune'); + new Game.TieredUpgrade('Fortune #012','Time machines are 7% more efficient and 7% cheaper.Do your future self a favor; they\'ll thank you for it.','Time machine','fortune'); + new Game.TieredUpgrade('Fortune #013','Antimatter condensers are 7% more efficient and 7% cheaper.The world is made of what we put into it.','Antimatter condenser','fortune'); + new Game.TieredUpgrade('Fortune #014','Prisms are 7% more efficient and 7% cheaper.Staring at a dazzling light can blind you back to darkness.','Prism','fortune'); + new Game.TieredUpgrade('Fortune #015','Chancemakers are 7% more efficient and 7% cheaper.Don\'t leave to blind chance what you could accomplish with deaf skill.','Chancemaker','fortune'); + new Game.TieredUpgrade('Fortune #016','Fractal engines are 7% more efficient and 7% cheaper.It\'s good to see yourself in others. Remember to see yourself in yourself, too.','Fractal engine','fortune'); + new Game.TieredUpgrade('Fortune #017','Javascript consoles are 7% more efficient and 7% cheaper.If things aren\'t working out for you, rewrite the rules.','Javascript console','fortune'); + + + order=19100; + //note : price for these capped to base price OR 1 day of unbuffed CpS + new Game.Upgrade('Fortune #100','Upgrades and buildings cost -1%; you gain +1% CpS.True wealth is counted in gifts.', + Game.Tiers['fortune'].price*100000,[0,0]);Game.MakeTiered(Game.last,'fortune',10); + Game.last.priceFunc=function(me){return Math.min(me.basePrice,Game.unbuffedCps*60*60*24);} + new Game.Upgrade('Fortune #101','You gain +7% CpS.Some people dream of fortunes; others dream of cookies.',Game.Tiers['fortune'].price*100000000,[0,0]);Game.MakeTiered(Game.last,'fortune',10); + Game.last.priceFunc=function(me){return Math.min(me.basePrice,Game.unbuffedCps*60*60*24);} + new Game.Upgrade('Fortune #102','You gain +1% of your regular CpS while the game is closed (provided you have the Twin Gates of Transcendence heavenly upgrade).Help, I\'m trapped in a browser game!',Game.Tiers['fortune'].price*100000000000,[0,0]);Game.MakeTiered(Game.last,'fortune',10); + Game.last.priceFunc=function(me){return Math.min(me.basePrice,Game.unbuffedCps*60*60*24);} + new Game.Upgrade('Fortune #103','You gain more CpS the more milk you have.Don\'t believe the superstitions; all cats are good luck.',Game.Tiers['fortune'].price*100000000000000,[0,0]);Game.MakeTiered(Game.last,'fortune',18); + Game.last.priceFunc=function(me){return Math.min(me.basePrice,Game.unbuffedCps*60*60*24);} + new Game.Upgrade('Fortune #104','Clicking gains +1% of your CpS.Remember to stay in touch.',Game.Tiers['fortune'].price*100000000000,[0,0]);Game.MakeTiered(Game.last,'fortune',11); + Game.last.priceFunc=function(me){return Math.min(me.basePrice,Game.unbuffedCps*60*60*24);} + + new Game.Upgrade('Fortune cookies','The news ticker may occasionally have fortunes, which may be clicked for something good.These don\'t taste all that great but that\'s not really the point, is it?',77777777777,[29,8]);Game.last.pool='prestige';Game.last.parents=['Distilled essence of redoubled luck']; + + //end of upgrades Game.seasons={ @@ -9638,6 +9913,7 @@ Game.Launch=function() { var me=Game.Upgrades[i]; if ((me.pool=='cookie' || me.pseudoCookie)) Game.cookieUpgrades.push(me); + if (me.tier) Game.Tiers[me.tier].upgrades.push(me); } for (var i in Game.UnlockAt){Game.Upgrades[Game.UnlockAt[i].name].unlockAt=Game.UnlockAt[i];} for (var i in Game.Upgrades){if (Game.Upgrades[i].pool=='prestige') Game.Upgrades[i].order=Game.Upgrades[i].id;} @@ -9645,7 +9921,7 @@ Game.Launch=function() /*var oldPrestigePrices={"Chimera":5764801,"Synergies Vol. I":2525,"Synergies Vol. II":252525,"Label printer":9999}; for (var i in oldPrestigePrices){Game.Upgrades[i].basePrice=oldPrestigePrices[i];}*/ - Game.UpgradePositions={141:[176,-66],181:[-555,-93],253:[-272,-231],254:[-99,-294],255:[-193,-279],264:[48,123],265:[133,154],266:[223,166],267:[305,137],268:[382,85],269:[-640,42],270:[-607,-246],271:[-728,-120],272:[-688,-201],273:[-711,-33],274:[270,-328],275:[317,-439],276:[333,-556],277:[334,-676],278:[333,-796],279:[328,-922],280:[303,-1040],281:[194,-230],282:[-265,212],283:[-321,297],284:[-322,406],285:[-243,501],286:[-403,501],287:[-314,606],288:[-312,-374],289:[-375,-502],290:[-206,-476],291:[453,-745],292:[-375,-651],293:[-399,-794],323:[-86,120],325:[192,-1127],326:[-328,-158],327:[-192,290],328:[-3,237],329:[92,376],353:[121,-326],354:[77,-436],355:[64,-548],356:[57,-673],357:[52,-793],358:[58,-924],359:[82,-1043],360:[-188,408],362:[158,289],363:[-30,-30],364:[-232,-730],365:[-77,349],368:[-82,-532],393:[196,-714],394:[197,-964],395:[-143,-140],396:[-264,-889],397:[-69,563],408:[-204,-1036],409:[-72,-1152],410:[-70,-1328],411:[-388,137],412:[-470,253],413:[-482,389],449:[-367,-1113],450:[-334,-1214],451:[-278,-1303],495:[-402,-966],496:[200,49],505:[-545,-570],520:[-279,-8],537:[-937,-149],539:[-508,-1270],540:[-629,-1291],541:[-594,-1186],542:[-548,-1374],561:[300,-17],562:[52,646],591:[154,744],592:[180,608],}; + Game.UpgradePositions={141:[176,-66],181:[-555,-93],253:[-272,-231],254:[-99,-294],255:[-193,-279],264:[48,123],265:[133,154],266:[223,166],267:[305,137],268:[382,85],269:[-640,42],270:[-614,-268],271:[-728,-120],272:[-688,-205],273:[-711,-31],274:[270,-328],275:[317,-439],276:[333,-556],277:[334,-676],278:[333,-796],279:[328,-922],280:[303,-1040],281:[194,-230],282:[-265,212],283:[-321,297],284:[-322,406],285:[-243,501],286:[-403,501],287:[-314,606],288:[-312,-374],289:[-375,-502],290:[-206,-476],291:[453,-745],292:[-375,-651],293:[-399,-794],323:[-86,120],325:[192,-1127],326:[-328,-158],327:[-192,290],328:[-3,237],329:[92,376],353:[121,-326],354:[77,-436],355:[64,-548],356:[57,-673],357:[52,-793],358:[58,-924],359:[82,-1043],360:[-188,408],362:[158,289],363:[-30,-30],364:[-232,-730],365:[-77,349],368:[-82,-532],393:[196,-714],394:[197,-964],395:[-143,-140],396:[-264,-889],397:[-69,563],408:[-204,-1036],409:[-72,-1152],410:[-70,-1328],411:[-388,137],412:[-470,253],413:[-482,389],449:[-367,-1113],450:[-334,-1214],451:[-278,-1303],495:[-402,-966],496:[200,49],505:[-545,-570],520:[-279,-8],537:[-907,-131],539:[-508,-1270],540:[-629,-1291],541:[-594,-1186],542:[-548,-1374],561:[300,-17],562:[52,646],591:[154,744],592:[180,608],643:[-121,710],}; for (var i in Game.UpgradePositions) {Game.UpgradesById[i].posX=Game.UpgradePositions[i][0];Game.UpgradesById[i].posY=Game.UpgradePositions[i][1];} @@ -9758,13 +10034,13 @@ Game.Launch=function() return achiev; } - Game.thresholdIcons=[0,1,2,3,4,5,6,7,8,9,10,11,18,19,20,21,22,23,24,25,26,27,28,29,21,22,23,24,25,26,27,28,29,30]; + Game.thresholdIcons=[0,1,2,3,4,5,6,7,8,9,10,11,18,19,20,21,22,23,24,25,26,27,28,29,21,22,23,24,25,26,27,28,29,21,22,23,24,25,26,27,28,29]; Game.BankAchievements=[]; Game.BankAchievement=function(name) { var threshold=Math.pow(10,Math.floor(Game.BankAchievements.length*1.5+2)); if (Game.BankAchievements.length==0) threshold=1; - var achiev=new Game.Achievement(name,'Bake '+Beautify(threshold)+' cookie'+(threshold==1?'':'s')+' in one ascension.',[Game.thresholdIcons[Game.BankAchievements.length],(Game.BankAchievements.length>23?2:5)]); + var achiev=new Game.Achievement(name,'Bake '+Beautify(threshold)+' cookie'+(threshold==1?'':'s')+' in one ascension.',[Game.thresholdIcons[Game.BankAchievements.length],(Game.BankAchievements.length>32?1:Game.BankAchievements.length>23?2:5)]); achiev.threshold=threshold; achiev.order=100+Game.BankAchievements.length*0.01; Game.BankAchievements.push(achiev); @@ -9775,7 +10051,7 @@ Game.Launch=function() { var threshold=Math.pow(10,Math.floor(Game.CpsAchievements.length*1.2)); //if (Game.CpsAchievements.length==0) threshold=1; - var achiev=new Game.Achievement(name,'Bake '+Beautify(threshold)+' cookie'+(threshold==1?'':'s')+' per second.',[Game.thresholdIcons[Game.CpsAchievements.length],(Game.CpsAchievements.length>23?2:5)]); + var achiev=new Game.Achievement(name,'Bake '+Beautify(threshold)+' cookie'+(threshold==1?'':'s')+' per second.',[Game.thresholdIcons[Game.CpsAchievements.length],(Game.CpsAchievements.length>32?1:Game.CpsAchievements.length>23?2:5)]); achiev.threshold=threshold; achiev.order=200+Game.CpsAchievements.length*0.01; Game.CpsAchievements.push(achiev); @@ -10406,6 +10682,3163 @@ Game.Launch=function() + Game.CpsAchievement('Running with scissors'); + Game.CpsAchievement('Rarefied air'); + Game.CpsAchievement('Push it to the limit'); + Game.CpsAchievement('Green cookies sleep furiously'); + + Game.BankAchievement('Panic! at Nabisco'); + Game.BankAchievement('Bursting at the seams'); + Game.BankAchievement('Just about full'); + Game.BankAchievement('Hungry for more'); + + order=1000; + new Game.Achievement('All the other kids with the pumped up clicks','Make 100,000,000,000,000,000,000,000 cookies from clicking.',[11,28]); + new Game.Achievement('One...more...click...','Make 10,000,000,000,000,000,000,000,000 cookies from clicking.',[11,30]); + + order=61515; + new Game.Achievement('Botany enthusiast','Harvest 100 mature garden plants.',[26,20]); + new Game.Achievement('Green, aching thumb','Harvest 1000 mature garden plants.',[27,20]); + new Game.Achievement('In the garden of Eden (baby)','Fill every tile of the biggest garden plot with plants.Isn\'t tending to those precious little plants just so rock and/or roll?',[28,20]); + + new Game.Achievement('Keeper of the conservatory','Unlock every garden seed.',[25,20]); + new Game.Achievement('Seedless to nay','Convert a complete seed log into sugar lumps by sacrificing your garden to the sugar hornets.Owning this achievement makes seeds 5% cheaper, plants mature 5% sooner, and plant upgrades drop 5% more.',[29,20]); + + order=30050; + new Game.Achievement('You get nothing','Ascend with 1 undecillion cookies baked.Good day sir!',[29,6]); + new Game.Achievement('Humble rebeginnings','Ascend with 1 duodecillion cookies baked.Started from the bottom, now we\'re here.',[29,6]); + new Game.Achievement('The end of the world','Ascend with 1 tredecillion cookies baked.(as we know it)',[21,25]); + new Game.Achievement('Oh, you\'re back','Ascend with 1 quattuordecillion cookies baked.Missed us?',[21,25]); + new Game.Achievement('Lazarus','Ascend with 1 quindecillion cookies baked.All rise.',[21,25]); + + Game.CpsAchievement('Leisurely pace'); + Game.CpsAchievement('Hypersonic'); + + Game.BankAchievement('Feed me, Orteil'); + Game.BankAchievement('And then what?'); + + order=7002; + new Game.Achievement('Tricentennial and a half','Have at least 350 of everything.(it\'s free real estate)',[21,26]); + new Game.Achievement('Quadricentennial','Have at least 400 of everything.You\'ve had to do horrible things to get this far.',[22,26]); + new Game.Achievement('Quadricentennial and a half','Have at least 450 of everything.
Horrible... horrible things.At this point, you might just be compensating for something.',[23,26]); + + new Game.Achievement('Quincentennial','Have at least 500 of everything.Some people would say you\'re halfway there.',[29,25]); + + + order=21100; + new Game.Achievement('Maillard reaction','Harvest a caramelized sugar lump.',[29,27]); + + order=30250; + new Game.Achievement('When the cookies ascend just right','Ascend with exactly 1,000,000,000,000 cookies.',[25,7]);Game.last.pool='shadow';//this achievement is shadow because it is only achievable through blind luck or reading external guides; this may change in the future + + + order=1050; + new Game.Achievement('With her finger and her thumb','Have 600 cursors.',[0,16]); + + order=1100;Game.TieredAchievement('But wait \'til you get older','Have 550 grandmas.','Grandma',12); + order=1200;Game.TieredAchievement('Sharpest tool in the shed','Have 500 farms.','Farm',11); + order=1300;Game.TieredAchievement('Hey now, you\'re a rock','Have 500 mines.','Mine',11); + order=1400;Game.TieredAchievement('Break the mold','Have 500 factories.','Factory',11); + order=1425;Game.TieredAchievement('Get the show on, get paid','Have 500 banks.','Bank',11); + order=1450;Game.TieredAchievement('My world\'s on fire, how about yours','Have 500 temples.','Temple',11); + order=1475;Game.TieredAchievement('The meteor men beg to differ','Have 500 wizard towers.','Wizard tower',11); + order=1500;Game.TieredAchievement('Only shooting stars','Have 500 shipments.','Shipment',11); + order=1600;Game.TieredAchievement('We could all use a little change','Have 500 alchemy labs.','Alchemy lab',11);//"all that glitters is gold" was already an achievement + order=1700;Game.TieredAchievement('Your brain gets smart but your head gets dumb','Have 500 portals.','Portal',11); + order=1800;Game.TieredAchievement('The years start coming','Have 500 time machines.','Time machine',11); + order=1900;Game.TieredAchievement('What a concept','Have 500 antimatter condensers.','Antimatter condenser',11); + order=2000;Game.TieredAchievement('You\'ll never shine if you don\'t glow','Have 500 prisms.','Prism',11); + order=2100;Game.TieredAchievement('You\'ll never know if you don\'t go','Have 500 chancemakers.','Chancemaker',11); + + order=2200; + Game.TieredAchievement('Self-contained','Have 1 fractal engine.','Fractal engine',1); + Game.TieredAchievement('Threw you for a loop','Have 50 fractal engines.','Fractal engine',2); + Game.TieredAchievement('The sum of its parts','Have 100 fractal engines.','Fractal engine',3); + Game.TieredAchievement('Bears repeating','Have 150 fractal engines.
We do not care for those people and their reckless sense of unchecked optimism.Where did these come from?','Fractal engine',4); + Game.TieredAchievement('More of the same','Have 200 fractal engines.','Fractal engine',5); + Game.TieredAchievement('Last recurse','Have 250 fractal engines.','Fractal engine',6); + Game.TieredAchievement('Out of one, many','Have 300 fractal engines.','Fractal engine',7); + Game.TieredAchievement('An example of recursion','Have 350 fractal engines.','Fractal engine',8); + Game.TieredAchievement('For more information on this achievement, please refer to its title','Have 400 fractal engines.','Fractal engine',9); + Game.TieredAchievement('I\'m so meta, even this achievement','Have 450 fractal engines.','Fractal engine',10); + Game.TieredAchievement('Never get bored','Have 500 fractal engines.','Fractal engine',11); + + order=2220; + Game.ProductionAchievement('The needs of the many','Fractal engine',1); + Game.ProductionAchievement('Eating its own','Fractal engine',2); + Game.ProductionAchievement('We must go deeper','Fractal engine',3); + + new Game.Achievement('Sierpinski rhomboids','Reach level 10 fractal engines.',[20,26]);Game.Objects['Fractal engine'].levelAchiev10=Game.last; + + Game.CpsAchievement('Gotta go fast'); + Game.BankAchievement('I think it\'s safe to say you\'ve got it made'); + + order=6000; + new Game.Achievement('Renaissance baker','Own 400 upgrades and 4000 buildings.If you have seen further, it is by standing on the shoulders of giants - a mysterious species of towering humanoids until now thought long-extinct.',[10,10]); + + order=1150; + new Game.Achievement('Veteran','Own at least 14 grandma types.14\'s a crowd!',[10,9]); + + order=10000; + new Game.Achievement('Thick-skinned','Have your reinforced membrane protect the shimmering veil.',[7,10]); + + + order=2300; + Game.TieredAchievement('F12','Have 1 javascript console.','Javascript console',1); + Game.TieredAchievement('Variable success','Have 50 javascript consoles.','Javascript console',2); + Game.TieredAchievement('No comments','Have 100 javascript consoles.','Javascript console',3); + Game.TieredAchievement('Up to code','Have 150 javascript consoles.','Javascript console',4); + Game.TieredAchievement('Works on my machine','Have 200 javascript consoles.','Javascript console',5); + Game.TieredAchievement('Technical debt','Have 250 javascript consoles.','Javascript console',6); + Game.TieredAchievement('Mind your language','Have 300 javascript consoles.','Javascript console',7); + Game.TieredAchievement('Inconsolable','Have 350 javascript consoles.','Javascript console',8); + Game.TieredAchievement('Closure','Have 400 javascript consoles.','Javascript console',9); + Game.TieredAchievement('Dude what if we\'re all living in a simulation like what if we\'re all just code on a computer somewhere','Have 450 javascript consoles.','Javascript console',10); + Game.TieredAchievement('Taking the back streets','Have 500 javascript consoles.','Javascript console',11); + + order=2320; + Game.ProductionAchievement('Inherited prototype','Javascript console',1); + Game.ProductionAchievement('A model of document object','Javascript console',2); + Game.ProductionAchievement('First-class citizen','Javascript console',3); + + new Game.Achievement('Alexandria','Reach level 10 javascript consoles.',[32,26]);Game.Objects['Javascript console'].levelAchiev10=Game.last; + + Game.CpsAchievement('Bake him away, toys'); + Game.CpsAchievement('You\'re #1 so why try harder'); + Game.CpsAchievement('Haven\'t even begun to peak'); + Game.BankAchievement('A sometimes food'); + Game.BankAchievement('Not enough of a good thing'); + Game.BankAchievement('Horn of plenty'); + + order=30050; + new Game.Achievement('Smurf account','Ascend with 1 sexdecillion cookies baked.It\'s like you just appeared out of the blue!',[21,32]); + new Game.Achievement('If at first you don\'t succeed','Ascend with 1 septendecillion cookies baked.If at first you don\'t succeed, try, try, try again.',[21,32]); + + order=33000; + new Game.Achievement('O Fortuna','Own every fortune upgrade.Owning this achievement makes fortunes appear twice as often; fortune upgrades also have a 40% chance to carry over after ascending.',[29,8]); + + //end of achievements + + /*===================================================================================== + BUFFS + =======================================================================================*/ + + Game.buffs=[];//buffs currently in effect by name + Game.buffsN=0; + Game.buffsL=l('buffs'); + Game.gainBuff=function(type,time,arg1,arg2,arg3) + { + type=Game.buffTypesByName[type]; + var obj=type.func(time,arg1,arg2,arg3); + obj.type=type; + obj.arg1=arg1; + obj.arg2=arg2; + obj.arg3=arg3; + + var buff={ + visible:true, + time:0, + name:'???', + desc:'', + icon:[0,0] + }; + if (Game.buffs[obj.name])//if there is already a buff in effect with this name + { + var buff=Game.buffs[obj.name]; + if (obj.max) buff.time=Math.max(obj.time,buff.time);//new duration is max of old and new + if (obj.add) buff.time+=obj.time;//new duration is old + new + if (!obj.max && !obj.add) buff.time=obj.time;//new duration is set to new + buff.maxTime=buff.time; + } + else//create new buff + { + for (var i in obj)//paste parameters onto buff + {buff[i]=obj[i];} + buff.maxTime=buff.time; + Game.buffs[buff.name]=buff; + buff.id=Game.buffsN; + + //create dom + Game.buffsL.innerHTML=Game.buffsL.innerHTML+'
But isn\'t that the definition of insanity?' + ,'left',true):'')+' style="opacity:1;float:none;display:block;'+(buff.icon[2]?'background-image:url('+buff.icon[2]+');':'')+'background-position:'+(-buff.icon[0]*48)+'px '+(-buff.icon[1]*48)+'px;">'+buff.name+'
'+buff.desc+'
Didn\'t make sense not to click for fun.';Game.last.desc=BeautifyInText(Game.last.baseDesc); + Game.CpsAchievement('I don\'t know if you\'ve noticed but all these icons are very slightly off-center'); + Game.CpsAchievement('The proof of the cookie is in the baking');Game.last.baseDesc+='
How can you have any cookies if you don\'t bake your dough?';Game.last.desc=BeautifyInText(Game.last.baseDesc); + Game.CpsAchievement('If it\'s worth doing, it\'s worth overdoing'); + + Game.BankAchievement('The dreams in which I\'m baking are the best I\'ve ever had'); + Game.BankAchievement('Set for life'); + + order=1200;Game.TieredAchievement('You and the beanstalk','Have 350 farms.','Farm',8); + order=1300;Game.TieredAchievement('Romancing the stone','Have 350 mines.','Mine',8); + order=1400;Game.TieredAchievement('Ex machina','Have 350 factories.','Factory',8); + order=1425;Game.TieredAchievement('And I need it now','Have 350 banks.','Bank',8); + order=1450;Game.TieredAchievement('Pray on the weak','Have 350 temples.','Temple',8); + order=1475;Game.TieredAchievement('It\'s a kind of magic','Have 350 wizard towers.','Wizard tower',8); + order=1500;Game.TieredAchievement('Make it so','Have 350 shipments.','Shipment',8); + order=1600;Game.TieredAchievement('All that glitters is gold','Have 350 alchemy labs.','Alchemy lab',8); + order=1700;Game.TieredAchievement('H̸̷͓̳̳̯̟͕̟͍͍̣͡ḛ̢̦̰̺̮̝͖͖̘̪͉͘͡ ̠̦͕̤̪̝̥̰̠̫̖̣͙̬͘ͅC̨̦̺̩̲̥͉̭͚̜̻̝̣̼͙̮̯̪o̴̡͇̘͎̞̲͇̦̲͞͡m̸̩̺̝̣̹̱͚̬̥̫̳̼̞̘̯͘ͅẹ͇̺̜́̕͢s̶̙̟̱̥̮̯̰̦͓͇͖͖̝͘͘͞','Have 350 portals.','Portal',8); + order=1800;Game.TieredAchievement('Way back then','Have 350 time machines.','Time machine',8); + order=1900;Game.TieredAchievement('Exotic matter','Have 350 antimatter condensers.','Antimatter condenser',8); + order=2000;Game.TieredAchievement('At the end of the tunnel','Have 350 prisms.','Prism',8); + + + + order=1070; + Game.ProductionAchievement('Click (starring Adam Sandler)','Cursor',3,0,7); + order=1120; + Game.ProductionAchievement('Frantiquities','Grandma',3,0,6); + order=1220; + Game.ProductionAchievement('Overgrowth','Farm',3); + order=1320; + Game.ProductionAchievement('Sedimentalism','Mine',3); + order=1420; + Game.ProductionAchievement('Labor of love','Factory',3); + order=1445; + Game.ProductionAchievement('Reverse funnel system','Bank',3); + order=1470; + Game.ProductionAchievement('Thus spoke you','Temple',3); + order=1495; + Game.ProductionAchievement('Manafest destiny','Wizard tower',3); + order=1520; + Game.ProductionAchievement('Neither snow nor rain nor heat nor gloom of night','Shipment',3); + order=1620; + Game.ProductionAchievement('I\'ve got the Midas touch','Alchemy lab',3); + order=1720; + Game.ProductionAchievement('Which eternal lie','Portal',3); + order=1820; + Game.ProductionAchievement('Déjà vu','Time machine',3); + order=1920; + Game.ProductionAchievement('Powers of Ten','Antimatter condenser',3); + order=2020; + Game.ProductionAchievement('Now the dark days are gone','Prism',3); + + order=1070; + new Game.Achievement('Freaky jazz hands','Reach level 10 cursors.',[0,26]);Game.Objects['Cursor'].levelAchiev10=Game.last; + order=1120; + new Game.Achievement('Methuselah','Reach level 10 grandmas.',[1,26]);Game.Objects['Grandma'].levelAchiev10=Game.last; + order=1220; + new Game.Achievement('Huge tracts of land','Reach level 10 farms.',[2,26]);Game.Objects['Farm'].levelAchiev10=Game.last; + order=1320; + new Game.Achievement('D-d-d-d-deeper','Reach level 10 mines.',[3,26]);Game.Objects['Mine'].levelAchiev10=Game.last; + order=1420; + new Game.Achievement('Patently genius','Reach level 10 factories.',[4,26]);Game.Objects['Factory'].levelAchiev10=Game.last; + order=1445; + new Game.Achievement('A capital idea','Reach level 10 banks.',[15,26]);Game.Objects['Bank'].levelAchiev10=Game.last; + order=1470; + new Game.Achievement('It belongs in a bakery','Reach level 10 temples.',[16,26]);Game.Objects['Temple'].levelAchiev10=Game.last; + order=1495; + new Game.Achievement('Motormouth','Reach level 10 wizard towers.',[17,26]);Game.Objects['Wizard tower'].levelAchiev10=Game.last; + order=1520; + new Game.Achievement('Been there done that','Reach level 10 shipments.',[5,26]);Game.Objects['Shipment'].levelAchiev10=Game.last; + order=1620; + new Game.Achievement('Phlogisticated substances','Reach level 10 alchemy labs.',[6,26]);Game.Objects['Alchemy lab'].levelAchiev10=Game.last; + order=1720; + new Game.Achievement('Bizarro world','Reach level 10 portals.',[7,26]);Game.Objects['Portal'].levelAchiev10=Game.last; + order=1820; + new Game.Achievement('The long now','Reach level 10 time machines.',[8,26]);Game.Objects['Time machine'].levelAchiev10=Game.last; + order=1920; + new Game.Achievement('Chubby hadrons','Reach level 10 antimatter condensers.',[13,26]);Game.Objects['Antimatter condenser'].levelAchiev10=Game.last; + order=2020; + new Game.Achievement('Palettable','Reach level 10 prisms.',[14,26]);Game.Objects['Prism'].levelAchiev10=Game.last; + + order=61470; + order=61495; + new Game.Achievement('Bibbidi-bobbidi-boo','Cast 9 spells.',[21,11]); + new Game.Achievement('I\'m the wiz','Cast 99 spells.',[22,11]); + new Game.Achievement('A wizard is you','Cast 999 spells.
I\'m a what?',[29,11]); + + order=10000; + new Game.Achievement('Four-leaf cookie','Have 4 golden cookies simultaneously.
Fairly rare, considering cookies don\'t even have leaves.',[27,6]);Game.last.pool='shadow'; + + order=2100; + Game.TieredAchievement('Lucked out','Have 1 chancemaker.','Chancemaker',1); + Game.TieredAchievement('What are the odds','Have 50 chancemakers.','Chancemaker',2); + Game.TieredAchievement('Grandma needs a new pair of shoes','Have 100 chancemakers.','Chancemaker',3); + Game.TieredAchievement('Million to one shot, doc','Have 150 chancemakers.','Chancemaker',4); + Game.TieredAchievement('As luck would have it','Have 200 chancemakers.','Chancemaker',5); + Game.TieredAchievement('Ever in your favor','Have 250 chancemakers.','Chancemaker',6); + Game.TieredAchievement('Be a lady','Have 300 chancemakers.','Chancemaker',7); + Game.TieredAchievement('Dicey business','Have 350 chancemakers.','Chancemaker',8); + + order=2120; + Game.ProductionAchievement('Fingers crossed','Chancemaker',1); + Game.ProductionAchievement('Just a statistic','Chancemaker',2); + Game.ProductionAchievement('Murphy\'s wild guess','Chancemaker',3); + + new Game.Achievement('Let\'s leaf it at that','Reach level 10 chancemakers.',[19,26]);Game.Objects['Chancemaker'].levelAchiev10=Game.last; + + order=1000; + new Game.Achievement('The ultimate clickdown','Make 1,000,000,000,000,000,000,000 cookies from clicking.
(of ultimate destiny.)',[11,19]); + + + order=1100; + Game.TieredAchievement('Aged well','Have 400 grandmas.','Grandma',9); + Game.TieredAchievement('101st birthday','Have 450 grandmas.','Grandma',10); + Game.TieredAchievement('Defense of the ancients','Have 500 grandmas.','Grandma',11); + order=1200;Game.TieredAchievement('Harvest moon','Have 400 farms.','Farm',9); + order=1300;Game.TieredAchievement('Mine?','Have 400 mines.','Mine',9); + order=1400;Game.TieredAchievement('In full gear','Have 400 factories.','Factory',9); + order=1425;Game.TieredAchievement('Treacle tart economics','Have 400 banks.','Bank',9); + order=1450;Game.TieredAchievement('Holy cookies, grandma!','Have 400 temples.','Temple',9); + order=1475;Game.TieredAchievement('The Prestige','Have 400 wizard towers.
(Unrelated to the Cookie Clicker feature of the same name.)','Wizard tower',9); + order=1500;Game.TieredAchievement('That\'s just peanuts to space','Have 400 shipments.','Shipment',9); + order=1600;Game.TieredAchievement('Worth its weight in lead','Have 400 alchemy labs.','Alchemy lab',9); + order=1700;Game.TieredAchievement('What happens in the vortex stays in the vortex','Have 400 portals.','Portal',9); + order=1800;Game.TieredAchievement('Invited to yesterday\'s party','Have 400 time machines.','Time machine',9); + order=1900;Game.TieredAchievement('Downsizing','Have 400 antimatter condensers.','Antimatter condenser',9);//the trailer got me really hyped up but i've read some pretty bad reviews. is it watchable ? is it worth seeing ? i don't mind matt damon + order=2000;Game.TieredAchievement('My eyes','Have 400 prisms.','Prism',9); + order=2100;Game.TieredAchievement('Maybe a chance in hell, actually','Have 400 chancemakers.','Chancemaker',9); + + order=1200;Game.TieredAchievement('Make like a tree','Have 450 farms.','Farm',10); + order=1300;Game.TieredAchievement('Cave story','Have 450 mines.','Mine',10); + order=1400;Game.TieredAchievement('In-cog-neato','Have 450 factories.','Factory',10); + order=1425;Game.TieredAchievement('Save your breath because that\'s all you\'ve got left','Have 450 banks.','Bank',10); + order=1450;Game.TieredAchievement('Vengeful and almighty','Have 450 temples.','Temple',10); + order=1475;Game.TieredAchievement('Spell it out for you','Have 450 wizard towers.','Wizard tower',10); + order=1500;Game.TieredAchievement('Space space space space space','Have 450 shipments.
It\'s too far away...','Shipment',10); + order=1600;Game.TieredAchievement('Don\'t get used to yourself, you\'re gonna have to change','Have 450 alchemy labs.','Alchemy lab',10); + order=1700;Game.TieredAchievement('Objects in the mirror dimension are closer than they appear','Have 450 portals.','Portal',10); + order=1800;Game.TieredAchievement('Groundhog day','Have 450 time machines.','Time machine',10); + order=1900;Game.TieredAchievement('A matter of perspective','Have 450 antimatter condensers.','Antimatter condenser',10); + order=2000;Game.TieredAchievement('Optical illusion','Have 450 prisms.','Prism',10); + order=2100;Game.TieredAchievement('Jackpot','Have 450 chancemakers.','Chancemaker',10); + + order=36000; + new Game.Achievement('So much to do so much to see','Manage a cookie legacy for at least a year.
Thank you so much for playing Cookie Clicker!',[23,11]);Game.last.pool='shadow'; + + + Game.CpsAchievement('Running with scissors'); Game.CpsAchievement('Rarefied air'); Game.CpsAchievement('Push it to the limit'); @@ -12966,392 +16399,4 @@ Game.Launch=function() if (Game.reindeerClicked>=1) Game.Win('Oh deer'); if (Game.reindeerClicked>=50) Game.Win('Sleigh of hand'); - if (Game.reindeerClicked>=200) Game.Win('Reindeer sleigher'); - - if (buildingsOwned>=100) Game.Win('Builder'); - if (buildingsOwned>=500) Game.Win('Architect'); - if (buildingsOwned>=1000) Game.Win('Engineer'); - if (buildingsOwned>=2000) Game.Win('Lord of Constructs'); - if (Game.UpgradesOwned>=20) Game.Win('Enhancer'); - if (Game.UpgradesOwned>=50) Game.Win('Augmenter'); - if (Game.UpgradesOwned>=100) Game.Win('Upgrader'); - if (Game.UpgradesOwned>=200) Game.Win('Lord of Progress'); - if (buildingsOwned>=3000 && Game.UpgradesOwned>=300) Game.Win('Polymath'); - if (buildingsOwned>=4000 && Game.UpgradesOwned>=400) Game.Win('Renaissance baker'); - - if (Game.cookiesEarned>=10000000000000 && !Game.HasAchiev('You win a cookie')) {Game.Win('You win a cookie');Game.Earn(1);} - - if (Game.shimmerTypes['golden'].n>=4) Game.Win('Four-leaf cookie'); - - var grandmas=0; - for (var i in Game.GrandmaSynergies) - { - if (Game.Has(Game.GrandmaSynergies[i])) grandmas++; - } - if (!Game.HasAchiev('Elder') && grandmas>=7) Game.Win('Elder'); - if (!Game.HasAchiev('Veteran') && grandmas>=14) Game.Win('Veteran'); - if (Game.Objects['Grandma'].amount>=6 && !Game.Has('Bingo center/Research facility') && Game.HasAchiev('Elder')) Game.Unlock('Bingo center/Research facility'); - if (Game.pledges>0) Game.Win('Elder nap'); - if (Game.pledges>=5) Game.Win('Elder slumber'); - if (Game.pledges>=10) Game.Unlock('Sacrificial rolling pins'); - if (Game.Objects['Cursor'].amount+Game.Objects['Grandma'].amount>=777) Game.Win('The elder scrolls'); - - for (var i in Game.Objects) - { - var it=Game.Objects[i]; - for (var ii in it.productionAchievs) - { - if (it.totalCookies>=it.productionAchievs[ii].pow) Game.Win(it.productionAchievs[ii].achiev.name); - } - } - - if (!Game.HasAchiev('Cookie-dunker') && Game.LeftBackground && Game.milkProgress>0.1 && (Game.LeftBackground.canvas.height*0.4+256/2-16)>((1-Game.milkHd)*Game.LeftBackground.canvas.height)) Game.Win('Cookie-dunker'); - //&& l('bigCookie').getBoundingClientRect().bottom>l('milk').getBoundingClientRect().top+16 && Game.milkProgress>0.1) Game.Win('Cookie-dunker'); - - for (var i in Game.customChecks) {Game.customChecks[i]();} - } - - Game.cookiesd+=(Game.cookies-Game.cookiesd)*0.3; - - if (Game.storeToRefresh) Game.RefreshStore(); - if (Game.upgradesToRebuild) Game.RebuildUpgrades(); - - Game.updateShimmers(); - Game.updateBuffs(); - - Game.UpdateTicker(); - } - - if (Game.T%(Game.fps*2)==0) - { - var title='Cookie Clicker'; - if (Game.season=='fools') title='Cookie Baker'; - document.title=(Game.OnAscend?'Ascending! ':'')+Beautify(Game.cookies)+' '+(Game.cookies==1?'cookie':'cookies')+' - '+title; - } - if (Game.T%15==0) - { - //written through the magic of "hope for the best" maths - var chipsOwned=Game.HowMuchPrestige(Game.cookiesReset); - var ascendNowToOwn=Math.floor(Game.HowMuchPrestige(Game.cookiesReset+Game.cookiesEarned)); - var ascendNowToGet=ascendNowToOwn-Math.floor(chipsOwned); - var nextChipAt=Game.HowManyCookiesReset(Math.floor(chipsOwned+ascendNowToGet+1))-Game.HowManyCookiesReset(Math.floor(chipsOwned+ascendNowToGet)); - var cookiesToNext=Game.HowManyCookiesReset(ascendNowToOwn+1)-(Game.cookiesEarned+Game.cookiesReset); - var percent=1-(cookiesToNext/nextChipAt); - - //fill the tooltip under the Legacy tab - var date=new Date(); - date.setTime(Date.now()-Game.startDate); - var timeInSeconds=date.getTime()/1000; - var startDate=Game.sayTime(timeInSeconds*Game.fps,-1); - - var str=''; - str+='You\'ve been on this run for '+(startDate==''?'not very long':(startDate))+'.