43a44

> what=Math.round ( what* 100000 ) / 100000 ;//get rid of weird rounding errors

46,48c47,51

< var integer=what;

< var floater=Math.round ( integer*Math.pow ( 10 ,floats ) -Math.floor ( integer ) *Math.pow ( 10 ,floats ) ) ;

< str=Beautify ( integer ) + ( floater? ( '.'+floater ) :'' ) ;

---

> var floater=what-Math.floor ( what ) ;

> floater=Math.round ( floater* 100000 ) / 100000 ;//get rid of weird rounding errors

> var floatPresent=floater? 1 : 0 ;

> floater= ( floater.toString ( ) +'0000000' ) .slice ( 2 , 2 +floats ) ;//yes this is hacky ( but it works )

> str=Beautify ( Math.floor ( what ) ) + ( floatPresent? ( '.'+floater ) :'' ) ;

61a65,66

>

>

171c176

< Game.version= 1.035 ;

---

> Game.version= 1.036 ;

268c273

< Game.startDate+//parseInt ( new Date ( ) .getTime ( ) ) +

---

> parseInt ( Game.startDate ) +

278,279c283,284

< str+=parseInt ( Math.floor ( Game.cookies ) ) +';'+

< parseInt ( Math.floor ( Game.cookiesEarned ) ) +';'+

---

> str+=parseFloat ( Math.floor ( Game.cookies ) ) +';'+

> parseFloat ( Math.floor ( Game.cookiesEarned ) ) +';'+

282c287

< parseInt ( Math.floor ( Game.handmadeCookies ) ) +';'+

---

> parseFloat ( Math.floor ( Game.handmadeCookies ) ) +';'+

286c291

< parseInt ( Math.floor ( Game.cookiesReset ) ) +';'+

---

> parseFloat ( Math.floor ( Game.cookiesReset ) ) +';'+

379c384

< Game.cookies=parseInt ( spl [ 0 ] ) ;Game.cookiesEarned=parseInt ( spl [ 1 ] ) ;

---

> Game.cookies=parseFloat ( spl [ 0 ] ) ;Game.cookiesEarned=parseFloat ( spl [ 1 ] ) ;

382c387

< Game.handmadeCookies=spl [ 4 ] ?parseInt ( spl [ 4 ] ) : 0 ;

---

> Game.handmadeCookies=spl [ 4 ] ?parseFloat ( spl [ 4 ] ) : 0 ;

386c391

< Game.cookiesReset=spl [ 8 ] ?parseInt ( spl [ 8 ] ) : 0 ;

---

> Game.cookiesReset=spl [ 8 ] ?parseFloat ( spl [ 8 ] ) : 0 ;

399c404

< var mestr=spl [ i ] .split ( ',' ) ;

---

> var mestr=spl [ i ] .toString ( ) .split ( ',' ) ;

490,491d494

<

< Game.prestige= [ ] ;

530a534,538

>

> Game.goldenCookie.reset ( ) ;

>

> Game.prestige= [ ] ;

>

558,561c566,569

< if ( Game.cookies>= 1000000 ) Game.Win ( 'Sacrifice' ) ;

< if ( Game.cookies>= 1000000000 ) Game.Win ( 'Oblivion' ) ;

< if ( Game.cookies>= 1000000000000 ) Game.Win ( 'From scratch' ) ;

< if ( Game.cookies>= 1000000000000000 ) Game.Win ( 'Nihilism' ) ;

---

> if ( Game.cookiesEarned>= 1000000 ) Game.Win ( 'Sacrifice' ) ;

> if ( Game.cookiesEarned>= 1000000000 ) Game.Win ( 'Oblivion' ) ;

> if ( Game.cookiesEarned>= 1000000000000 ) Game.Win ( 'From scratch' ) ;

> if ( Game.cookiesEarned>= 1000000000000000 ) Game.Win ( 'Nihilism' ) ;

567c575,576

< Game.goldenClicks= 0 ;

---

> //Game.goldenClicks= 0 ;

> //Game.missedGoldenClicks= 0 ;

569d577

< Game.missedGoldenClicks= 0 ;

607a616

> Game.goldenCookie.reset ( ) ;

624c633

