Cyborg_Gaming

A Dozen Cookies (CC Mod) (By HAL989)

Apr 28th, 2018 (edited)
2,657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // A Dozen Cookies!
  2. // By HAL989
  3. //Version 2.5.3
  4. //Inspired by Darky's achievement package, however there is no repeats between the two mods.
  5. //Compatible with Darky's achievement package and most other mods.
  6. // thanks to Good Hunter for 2.4 in general
  7. // thanks to Aktan for helping with the nice try Achievement!!
  8. // thanks to flow for the buff stacking achievements
  9. // thanks to Jasper83YT
  10. // thanks to CookieBliss for the achievement system
  11. //Enjoy!
  12. // CHANGELOG
  13. // V2.5.3 - |Anniversary Update| Made + and ++ achievements easier, and introduced 5 new achievements
  14. // V2.5.2 - implemented 3 new spend x chips achievements
  15. // V2.5.1.1 - fixed sugar craving's description
  16. // V2.5.1 | THE SAVING UPDATE | mostly just changes to how we save
  17. // V2.5 - Implemented new blabs & news tooltips
  18. // V2.4.1 - Fixed lump tooltips - actually made the sugar frenzy cap - fixed a gamebreaking bug which would always unlock sugar frenzy
  19. // V2.4 - THE LUMPS UPDATE - Changes to meaty/bifurcated lumps - Changes to Sugar Frenzy - Special Thanks to Good Hunter for ideas for this update!
  20. // V2.3 - Added a new cookie - no longer just an achievement pack any more (but it broke so it's disabled)
  21. // V2.2 - Added 5 new Achievements relating to stacking buffs - how high can you go? & 3 other achievements
  22. // V2.1 - Added like 7 new achievements relating to playing the game for a while!
  23. // V2.0 - Added a saving system, a reset system, some achievements and other stuff, come check it out, we are now at 50+ achievements
  24. // V 1.6 - Added Demigod Complex
  25. // V1.5 - screw the 200 time machine achievement
  26. // V1.4 - Added content & stuff
  27. // V1.3 - Changed some achievements to more traditional icons, added 8 new achievements, totalling 46 achievements
  28. // V1.2 - Fixed various bugs which would prevent the mod from working, including one that would freeze your game.
  29. // V1.1 - Added various descriptions to achievements, and added 1 currently broken achievement (will be added soon)
  30. //
  31. // V1.0 - Added original 38 achievements
  32. ////////////////////////////////
  33. // INTIALIZING
  34. ////////////////////////////////
  35. eval('Game.shimmerTypes.golden.popFunc = ' + Game.shimmerTypes.golden.popFunc.toString().split("know.\',").join("know.\', \'Determination.\', \'Click. Click. Click.\', \'But it refused.\', \'Y O U R E G O N N A H A V E T O T R Y A L I T T L E H A R D E R T H A N T H A T.\', \'Im sorry Dave. I cannot let you click that cookie.\', \'GIB COOKIES\', \'i have run out of ideas at this point', \'hahaha get pranked\', \'at least it wasnt a miss.\',"));
  36. var bufflength = 0 // prevents a nasty freeze
  37. var debug = 0 // hey look another nasty freeze
  38. eval('Game.Reset = ' + Game.Reset.toString().split("\'Lazarus\');").join("\'Lazarus\'); if (cookiesForfeited==0) Game.Win(\'nice try\'); if (cookiesForfeited==999999999999) Game.Win('You were so close...');")); // nice try & so close achievement unlock
  39. eval('Game.lumpTooltip = ' + Game.lumpTooltip.toString().split("harvesting it has a 50% chance of yielding two lumps.").join("harvesting it will spawn in <b>2 identical golden cookies</b> and have a 50% chance to yield 2 lumps."));
  40. eval('Game.lumpTooltip = ' + Game.lumpTooltip.toString().split("harvesting it will yield between 0 and 2 lumps.").join("harvesting it will spawn in a <b>special wrath cookie</b> and yield 0-2 lumps.")); // fixing lump tooltips
  41. CreateMeatyCookie=function(type)
  42. {
  43. newShimmer=new Game.shimmer('golden',{wrath:true});
  44. var choices=[];
  45. choices.push('clot','ruin cookies','cursed finger','blood frenzy','clot','ruin cookies');
  46. newShimmer.force=choose(choices);
  47. Game.makeSeed();
  48. } // for meaty lumps
  49. CreateBiCookie=function(type)
  50. {
  51. newShimmer=new Game.shimmer('golden');
  52. var choices=[];
  53. choices.push('frenzy','multiply cookies','chain cookie','building special','click frenzy');
  54. CurrentBiEffect=choose(choices);
  55. newShimmer.force=(CurrentBiEffect);
  56. Game.makeSeed(); //doing this to make four leaf clover a pinch harder so that doubled gc heavenly upgrade doesnt instantly trigger it
  57. newShimmer=new Game.shimmer('golden');
  58. newShimmer.force=(CurrentBiEffect);
  59. }
  60.  
  61. eval('Game.harvestLumps = ' + Game.harvestLumps.toString().split("Game.Win(\'Sweetmeats\');").join("Game.Win(\'Sweetmeats\'); if (Game.lumpCurrentType==3) CreateMeatyCookie(); if (Game.lumpCurrentType==1) CreateBiCookie();")); // also for lumps
  62. /////////////////////////////
  63. // CREATING ACHIEVEMENTS
  64. ////////////////////////////////
  65. Game.customCrate=[
  66. //new Game.Achievement('Let\'s Get Right Into The News!','Click the news <b>5</b> times. <q>and i\'m your host...</q>',[26,7]),
  67. new Game.Achievement('It\'s A Feature!','End your name with a <b>s</b>',[15,9]),Game.last.pool="shadow",
  68. new Game.Achievement('Elder Loop','Pledge <b>40</b> times. <q>Upon closer inspection, this is more efficient than the convenant.</q>',[8,9]),
  69. new Game.Achievement('Elder Recursion','Pledge <b>45</b> times. <q>writhe gnaw etc etc</q>',[8,9]),
  70. new Game.Achievement('Kiloclicker I','Click the big cookie <b>1000</b> times in <b>15</b> minutes. <q>Speedrunning 101</q>',[11,22]),
  71. new Game.Achievement('Kiloclicker II','Click the big cookie <b>1000</b> times in <b>10</b> minutes. <q>Speedrunning 102</q>',[11,23]),
  72. new Game.Achievement('Kiloclicker III','Click the big cookie <b>1000</b> times in <b>5</b> minutes. <q>5 cps is decent.</q>',[11,24]),
  73. new Game.Achievement('Double Trouble','Click the big cookie <b>1000</b> times in <b>5</b> minutes. <q>5 cps is decent.</q>',[27,6]),
  74. new Game.Achievement('Elder Infinite','Pledge <b>50</b> times. <q>wow, two solid day\'s worth of pledges.</q>',[8,9]),
  75. new Game.Achievement('Elder Hibernation','Pledge <b>10</b> times. <q>zzzzzz</q>',[8,9]),
  76. new Game.Achievement('Elder Coma','Pledge <b>15</b> times.',[8,9]),
  77. new Game.Achievement('Pledge of Allegiance','Pledge <b>20</b> times.',[8,9]),
  78. new Game.Achievement('Is 5 percent really all that much?','Pledge <b>25</b> times. <q>I mean really, this has to have taken more cookies than just 5 percent.</q>',[8,9]),
  79. new Game.Achievement('You better have sacrificial rolling pins by now','Pledge <b>30</b> times. <q>just buy the freaking convenant</q>',[8,9]),
  80. new Game.Achievement('Elder Cycle','Pledge <b>35</b> times. <q>you know what how about i look up if it is better and get back to you</q>',[8,9]),
  81. new Game.Achievement('Let\'s just call this Reindeer Clicker','Click <b250</b> reindeer.',[12,9]),
  82. new Game.Achievement('Extinction','Click <b400</b> reindeer.',[12,9]),
  83. new Game.Achievement('Milk N\' Cookies','Get to Milk Tier <b>II</b>',[1,8]),
  84. new Game.Achievement('Half Full','Get to Milk Tier <b>IV</b>',[2,8]),
  85. new Game.Achievement('Milked for Progress','Get to Milk Tier <b>VI</b>',[5,8]),
  86. new Game.Achievement('All the Milky Way','Get to Milk Tier <b>VIII</b>',[9,7]),
  87. new Game.Achievement('He needs some milk','Get to Milk Tier <b>X</b>',[7,8]),
  88. new Game.Achievement('Still Thirsty','Get to Milk Tier <b>XII</b>',[7,7]),
  89. new Game.Achievement('Lactose Tolerance','Get to Milk Tier <b>XIV</b>',[10,7]),
  90. new Game.Achievement('Quenched','Get to Milk Tier <b>XVI</b>',[9,8]),
  91. new Game.Achievement('Pop goes the wrinkler','Pop <b>250</b> wrinklers.',[19,8]),
  92. new Game.Achievement('Wrinkled Away','Pop <b>300</b> wrinklers.',[19,8]),
  93. new Game.Achievement('M O I S T','Pop <b>400</b> wrinklers. <q>nice</q>',[19,8]),
  94. new Game.Achievement('Any shinies yet?','Pop <b>500</b> wrinklers. <q>hahaha good joke</q>',[19,8]),
  95. new Game.Achievement('Tutorial','Spend <b>7</b> heavenly chips. <q>Good job on beating the tutorial!</q>',[20,7]),
  96. new Game.Achievement('Charity','Spend <b>77</b> heavenly chips.',[20,7]),
  97. new Game.Achievement('Blessed','Spend <b>777</b> heavenly chips. <q>You have more?</q>',[20,7]),
  98. new Game.Achievement('Negative Debt','Spend <b>7,777</b> heavenly chips. <q>Isn\'t negative debt just money?<\q>',[20,7]),
  99. new Game.Achievement('Payload','Spend <b>77,777</b> heavenly chips.',[20,7]),
  100. new Game.Achievement('Big Spender','Spend <b>777,777</b> heavenly chips.',[20,7]),
  101. new Game.Achievement('Maximum Overdrive','Spend <b>7,777,777,777</b> heavenly chips.',[20,7]),
  102. new Game.Achievement('Seven doesnt look like a number anymore','Spend <b>77,777,777,777</b> heavenly chips. <q>diagonal line connected to a horizontal line</q>',[20,7]),
  103. new Game.Achievement('Devoid Cookies','Spend <b>777,777,777,777</b> heavenly chips. <q>if these cookies were to exist these cookies would - hold on a minute</q>',[20,7]),
  104. new Game.Achievement('Rich in a non-traditional sense','Spend <b>7,777,777</b> heavenly chips. <q>really getting your cookie\'s worth, huh?<\q>',[20,7]),
  105. new Game.Achievement('Profit Maximizer','Spend <b>77,777,777</b> heavenly chips.',[20,7]),
  106. new Game.Achievement('True Heaven','Spend <b>777,777,777</b> heavenly chips. <q>In other news, heaven is running out of stock.<\q>',[20,7]),
  107. new Game.Achievement('Ever changing seasons','Change the season <b>4</b> times in one ascension. <q>time flies</q>',[16,6]),
  108. new Game.Achievement('Weekly','Change the season <b>7</b> times in one ascension.',[16,6]),
  109. new Game.Achievement('Monthly','Change the season <b>12</b> times in one ascension.',[16,6]),
  110. new Game.Achievement('Global Warming','Change the season <b>16</b> times in one ascension. <q>is it real?</q>',[16,6]),
  111. new Game.Achievement('Daily','Change the season <b>31</b> times in one ascension.',[16,6]),
  112. new Game.Achievement('curse you time machine achievements','Change the season <b>40</b> times. <q>curse you and your stupid names</q>',[16,6]),
  113. new Game.Achievement('Hourly','Change the season <b>24</b> times in one ascension.',[16,6]),
  114. new Game.Achievement('Come Again!','Ascend <b>150</b> times.',[25,7]),
  115. new Game.Achievement('Frequent Flier','Ascend <b>200</b> times.',[25,7]),
  116. new Game.Achievement('Return to Sender','Ascend <b>250</b> times.',[25,7]),
  117. new Game.Achievement('You were so close...','Ascend one cookie away from <b>a trillion</b> cookies baked. <q>Well, you got an achievement.</q>',[0,3]),Game.last.pool="shadow",
  118. new Game.Achievement('oops','Miss <b>3</b> golden cookies. <q>):</q>',[1,7]),
  119. new Game.Achievement('Casual','Stay on one run for <b>one day.</b> <q>If you don\'t have this, either you\'re really good or really bad.</q>',[8,0]),
  120. new Game.Achievement('A S C E N D','Stay on one run for <b>three days.</b> <q>just click the legacy button.</q>',[8,0]),
  121. new Game.Achievement('Goodbyes are so hard','Stay on one run for <b>five days.</b> <q>Never gonna say goodbye~</q>',[8,0]),
  122. new Game.Achievement('YOAO','Stay on one run for <b>one week.</b><q>You Only Ascend Once</q>',[8,0]),
  123. new Game.Achievement('Beginner Gamer','Have a legacy at least <b>one week</b> old.<q>Sorta good.</q>',[8,1]),
  124. new Game.Achievement('Novice Gamer','Have a legacy at least <b>two weeks</b> old.<q>Pretty good.</q>',[8,1]),
  125. new Game.Achievement('Advanced Gamer','Have a legacy at least <b>three weeks</b> old.<q>Actually good.</q>',[8,1]),
  126. new Game.Achievement('Expert Gamer','Have a legacy at least <b>a month</b> old.<q>Pretty good.</q>',[8,1]),
  127. new Game.Achievement('Neverclick+','Reach <b>10 million</b> cookies, with <b>15</b> or less clicks. <q>oh wow you actually did it, but the battle is not yet over</q>',[12,0]),Game.last.pool="shadow",
  128. new Game.Achievement('Neverclick++','Reach <b>100 million</b> cookies, with <b>15</b> or less clicks. <q>gg</q>',[12,0]),Game.last.pool="shadow",
  129. new Game.Achievement('Hardcore+','Reach <b>10 billion</b> cookies, with no upgrades. <q>damn this must\'ve been tough</q>',[13,6]),Game.last.pool="shadow",
  130. new Game.Achievement('Hardcore++','Reach <b>100 billion</b> cookies, with no upgrades. <q>I M P R E S S I V E</q>',[14,6]),Game.last.pool="shadow",
  131. new Game.Achievement('Cursed','Miss <b>13</b> golden cookies. <q>Come on!</q>',[0,8]),
  132. new Game.Achievement('You think I\'m just gonna stand there and click it?','Miss <b>313</b> golden cookies. <q>you must be having a bad time by this point</q>',[0,8]),
  133. new Game.Achievement('Misfortune','Miss <b>1,313</b> golden cookies. <q>this gave me physical pain to imagine anyone getting this</q>',[0,8]),
  134. new Game.Achievement('Knawledge','Get all research upgrades.',[22,12]),
  135. new Game.Achievement('Baby\'s First Buff','Get <b>a buff</b>. <q>E for everyone.</q>',[0,10]),
  136. new Game.Achievement('Act 2','Get <b>2</b> buffs at the same time. <q>Prepare for trouble...and make it double!</q>',[1,10]),
  137. new Game.Achievement('Synergy','Get <b>3</b> buffs at the same time. <q>Orteil dislikes this post.</q>',[2,10]),
  138. new Game.Achievement('ANOTHER ONE!','Get <b>4</b> buffs at the same time. <q>nerf this</q>',[3,10]),
  139. new Game.Achievement('Now THIS IS BREAKING!','Get <b>5</b> buffs at the same time. <q>Thanks flow!.</q>',[4,10]),
  140. new Game.Achievement('nice try','Ascend with no cookies. <q>no sugar lumps 4 u</q>',[25,15]),Game.last.pool="shadow",
  141. new Game.Achievement('Demigod Complex','Name yourself <b>HAL989</b>.<q>something something cps loss</q>',[17,5]),Game.last.pool="shadow",
  142. new Game.Achievement('Quality Control','<b>Thanks for helping with the mod!</b>',[16,5]),Game.last.pool="shadow",
  143. // alternate reality keys aka the funnest achievements to exist ever which will be added someday
  144. new Game.Achievement('Lightblue Alternate Reality Key','<b>Have exactly 101 buildings while a golden cookie is on screen.</b> <q>Next: get 2 buffs while wizard towers are at least half of your total buildings.',[66,0,'https://i.imgur.com/3jNJJNw.png']),Game.last.pool="shadow",
  145. new Game.Achievement('Lightyellow Alternate Reality Key','<b>Have 2 or more buffs while wizard towers are at least half of your total buildings.</b> <q>Next: With gold switch off and frenzy active, click the big cookie.</q>',[66,1,'https://i.imgur.com/3jNJJNw.png']),Game.last.pool="shadow",
  146. ////////////////////////////////
  147. // UPGRADES
  148. ////////////////////////////////
  149. //Game.NewUpgradeCookie({name:'Grandma\'s Cookies',desc:'I guess we can\'t call this an achievement pack any more.',icon:[1,16,'http://orteil.dashnet.org/cookieclicker/v10466/img/icons.png'],power:4,price:100000000000000000*100,locked:1})
  150. ]
  151. ////////////////////////////////
  152. // LOADING
  153. ////////////////////////////////
  154. var code = localStorage.getItem('halsave');
  155. if (code == null) var code = "a";
  156. if (code.includes("ap") == true) {Game.Win('Neverclick+');}
  157. if (code.includes("va") == true) {Game.Win('Neverclick++');}
  158. if (code.includes("dp") == true) {Game.Win('Hardcore+');}
  159. if (code.includes("xa") == true) {Game.Win('Hardcore++');}
  160. if (code.includes("c1") == true) {Game.Win('Kiloclicker I');}
  161. if (code.includes("c2") == true) {Game.Win('Kiloclicker II');}
  162. if (code.includes("c3") == true) {Game.Win('Kiloclicker III');}
  163. if (code.includes("cg") == true) {Game.Win('Double Trouble');}
  164. if (code.includes("za") == true) {Game.Win('Demigod Complex');}
  165. if (code.includes("ty") == true) {Game.Win('Quality Control');}
  166. if (code.includes("no") == true) {Game.Win('nice try');}
  167. if (code.includes("ez") == true) {Game.Win('Casual');}
  168. if (code.includes("aw") == true) {Game.Win('Goodbyes are so hard');}
  169. if (code.includes("ye") == true) {Game.Win('A S C E N D');}
  170. if (code.includes("dd") == true) {Game.Win('YOAO');}
  171. if (code.includes("aa") == true) {Game.Win('Knawledge');}
  172. if (code.includes("bb") == true) {Game.Win('Baby\'s First Buff');}
  173. if (code.includes("cc") == true) {Game.Win('Act 2');}
  174. if (code.includes("ee") == true) {Game.Win('Synergy');}
  175. if (code.includes("ff") == true) {Game.Win('ANOTHER ONE!');}
  176. if (code.includes("gg") == true) {Game.Win('Now THIS IS BREAKING!');}
  177. if (code.includes("hh") == true) {Game.Win('It\'s A Feature!');}
  178. if (code.includes("ii") == true) {Game.Win('You were so close...');}
  179. if (code.includes("kk") == true) {Game.Win('Maximum Overdrive');}
  180. if (code.includes("jj") == true) {Game.Win('Seven doesnt look like a number anymore');}
  181. if (code.includes("kj") == true) {Game.Win('Devoid Cookies');}
  182. ////////////////////////////////
  183. // ORDERING (VANILLA)
  184. ////////////////////////////////
  185. Game.Achievements['Elder calm'].order=20500
  186. Game.Achievements['Eldeer'].order=22220
  187. Game.Achievements['Here you go'].order=11002
  188. Game.Achievements['Tabloid addiction'].order=11004
  189. Game.Achievements['Uncanny clicker'].order=11015
  190. ////////////////////////////////
  191. // ORDERING (MODDED)
  192. ////////////////////////////////
  193. Game.Achievements['It\'s A Feature!'].order=11001
  194. Game.Achievements['You were so close...'].order=30009
  195. Game.Achievements['nice try'].order=30008
  196. Game.Achievements['Baby\'s First Buff'].order=5
  197. Game.Achievements['Act 2'].order=6
  198. Game.Achievements['Synergy'].order=7
  199. Game.Achievements['ANOTHER ONE!'].order=8
  200. Game.Achievements['Now THIS IS BREAKING!'].order=9
  201. Game.Achievements['Elder Hibernation'].order=20001
  202. Game.Achievements['Elder Coma'].order=20002
  203. Game.Achievements['Knawledge'].order=1153
  204. Game.Achievements['Pledge of Allegiance'].order=20003
  205. Game.Achievements['Is 5 percent really all that much?'].order=20004
  206. Game.Achievements['You better have sacrificial rolling pins by now'].order=20005
  207. Game.Achievements['Elder Cycle'].order=20006
  208. Game.Achievements['Elder Loop'].order=20007
  209. Game.Achievements['Elder Recursion'].order=20008
  210. Game.Achievements['Elder Infinite'].order=20009
  211. Game.Achievements['Let\'s just call this Reindeer Clicker'].order=22101
  212. Game.Achievements['Extinction'].order=22102
  213. Game.Achievements['Milk N\' Cookies'].order=301001
  214. Game.Achievements['Half Full'].order=301002
  215. Game.Achievements['Milked for Progress'].order=301003
  216. Game.Achievements['All the Milky Way'].order=301004
  217. Game.Achievements['He needs some milk'].order=301005
  218. Game.Achievements['Still Thirsty'].order=301006
  219. Game.Achievements['Lactose Tolerance'].order=301007
  220. Game.Achievements['Quenched'].order=301008
  221. Game.Achievements['Pop goes the wrinkler'].order=21001
  222. Game.Achievements['Wrinkled Away'].order=21002
  223. Game.Achievements['M O I S T'].order=21003
  224. Game.Achievements['Any shinies yet?'].order=21004
  225. Game.Achievements['Neverclick+'].order=11011
  226. Game.Achievements['Neverclick++'].order=11012
  227. Game.Achievements['Hardcore+'].order=30501
  228. Game.Achievements['Hardcore++'].order=30502
  229. Game.Achievements['Tutorial'].order=32001
  230. Game.Achievements['Charity'].order=32003
  231. Game.Achievements['Blessed'].order=32004
  232. Game.Achievements['Negative Debt'].order=32005
  233. Game.Achievements['Payload'].order=32006
  234. Game.Achievements['Big Spender'].order=32007
  235. Game.Achievements['Profit Maximizer'].order=32008
  236. Game.Achievements['True Heaven'].order=32010
  237. Game.Achievements['Maximum Overdrive'].order=32011
  238. Game.Achievements['Seven doesnt look like a number anymore'].order=32012
  239. Game.Achievements['Devoid Cookies'].order=32013
  240. Game.Achievements['Kiloclicker I'].order=1002
  241. Game.Achievements['Kiloclicker II'].order=1003
  242. Game.Achievements['Kiloclicker III'].order=1002
  243. Game.Achievements['Rich in a non-traditional sense'].order=32009
  244. Game.Achievements['Ever changing seasons'].order=300001
  245. Game.Achievements['Weekly'].order=300002
  246. Game.Achievements['Monthly'].order=300003
  247. Game.Achievements['Global Warming'].order=300004
  248. Game.Achievements['Hourly'].order=300005
  249. Game.Achievements['Daily'].order=300006
  250. Game.Achievements['curse you time machine achievements'].order=300007
  251. Game.Achievements['oops'].order=10500
  252. Game.Achievements['Cursed'].order=10501
  253. Game.Achievements['You think I\'m just gonna stand there and click it?'].order=10502
  254. Game.Achievements['Misfortune'].order=10503
  255. Game.Achievements['Double Trouble'].order=10504
  256. Game.Achievements['Come Again!'].order=30001
  257. Game.Achievements['Demigod Complex'].order=9900
  258. Game.Achievements['Quality Control'].order=9901
  259. Game.Achievements['Frequent Flier'].order=30002
  260. Game.Achievements['Return to Sender'].order=30003
  261. Game.Achievements['Casual'].order=10960
  262. Game.Achievements['A S C E N D'].order=10961
  263. Game.Achievements['Goodbyes are so hard'].order=10962
  264. Game.Achievements['YOAO'].order=10963
  265. Game.Achievements['Beginner Gamer'].order=10990
  266. Game.Achievements['Novice Gamer'].order=10991
  267. Game.Achievements['Advanced Gamer'].order=10992
  268. Game.Achievements['Expert Gamer'].order=10993
  269. ////////////////////////////////
  270. // UNLOCKS
  271. ////////////////////////////////
  272. Game.customChecks=[
  273. function(){if (Game.cookieClicks<=15 && (Game.ascensionMode==1 || Game.resets==0) && Game.cookiesEarned>=10000000) Game.Win('Neverclick+')},
  274. function(){if (Game.cookieClicks<=15 && (Game.ascensionMode==1 || Game.resets==0) && Game.cookiesEarned>=100000000) Game.Win('Neverclick++')},
  275. function(){if (Game.cookiesEarned>=10000000000 && (Game.ascensionMode==1 || Game.resets==0) && Game.UpgradesOwned==0) Game.Win('Hardcore+')},
  276. function(){if (Game.cookiesEarned>=100000000000 && (Game.ascensionMode==1 || Game.resets==0) && Game.UpgradesOwned==0) Game.Win('Hardcore++')},
  277. function(){if (Game.cookieClicks>=1000 && (Game.ascensionMode==1 || Game.resets==0) && Math.floor((Date.now()-Game.startDate)/1000/10)*10/60<=15) Game.Win('Kiloclicker I')},
  278. function(){if (Game.cookieClicks>=1000 && (Game.ascensionMode==1 || Game.resets==0) && Math.floor((Date.now()-Game.startDate)/1000/10)*10/60<=10) Game.Win('Kiloclicker II')},
  279. function(){if (Game.cookieClicks>=1000 && (Game.ascensionMode==1 || Game.resets==0) && Math.floor((Date.now()-Game.startDate)/1000/10)*10/60<=5) Game.Win('Kiloclicker III')},
  280. function(){if (Game.Has('Sacrificial rolling pins') + Game.Has('Elder Pact')==2) Game.Win('Knawledge')},
  281. function(){if (Game.pledges>=10) Game.Win('Elder Hibernation')},
  282. function(){if (Object.keys(Game.buffs).length>=1) Game.Win('Baby\'s First Buff')},
  283. function(){if (Object.keys(Game.buffs).length>=2) Game.Win('Act 2')},
  284. function(){if (Object.keys(Game.buffs).length>=3) Game.Win('Synergy')},
  285. function(){if (Object.keys(Game.buffs).length>=4) Game.Win('ANOTHER ONE!')},
  286. function(){if (Object.keys(Game.buffs).length>=5) Game.Win('Now THIS IS BREAKING!')},
  287. function(){if (Game.pledges>=15) Game.Win('Elder Coma')},
  288. function(){if (Game.pledges>=20) Game.Win('Pledge of Allegiance')},
  289. function(){if (Game.pledges>=25) Game.Win('Is 5 percent really all that much?')},
  290. function(){if (Game.pledges>=30) Game.Win('You better have sacrificial rolling pins by now')},
  291. function(){if (Game.pledges>=35) Game.Win('Elder Cycle')},
  292. function(){if (Game.pledges>=40) Game.Win('Elder Loop')},
  293. function(){if (Game.pledges>=45) Game.Win('Elder Recursion')},
  294. function(){if (Game.pledges>=50) Game.Win('Elder Infinite')},
  295. function(){if (Game.reindeerClicked>=250) Game.Win('Let\'s just call this Reindeer Clicker.')},
  296. function(){if (Game.reindeerClicked>=400) Game.Win('Extinction')},
  297. function(){if (Game.milkProgress>=2) Game.Win('Milk N\' Cookies')},
  298. function(){if (Game.milkProgress>=4) Game.Win('Half Full')},
  299. function(){if (Game.milkProgress>=6) Game.Win('Milked for Progress')},
  300. function(){if (Game.milkProgress>=8) Game.Win('All the Milky Way')},
  301. function(){if (Game.milkProgress>=10) Game.Win('He needs some milk')},
  302. function(){if (Game.milkProgress>=12) Game.Win('Still Thirsty')},
  303. function(){if (Game.milkProgress>=14) Game.Win('Lactose Tolerance')},
  304. function(){if (Game.milkProgress>=16) Game.Win('Quenched')},
  305. function(){if (Game.wrinklersPopped>=250) Game.Win('Pop goes the wrinkler')},
  306. function(){if (Game.wrinklersPopped>=300) Game.Win('Wrinkled Away')},
  307. function(){if (Game.wrinklersPopped>=400) Game.Win('M O I S T')},
  308. //function(){if Game.TickerClicks>=5) Game.Win('Let\'s Get Right Into The News')
  309. function(){if (Game.wrinklersPopped>=500) Game.Win('Any shinies yet?')},
  310. function(){if (Game.heavenlyChipsSpent>=7) Game.Win('Tutorial')},
  311. function(){if (Game.heavenlyChipsSpent>=77) Game.Win('Welcome Back')},
  312. function(){if (Game.heavenlyChipsSpent>=777) Game.Win('Charity')},
  313. function(){if (Game.heavenlyChipsSpent>=7777) Game.Win('Blessed')},
  314. function(){if (Game.heavenlyChipsSpent>=77777) Game.Win('Negative Debt')},
  315. function(){if (Game.heavenlyChipsSpent>=777777) Game.Win('Payload')},
  316. function(){if (Game.heavenlyChipsSpent>=7777777) Game.Win('Big Spender')},
  317. function(){if (Game.heavenlyChipsSpent>=77777777) Game.Win('Profit Maximizer')},
  318. function(){if (Game.heavenlyChipsSpent>=777777777) Game.Win('True Heaven')},
  319. function(){if (Game.heavenlyChipsSpent>=7777777777) Game.Win('Maximum Overdrive')},
  320. function(){if (Game.heavenlyChipsSpent>=77777777777) Game.Win('Seven doesnt look like a number anymore')},
  321. function(){if (Game.heavenlyChipsSpent>=777777777777) Game.Win('Devoid Cookies')},
  322. function(){if (Game.seasonUses>=4) Game.Win('Ever changing seasons')},
  323. function(){if (Game.seasonUses>=7) Game.Win('Weekly')},
  324. function(){if (Game.seasonUses>=12) Game.Win('Monthly')},
  325. function(){if (Game.seasonUses>=16) Game.Win('Global Warming')},
  326. function(){if (Game.seasonUses>=24) Game.Win('Hourly')},
  327. function(){if (Game.seasonUses>=31) Game.Win('Daily')},
  328. function(){if (Game.seasonUses>=40) Game.Win('curse you time machine achievements')},
  329. function(){if (Game.resets>=150) Game.Win('Come Again!')},
  330. function(){if (name=='hal989') Game.Win('Demigod Complex')},
  331. function(){if (Game.shimmerTypes['golden'].n>=2) Game.Win('Double Trouble')},
  332. function(){if (name=='aktan') Game.Win('Quality Control')},
  333. function(){if (name=='xo') Game.Win('Quality Control')},
  334. function(){if (name=='flow') Game.Win('Quality Control')},
  335. function(){if (name=='chroma') Game.Win('Quality Control')},
  336. function(){if (name=='jasper83yt') Game.Win('Quality Control')},
  337. function(){if (name=='good hunter') Game.Win('Quality Control')},
  338. function(){if (name=='AdmiralA') Game.Win('Quality Control')},
  339. function(){if (Game.resets>=200) Game.Win('Frequent Flier')},
  340. function(){if (Game.resets>=250) Game.Win('Return to Sender')},
  341. function(){if (Game.missedGoldenClicks>=3) Game.Win('oops')},
  342. function(){if (Game.missedGoldenClicks>=13) Game.Win('Cursed')},
  343. function(){if (Game.missedGoldenClicks>=313) Game.Win('You think I\'m just gonna stand there and click it?')},
  344. function(){if (Game.missedGoldenClicks>=1313) Game.Win('Misfortune')},
  345. function(){if (Math.floor((Date.now()-Game.startDate)/1000/10)*10/60/60/24>=1) Game.Win('Casual')},
  346. function(){if (Math.floor((Date.now()-Game.startDate)/1000/10)*10/60/60/24>=7) Game.Win('A S C E N D')},
  347. function(){if (Math.floor((Date.now()-Game.startDate)/1000/10)*10/60/60/24>=14) Game.Win('Goodbyes are so hard')},
  348. function(){if (Math.floor((Date.now()-Game.startDate)/1000/10)*10/60/60/24>=30) Game.Win('YOAO')},
  349. function(){if (!Game.fullDate || (Date.now()-Game.fullDate)>=7*24*60*60*1000) Game.Win ('Beginner Gamer')},
  350. function(){if (!Game.fullDate || (Date.now()-Game.fullDate)>=14*24*60*60*1000) Game.Win ('Novice Gamer')},
  351. function(){if (!Game.fullDate || (Date.now()-Game.fullDate)>=30*24*60*60*1000) Game.Win ('Advanced Gamer')},
  352. function(){if (!Game.fullDate || (Date.now()-Game.fullDate)>=90*24*60*60*1000) Game.Win ('Expert Gamer')},
  353. function(){if (name.slice(-1).toLowerCase()=='s') Game.Win ('It\'s A Feature!')},
  354. /////////////////////////////
  355. // TIERED STUFF
  356. /////////////////////////////
  357. function(){var grandmas=0;
  358. var plain=0;
  359. var berrylium=0;
  360. var blueberrylium=0;
  361. var chalcedhoney=0;
  362. var buttergold=0;
  363. var sugarmuck=0;
  364. var jetmint=0;
  365. var cherrysilver=0;
  366. var hazelrald=0;
  367. var mooncandy=0;
  368. var astrofudge=0;
  369. var alabascream=0; //only 3 upgrades currently exist in this tier so unfortunately no achievement yet
  370. // CHECKING PLAIN UPGRADES
  371. //if (Game.Has('Reinforced index finger')) plain++
  372. //if (Game.Has('Plastic mouse')) plain++
  373. //if (Game.Has('Forwards from grandma')) plain++
  374. //if (Game.Has('Cheap hoes')) plain++
  375. //if (Game.Has('Sturdier conveyor belts')) plain++
  376. //if (Game.Has('Taller tellers')) plain++
  377. //if (Game.Has('Golden idols')) plain++
  378. //if (Game.Has('Pointier hats')) plain++
  379. //if (Game.Has('Vanilla nebulae')) plain++
  380. //if (Game.Has('Ancient tablet')) plain++
  381. if (Game.Has('Farmer grandmas')) grandmas++;
  382. if (Game.Has('Worker grandmas')) grandmas++;
  383. if (Game.Has('Miner grandmas')) grandmas++;
  384. if (Game.Has('Cosmic grandmas')) grandmas++;
  385. if (Game.Has('Transmuted grandmas')) grandmas++;
  386. if (Game.Has('Altered grandmas')) grandmas++;
  387. if (Game.Has('Grandmas\' grandmas')) grandmas++;
  388. if (Game.Has('Antigrandmas')) grandmas++;
  389. if (Game.Has('Rainbow grandmas')) grandmas++;
  390. if (Game.Has('Banker grandmas')) grandmas++;
  391. if (Game.Has('Priestess grandmas')) grandmas++;
  392. if (Game.Has('Witch grandmas')) grandmas++;
  393. if (Game.Has('Lucky grandmas')) grandmas++;
  394. //if (grandmas>=13) Game.Unlock('Family Reunion')}, //haha look what i did, reusing code and stuff
  395. //////////////////////////////////////////////////////////////////
  396. // CALCUATING MODDED CPS, SOMETHING I WISH ORTEIL MADE EASIER
  397. //////////////////////////////////////////////////////////////////
  398. //function(){var moddedcps=0;
  399. var moddedmultiplier=0;
  400. var totalcps=0;
  401. var gainedcookies=0;
  402. //if (Game.Has('Grandma\'s Cookies')) var moddedmultiplier=+1.04
  403. //var totalcps= Game.cookiesPs+moddedcps;
  404. //var gainedcookies = moddedmultiplier * totalcps
  405. //var gainedcookies=+moddedcps
  406. //var finalizedcps = gainedcookies/Game.fps;
  407. if (debug) Game.Popup('You have earned ' + finalizedcps + ' cookies this frame!');},
  408. ]
  409. ////////////////////////////////
  410. // MOD INSTALLED NOTIFICATION
  411. ////////////////////////////////
  412. Game.Win('Third-party')
  413. Game.Notify('Mod Installed!','Enjoy!',[16,5]);
  414. ////////////////////////////////
  415. // AUTOSAVE
  416. ////////////////////////////////
  417. function SaveHalData()
  418. {
  419.     x = 15;  // once every minute
  420. savecode = ["|"]
  421. if (Game.HasAchiev('Neverclick+')){savecode.push("ap");}
  422. if (Game.HasAchiev('Neverclick++')){savecode.push("va");}
  423. if (Game.HasAchiev('Hardcore+')){savecode.push("dp");}
  424. if (Game.HasAchiev('Kiloclicker I')){savecode.push("c1");}
  425. if (Game.HasAchiev('Kiloclicker II')){savecode.push("c2");}
  426. if (Game.HasAchiev('Kiloclicker III')){savecode.push("c3");}
  427. if (Game.HasAchiev('Double Trouble')){savecode.push("cg");}
  428. if (Game.HasAchiev('Hardcore++')){savecode.push("xa");}
  429. if (Game.HasAchiev('Demigod Complex')){savecode.push("za");}
  430. if (Game.HasAchiev('Quality Control')){savecode.push("ty");}
  431. if (Game.HasAchiev('nice try')){savecode.push("no");}
  432. if (Game.HasAchiev('YOAO')){savecode.push("dd");}
  433. if (Game.HasAchiev('A S C E N D')){savecode.push("ye");}
  434. if (Game.HasAchiev('Goodbyes are so hard')){savecode.push("aw");}
  435. if (Game.HasAchiev('Casual')){savecode.push("ez");}
  436. if (Game.HasAchiev('Knawledge')){savecode.push("aa");}
  437. if (Game.HasAchiev('Baby\'s First Buff')){savecode.push("bb");}
  438. if (Game.HasAchiev('Act 2')){savecode.push("cc");}
  439. if (Game.HasAchiev('Synergy')){savecode.push("ee");}
  440. if (Game.HasAchiev('ANOTHER ONE!')){savecode.push("ff");}
  441. if (Game.HasAchiev('Now THIS IS BREAKING!')){savecode.push("gg");}
  442. if (Game.HasAchiev('It\'s A Feature!')){savecode.push("hh");}
  443. if (Game.HasAchiev('You were so close...')){savecode.push("ii");}
  444. if (Game.HasAchiev('Seven doesnt look like a number anymore')){savecode.push("jj");}
  445. if (Game.HasAchiev('Maximum Overdrive')){savecode.push("kk");}
  446. if (Game.HasAchiev('Devoid Cookies')){savecode.push("kj");}
  447. var outputcode = savecode.join("|");
  448. localStorage.setItem('halsave', outputcode);
  449.  
  450.     setTimeout(SaveHalData, x*1000);
  451. }
  452. ////////////////////////////////
  453. // RUNNING FUNCTIONS
  454. ////////////////////////////////
  455. SaveHalData();
  456. ////////////////////////////////
  457. // MISC/OTHER COOL STUFF
  458. ////////////////////////////////
  459. console.log("A Dozen Cookies V2.5.3 By HAL989");
Add Comment
Please, Sign In to add comment