< if ( confirm ( 'Do you REALLY want to hard-reset?

( you will lose your progress, your achievements, and your prestige! ) ' ) )

---

> if ( confirm ( 'Do you REALLY want to wipe your save?

( you will lose your progress, your achievements, and your prestige! ) ' ) )

633a643,644

> Game.goldenClicks= 0 ;

> Game.missedGoldenClicks= 0 ;

700a712,718

> Game.HowMuchPrestige=function ( cookies )

> {

> var prestige=cookies/ 1000000000000 ;

> //prestige=Math.max ( 0 ,Math.floor ( Math.pow ( prestige, 0.5 ) ) ) ;//old version

> prestige=Math.max ( 0 ,Math.floor ( ( - 1 +Math.pow ( 1 + 8 *prestige, 0.5 ) ) / 2 ) ) ;//geometric progression

> return prestige;

> }

703,705c721

< //I wanted to do a geometric progression thing ( first chip costs 1tr, second costs 2, 3rd costs 3 and so on ) but apparently I'm bad at maths so oh well

< var prestige=Game.cookiesReset/ 1000000000000 ;

< prestige=Math.max ( 0 ,Math.floor ( Math.pow ( prestige, 0.5 ) ) ) ;

---

> var prestige=Game.HowMuchPrestige ( Game.cookiesReset ) ;

726,733d741

< /*

< mult+= ( Game.Has ( 'Oatmeal raisin cookies' ) +Game.Has ( 'Peanut butter cookies' ) +Game.Has ( 'Plain cookies' ) +Game.Has ( 'Coconut cookies' ) ) * 0.05 ;

< mult+= ( Game.Has ( 'White chocolate cookies' ) +Game.Has ( 'Macadamia nut cookies' ) +Game.Has ( 'Sugar cookies' ) ) * 0.05 ;

< mult+= ( Game.Has ( 'Double-chip cookies' ) +Game.Has ( 'White chocolate macadamia nut cookies' ) +Game.Has ( 'All-chocolate cookies' ) ) * 0.1 ;

< mult+= ( Game.Has ( 'Dark chocolate-coated cookies' ) +Game.Has ( 'White chocolate-coated cookies' ) ) * 0.15 ;

< mult+= ( Game.Has ( 'Zebra cookies' ) +Game.Has ( 'Eclipse cookies' ) ) * 0.15 ;

< mult+= ( Game.Has ( 'Snickerdoodles' ) +Game.Has ( 'Stroopwafels' ) +Game.Has ( 'Macaroons' ) ) * 0.15 ;

< */

741c749

< mult+=parseInt ( Game.prestige [ 'Heavenly chips' ] ) * 0.05 ;

---

> mult+=parseInt ( Game.prestige [ 'Heavenly chips' ] ) * 0.02 ;

753a762

> if ( Game.Has ( 'Kitten overseers' ) ) mult*= ( 1 +Game.milkProgress* 0.3 ) ;

774a784,792

> Game.goldenCookie.reset=function ( )

> {

> Game.goldenCookie.life= 0 ;

> Game.goldenCookie.delay= 0 ;

> Game.goldenCookie.dur= 13 ;

> Game.goldenCookie.toDie= 1 ;

> Game.goldenCookie.last='';

> Game.goldenCookie.chain= 0 ;

> }

1075c1093

< Game.particlesY+=me.l.clientHeight;

---

> Game.particlesY+= 64 ;//me.l.clientHeight;

1222c1240

< '<div class="listing"><a class="option" onclick="Game.ExportSave ( ) ;">Export save</a><a class="option" onclick="Game.ImportSave ( ) ;">Import save</a></div>'+

---

> '<div class="listing"><a class="option" onclick="Game.ExportSave ( ) ;">Export save</a><a class="option" onclick="Game.ImportSave ( ) ;">Import save</a><label>You can use this to backup your save or to transfer it to another computer</label></div>'+

1224,1225c1242,1243

< '<div class="listing"><a class="option warning" onclick="Game.Reset ( ) ;">Reset</a><label>Reset your game ( but keep your achievements ) </label></div>'+

< '<div class="listing"><a class="option warning" onclick="Game.HardReset ( ) ;">Hard-reset</a><label>Delete all your progress, including your achievements</label></div>'+

---

> '<div class="listing"><a class="option warning" onclick="Game.Reset ( ) ;">Reset</a><label>Reset your game ( you will keep your achievements ) </label></div>'+

> '<div class="listing"><a class="option warning" onclick="Game.HardReset ( ) ;">Wipe save</a><label>Delete all your progress, including your achievements and prestige</label></div>'+

1245d1262

< '<div class="listing">-forums</div>'+

1249c1266

< '<div class="listing">-dungeons! <a href="http://orteil42.tumblr.com/post/60366324835/yes-more-dungeons-yes-im-starting-to-like-the" target="blank"> ( check them out! ) </a></div>'+

---

> '<div class="listing">-dungeons! <a href="http://orteil42.tumblr.com/post/61142292486" target="_blank"> ( check them out! ) </a></div>'+

1252c1269,1278

< '<div class="listing"><span class="warning">Note : because this is still an early release, expect to see prices and cookies/second vary wildly from one update to another.</span></div>'+

---

> '<div class="listing"><span class="warning">Note : this game is updated fairly frequently, which often involves rebalancing. Expect to see prices and cookies/second vary wildly from one update to another!</span></div>'+

>

> '</div><div class="subsection update small">'+

> '<div class="title">15/09/2013 - anticookies</div>'+

> '<div class="listing">-ran out of regular matter to make your cookies? Try our new antimatter condensers!</div>'+

> '<div class="listing">-renamed Hard-reset to "Wipe save" to avoid confusion</div>'+

> '<div class="listing">-reset achievements are now regular achievements and require cookies baked all time, not cookies in bank</div>'+

> '<div class="listing">-heavenly chips have been nerfed a bit ( and are now awarded following a geometric progression : 1 trillion for the first, 2 for the second, etc ) ; the prestige system will be extensively reworked in a future update ( after dungeons ) </div>'+

> '<div class="listing">-golden cookie clicks are no longer reset by soft-resets</div>'+

> '<div class="listing">-you can now see how long you\'ve been playing in the stats</div>'+

1377c1403

< var str='';

---

> var str2='';

1383c1409

< str+='<div class="crate upgrade enabled" '+Game.getTooltip (

---

> str2+='<div class="crate upgrade enabled" '+Game.getTooltip (

1391c1417

< str+='<div onclick="Game.UpgradesById [ '+me.id+' ] .toggle ( ) ;" class="crate upgrade'+ ( me.bought>0?' enabled':'' ) +'" '+Game.getTooltip (

---

> str2+='<div onclick="Game.UpgradesById [ '+me.id+' ] .toggle ( ) ;" class="crate upgrade'+ ( me.bought>0?' enabled':'' ) +'" '+Game.getTooltip (

1397c1423

< if ( me.type=='cookie' ) cookieUpgrades+=str; else upgrades+=str;

---

> if ( me.type=='cookie' ) cookieUpgrades+=str2; else upgrades+=str2;

1465c1491

< /*

---

>

1468,1469c1494,1495

< date=date.getTime ( ) ;

< */

---

> date=Game.sayTime ( date.getTime ( ) / 1000 *Game.fps ) ;

>

1476c1502,1503

< //'<div class="listing"><b>Playing for :</b> '+date+'</div>'+//somehow this doesn't work

---

> ( Game.cookiesReset>0?'<div class="listing"><b>Cookies forfeited by resetting :</b> <div class="price plain">'+Beautify ( Game.cookiesReset ) +'</div></div>':'' ) +

> '<div class="listing"><b>Game started :</b> '+date+' ago</div>'+

1497,1498c1524,1525

< '<div class="listing"><small> ( Note : each heavenly chip grants you +5% CpS multiplier. You can gain more chips by resetting with a lot of cookies. ) </small></div>'+

< '<div class="listing"><div class="icon" style="background-position:'+ ( - 19 * 48 ) +'px '+ ( - 7 * 48 ) +'px;"></div> <span style="vertical-align: 100 %;"><span class="title" style="font-size:22px;">'+Game.prestige [ 'Heavenly chips' ] +' heavenly chip'+ ( Game.prestige [ 'Heavenly chips' ] ==1?'':'s' ) +'</span> ( +'+ ( Game.prestige [ 'Heavenly chips' ] *5 ) +'% CpS ) </span></div>' ) :'' ) +

---

> '<div class="listing"><small> ( Note : each heavenly chip grants you +2% CpS multiplier. You can gain more chips by resetting with a lot of cookies. ) </small></div>'+

> '<div class="listing"><div class="icon" style="background-position:'+ ( - 19 * 48 ) +'px '+ ( - 7 * 48 ) +'px;"></div> <span style="vertical-align: 100 %;"><span class="title" style="font-size:22px;">'+Game.prestige [ 'Heavenly chips' ] +' heavenly chip'+ ( Game.prestige [ 'Heavenly chips' ] ==1?'':'s' ) +'</span> ( +'+ ( Game.prestige [ 'Heavenly chips' ] *2 ) +'% CpS ) </span></div>' ) :'' ) +

1687a1715,1722

> if ( Game.Objects [ 'Antimatter condenser' ] .amount>0 ) list.push ( choose ( [

> 'News : whole town seemingly swallowed by antimatter-induced black hole; more reliable sources affirm town "never really existed"!',

> 'News : "explain to me again why we need particle accelerators to bake cookies?" asks misguided local woman.',

> 'News : first antimatter condenser successfully turned on, doesn\'t rip apart reality!',

> 'News : researchers conclude that what the cookie industry needs, first and foremost, is "more magnets".',

> 'News : "unravelling the fabric of reality just makes these cookies so much tastier", claims scientist.'

> ] ) ) ;

>

1695a1731

> if ( Game.Has ( 'Kitten overseers' ) ) list.push ( 'News : locals report troups of bossy kittens meowing adorable orders at passerbys.' ) ;

1844a1881

> this.displayName=this.name;

1895c1932,1933

< Game.Earn ( price ) ;

---

> //Game.Earn ( price ) ;

> Game.cookies+=price;

1958a1997,2002

> //pic : either 0 ( the default picture will be used ) , a filename ( will be used as override ) , or a function to determine a filename

> //xVariance : the pictures will have a random horizontal shift by this many pixels

> //yVariance : the pictures will have a random vertical shift by this many pixels

> //w : how many pixels between each picture ( or row of pictures )

> //shift : if >1, arrange the pictures in rows containing this many pictures

> //heightOffset : the pictures will be displayed at this height, +32 pixels

2008c2052

< , 0 , 0 ,'left' ) +' onclick="Game.ObjectsById [ '+me.id+' ] .buy ( ) ;" id="product'+me.id+'"><div class="icon" style="background-image:url ( img/'+me.icon+'.png ) ;"></div><div class="content"><div class="title">'+me.name+'</div><span class="price">'+Beautify ( Math.round ( me.price ) ) +'</span>'+ ( me.amount> 0 ? ( '<div class="title owned">'+me.amount+'</div>' ) :'' ) +'</div></div>';

---

> , 0 , 0 ,'left' ) +' onclick="Game.ObjectsById [ '+me.id+' ] .buy ( ) ;" id="product'+me.id+'"><div class="icon" style="background-image:url ( img/'+me.icon+'.png ) ;"></div><div class="content"><div class="title">'+me.displayName+'</div><span class="price">'+Beautify ( Math.round ( me.price ) ) +'</span>'+ ( me.amount> 0 ? ( '<div class="title owned">'+me.amount+'</div>' ) :'' ) +'</div></div>';

2082a2127

> if ( Game.Has ( 'Antigrandmas' ) ) mult++;

2098a2144

> if ( Game.Has ( 'Antigrandmas' ) ) list.push ( 'antiGrandma' ) ;

2168c2214,2221

<

---

> new Game.Object ( 'Antimatter condenser','antimatter condenser|antimatter condensers|condensed','Condenses the antimatter in the universe into cookies.','antimattercondenser','antimattercondenserIcon','antimattercondenserBackground',999999999,function ( ) {

> return Game.ComputeCps ( 999999 ,Game.Has ( 'Sugar bosons' ) * 99999 ,Game.Has ( 'String theory' ) +Game.Has ( 'Large macaron collider' ) +Game.Has ( 'Big bang bake' ) ) ;

> } ,Game.NewDrawFunction ( 0,0,64,64,1 ) ,function ( ) {

> if ( this.amount>= 1 ) Game.Unlock ( [ 'Sugar bosons','String theory' ] ) ;if ( this.amount>= 10 ) Game.Unlock ( 'Large macaron collider' ) ;if ( this.amount>= 50 ) Game.Unlock ( 'Big bang bake' ) ;

> if ( this.amount>=Game.SpecialGrandmaUnlock && Game.Objects [ 'Grandma' ] .amount> 0 ) Game.Unlock ( 'Antigrandmas' ) ;

> if ( this.amount>= 1 ) Game.Win ( 'Antibatter' ) ;if ( this.amount>= 50 ) Game.Win ( 'Quirky quarks' ) ;if ( this.amount>= 100 ) Game.Win ( 'It does matter!' ) ;

> } ) ;

> Game.Objects [ 'Antimatter condenser' ] .displayName='<span style="font-size: 65 %;">Antimatter condenser</span>';//shrink the name since it's so large

2373c2426

< new Game.Upgrade ( 'Ancient tablet','Portals gain <b>+ 1666 </b> base CpS.<q>A strange slab of peanut brittle, holding an ancient cookie recipe. Neat!</q>',Game.Objects [ 'Portal' ] .basePrice*tier1, [ 7 , 0 ] ) ;

---

> new Game.Upgrade ( 'Ancient tablet','Portals gain <b>+ 1 , 666 </b> base CpS.<q>A strange slab of peanut brittle, holding an ancient cookie recipe. Neat!</q>',Game.Objects [ 'Portal' ] .basePrice*tier1, [ 7 , 0 ] ) ;

2378c2431

< new Game.Upgrade ( 'Flux capacitors','Time machines gain <b>+ 9876 </b> base CpS.<q>Bake to the future.</q>', 1234567890 , [ 8 , 0 ] ) ;

---

> new Game.Upgrade ( 'Flux capacitors','Time machines gain <b>+ 9 , 876 </b> base CpS.<q>Bake to the future.</q>', 1234567890 , [ 8 , 0 ] ) ;

2484c2537

< new Game.Upgrade ( 'Quintillion fingers','The mouse and cursors gain <b>+ 100 </b> cookies for each non-cursor object owned.<q>man, just go click click click click click, it’s real easy, man.</q>', 50000000000000 , [ 3 , 6 ] ) ;

---

> new Game.Upgrade ( 'Quintillion fingers','The mouse and cursors gain <b>+ 100 </b> cookies for each non-cursor object owned.<q>man, just go click click click click click, it\'s real easy, man.</q>', 50000000000000 , [ 3 , 6 ] ) ;

2535a2589,2609

>

> order= 1000 ;

> new Game.Upgrade ( 'Sugar bosons','Antimatter condensers gain <b>+ 99 , 999 </b> base CpS.',Game.Objects [ 'Antimatter condenser' ] .basePrice*tier1, [ 13 , 0 ] ) ;

> new Game.Upgrade ( 'String theory','Antimatter condensers are <b>twice</b> as efficient.',Game.Objects [ 'Antimatter condenser' ] .basePrice*tier2, [ 13 , 0 ] ) ;

> new Game.Upgrade ( 'Large macaron collider','Antimatter condensers are <b>twice</b> as efficient.<q>How singular!</q>',Game.Objects [ 'Antimatter condenser' ] .basePrice*tier3, [ 13 , 1 ] ) ;

> new Game.Upgrade ( 'Big bang bake','Antimatter condensers are <b>twice</b> as efficient.<q>And that\'s how it all began.</q>',Game.Objects [ 'Antimatter condenser' ] .basePrice*tier4, [ 13 , 2 ] ) ;

>

> order= 250 ;

> new Game.Upgrade ( 'Antigrandmas','Grandmas are <b>twice</b> as efficient.',Game.Objects [ 'Antimatter condenser' ] .basePrice*tier2, [ 10 , 9 ] ,function ( ) { Game.Objects [ 'Grandma' ] .drawFunction ( ) ; } ) ;

>

> order= 10000 ;

> type='cookie';power= 20 ;

> new Game.Upgrade ( 'Madeleines','Cookie production multiplier <b>+ 20 %</b>.<q>Unforgettable!</q>', 199999999999999 , [ 12 , 3 ] ) ;

> new Game.Upgrade ( 'Palmiers','Cookie production multiplier <b>+ 20 %</b>.', 199999999999999 , [ 13 , 3 ] ) ;

> new Game.Upgrade ( 'Palets','Cookie production multiplier <b>+ 20 %</b>.', 199999999999999 , [ 12 , 4 ] ) ;

> new Game.Upgrade ( 'Sablés','Cookie production multiplier <b>+ 20 %</b>.', 199999999999999 , [ 13 , 4 ] ) ;

> type='';power= 0 ;

>

> order= 20000 ;

> new Game.Upgrade ( 'Kitten overseers','You gain <b>more CpS</b> the more milk you have.<q>my purrpose is to serve you, sir</q>', 900000000000000 , [ 8 , 7 ] ) ;

>

2647,2649c2721,2723

< new Game.Achievement ( 'Sacrifice','Reset your game with <b> 1 million</b> cookies.<q>Easy come, easy go.</q>', [ 11 , 6 ] , 3 ) ;

< new Game.Achievement ( 'Oblivion','Reset your game with <b> 1 billion</b> cookies.<q>Back to square one.</q>', [ 11 , 6 ] , 3 ) ;

< new Game.Achievement ( 'From scratch','Reset your game with <b> 1 trillion</b> cookies.<q>It\'s been fun.</q>', [ 11 , 6 ] , 3 ) ;

---

> new Game.Achievement ( 'Sacrifice','Reset your game with <b> 1 million</b> cookies baked.<q>Easy come, easy go.</q>', [ 11 , 6 ] , 2 ) ;

> new Game.Achievement ( 'Oblivion','Reset your game with <b> 1 billion</b> cookies baked.<q>Back to square one.</q>', [ 11 , 6 ] , 2 ) ;

> new Game.Achievement ( 'From scratch','Reset your game with <b> 1 trillion</b> cookies baked.<q>It\'s been fun.</q>', [ 11 , 6 ] , 2 ) ;

2751c2825

< new Game.Achievement ( 'Leprechaun','Click <b> 777 golden cookies</b>.', [ 10 , 1 ] , 3 ) ;

---

> new Game.Achievement ( 'Leprechaun','Click <b> 777 golden cookies</b>.', [ 10 , 1 ] , 1 ) ;

2755c2829,2830

< new Game.Achievement ( 'Nihilism','Reset your game with <b> 1 quadrillion</b> cookies.<q>There are many things<br>that need to be erased</q>', [ 11 , 6 ] , 3 ) ;

---

> new Game.Achievement ( 'Nihilism','Reset your game with <b> 1 quadrillion</b> cookies baked.<q>There are many things<br>that need to be erased</q>', [ 11 , 6 ] , 2 ) ;

> //new Game.Achievement ( 'Galactus\' Reprimand','Reset your game with <b>1 quintillion</b> coo- okay no I'm yanking your chain

2756a2832,2841

> order= 1900 ;

> new Game.Achievement ( 'Antibatter','Have <b> 1 </b> antimatter condenser.', [ 13 , 0 ] ) ;

> new Game.Achievement ( 'Quirky quarks','Have <b> 50 </b> antimatter condensers.', [ 13 , 1 ] ) ;

> new Game.Achievement ( 'It does matter!','Have <b> 100 </b> antimatter condensers.', [ 13 , 2 ] ) ;

>

> order= 6000 ;

> new Game.Achievement ( 'Upgrader','Purchase <b> 100 </b> upgrades.', [ 9 , 2 ] , 1 ) ;

>

> order= 7000 ;

> new Game.Achievement ( 'Centennial','Have at least <b> 100 of everything</b>.', [ 9 , 6 ] , 2 ) ;

2910a2996

> if ( Game.milkProgress>= 3 ) Game.Unlock ( 'Kitten overseers' ) ;

2951c3037

< if ( Game.T% ( Game.fps*23 ) ==0 && Game.ObjectsById.length>0 ) //check some achievements and upgrades

---

> if ( Game.T% ( Game.fps*5 ) ==0 && Game.ObjectsById.length>0 ) //check some achievements and upgrades

2955a3042

> if ( isNaN ( Game.cookies ) ) { Game.cookies= 0 ;Game.cookiesEarned= 0 ;Game.recalculateGains= 1 ; }

2972a3060

> if ( Game.cookiesEarned>= 9999999999999 ) Game.Unlock ( [ 'Madeleines','Palmiers','Palets','Sablés' ] ) ;

2981a3070

> var centennial= 1 ;

2987a3077

> if ( !Game.HasAchiev ( 'Centennial' ) ) { if ( Game.Objects [ i ] .amount< 100 ) centennial= 0 ; }

2991a3082

> if ( centennial== 1 ) Game.Win ( 'Centennial' ) ;

3004a3096

> if ( Game.UpgradesOwned>= 100 ) Game.Win ( 'Upgrader' ) ;

3137c3229,3231

< l ( 'cookies' ) .innerHTML=Beautify ( Math.round ( Game.cookiesd ) ) + ( Math.round ( Game.cookiesd ) == 1 ?' cookie':' cookies' ) +'<div style="font-size: 50 %;">per second : '+Beautify ( Game.cookiesPs, 1 ) +'</div>';//display cookie amount

---

> var unit= ( Math.round ( Game.cookiesd ) == 1 ?' cookie':' cookies' ) ;

> if ( Math.round ( Game.cookiesd ) .toString ( ) .length> 11 ) unit='<br>cookies';