DarkSoul1800

Cookie Clicker: Darky's Achievement Package

Apr 24th, 2018
12,610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     /*
  2.  
  3.                                             + + + + DARKY'S ACHIEVEMENT PACKAGE + + + +
  4.  
  5.                                                         Version 1.5.1
  6.  
  7.     Currently contains 71 new achievements, 9 of them were taken from 100lol's "Bundle of Achievements" and brought to life!
  8.     Thanks to Aktan, trashboyjet and G lander for helping out with some of the code!
  9.     Some achievements use custom icons: Clicking Achievement icons from Gouchnox, 100lol, iwantdevil, sis, Xalum, Darky (me); "Buildings owned" and "Upgrades purchased" icons recolored in the style of the "300-500 of everything" Achievement icons by Darky (me).
  10.     Enjoy!
  11.  
  12.                                                     ~ ~ ~ CHANGELOG ~ ~ ~
  13.  
  14.                                                     Version 1.5.1 [30/11/19]
  15.  
  16.     • Thanks to G lander, this whole mess of a code is less of a whole mess of a code now.
  17.     • Changelog has been updated too, now you can see at what point of time in the past a certain update came out (I'll try to keep track of it from now on)
  18.     • At this point i wanna just quickly say thank you to everyone who has been using my mod so far and supported me, it's really a nice feeling knowing people enjoy and use what you have made. So: Thank you!!
  19.  
  20.                                                     Version 1.5 [28/09/19]
  21.  
  22.     • Another Cookie Clicker Update means a new Darky's Achievement Package Update as well!
  23.     • 550 of javascript console Achievement added
  24.     • Cookies from clicking expanded to 100 quattuordecillion
  25.     • Buildings owned expanded to 9,000
  26.     • Upgrades owned expanded to 500
  27.     • Replaced the meow sound effect with another when you load the mod.
  28.     • Replaced "Stop it, it clickles" and "I'm too old for this" icon with the new Iridyum tier and gave it's previous icon over to only "Keep up the click"
  29.     • Changed "Clicking is the new booping" to a different icon
  30.     • Icon credit: "Sike, thats the wrong achievement" by Darky (me); "How about we tap the cookie now" and "Cookie Destroyer" by Gouchnox; "Give it a click" by iwantdevil; "Clicking Frenzy: Our Lord and Saviour" by 100lol; "Hand-made cookies are still the best" by sis; "My strange clicking addiction" by Xalum
  31.  
  32.                                                     Version 1.4.2 [22/11/18]
  33.  
  34.     • Apparently the new and better ASS from Aktan wasn't fully functional, it was actually freezing the game for people who are already in late game i guess, so the Package was temporarily not working correctly but now its fixed again.
  35.     • Thanks to steinfg on Reddit for pointing that bad boy of an error out to me!
  36.  
  37.                                                     Version 1.4.1 [21/11/18]
  38.  
  39.     • Give it up for Aktan for making a new and better ASS to work with!
  40.  
  41.                                                     Version 1.4 [21/11/18]
  42.  
  43.     • Thanks to trashboyjet there's now a new ASS
  44.     • Also thanks to Aktan these new achievements now have their own crates and question marks to distinguish them better from the vanilla ones
  45.     • + new Achievement added but its a secret, shhh.
  46.  
  47.                                                     Version 1.3.1 [28/10/18]
  48.  
  49.     • + new Achievements added: Purchase all pastries, maybe cookies, not cookies and plant upgrades
  50.     • minor fixes
  51.  
  52.                                                     Version 1.3 [20/10/18]
  53.  
  54.     • 550 of fractal engines Achievement added
  55.     • Buildings owned expanded to 8,000
  56.     • x of everything expanded to 550 (yes)
  57.     • + new Shadow Achievements added: Dashnet reached 10, 25, 50 and 100 heralds
  58.     • changed "halsave" to "darkysave" (because that was causing problems if you used Hal's Mod, oops)
  59.  
  60.                                                     Version 1.2.ASS [12/08/18]
  61.  
  62.     • Just added an "Achievement Saving System"
  63.     • Imagine you just recently got that 700 Cursor Achievement and then you ascended, so you're back at 0, right?
  64.     • Then you reload the page and oh no, the mod is gone and with that mod also that achievement, right??
  65.     • Well with this ASS you keep that sweet 700 Cursor Achievement when you load the mod again, hooray!
  66.     • DISCLAIMER: Seems like this thing is broken though, like when you hard-reset and then load the mod again you just get the achievements again even though that shouldn't be possible. Not sure how to fix that, sorry.
  67.  
  68.                                                     Version 1.2 [12/08/18]
  69.  
  70.     • + new Achievement added: Purchase the 3 secret prestige upgrades
  71.     • + new Achievements added: Purchase 15, 30 and 60 prestige upgrades
  72.     • + new Achievements added: Purchase all fancy biscuits, all macarons, all popular biscuits and all rich butter cookies
  73.     • + new Achievements added: Reach Level 1 and 5 of every building
  74.     • + new Achievement added: Purrchase every Kitten Upgrade
  75.     • + new Achievements added: Purchase all Synergy I and Synergy II Upgrades
  76.     • + new Achievement added: Click the big Cookie 25,000 times
  77.     • + new Shadow Achievement added: Name yourself Darky
  78.     • + new Shadow Achievement added: Click 77,777 golden cookies
  79.     • Changed "Clicker" and "Advanced Clicker"'s icons to the unused stone versions of the mouse upgrades/achievements as well as moved their position next to the mouse achievements
  80.     • Thanks to Aktan again for helping me out with the 15; 30 and 60 prestige upgrades achievements!
  81.  
  82.                                                     Version 1.1 [08/08/18]
  83.  
  84.     • Oh look, a new Cookie Clicker Update (2.012). Because of this new Update I have to modify my achievements now too.
  85.     • 600 Cursor Achievement is now at 700, icon also changed to Cherrysilver tier
  86.     • Achievements from farms to chancemakers changed from 500 to 550, icons also changed to Alabascream tier.
  87.     • 100 octillion cookies from clicking achievement's icon changed to a...currently unused tier.
  88.     • Purchase 400 Upgrades
  89.     • Own 7000 Buildings
  90.  
  91.                                                     Version 1.0 [24/04/18]
  92.  
  93.     • 600 of a building for Cursor and Grandma
  94.     • 500 of a building for Farms to Chancemakers
  95.     • Cookies from clicking expanded to 1 decillion
  96.     • Buildings owned expanded to 6,000
  97.     • Purchase 300 Upgrades
  98.     • + new Achievements added: Click the big Cookie 1,000 and 10,000 times
  99.     • + new Achievements added: Reach prestige level 100 to 10 billion
  100.  
  101.     */
  102.  
  103.     //-------------------------------------------------------------------
  104.  
  105. {
  106.     /*
  107.     let Game = {
  108.         crate: () => { },
  109.         crateTooltip: () => { },
  110.         Achievement: class { construction() { Game.Achievements.push({ "order": 0 }) } },
  111.         hasAchievement: () => { },
  112.         Win: class { },
  113.         last: {},
  114.         Achievements: []
  115.     }*/
  116.  
  117.     let Achievement = function Achievement(name, desc, icon) {
  118.         let answer = new Game.Achievement(name, desc, icon);
  119.  
  120.         answer.darky = 1;
  121.  
  122.         return answer;
  123.     }
  124.  
  125.     let Win = function Win(what) {
  126.         Game.Win(what);
  127.         if (typeof Game.Achievements[what] !== "undefined" && Game.Achievements[what].darky == 1) {
  128.             DarkySave[what] = 1;
  129.             DarkySaveConfig();
  130.         }
  131.     }
  132.  
  133.     eval("Game.crate =" + Game.crate.toString().split("shadow';").join(" shadow';\n if (me.darky == 1) classes+=' darky';//Darky's achievement package injection").split("mysterious?").join("mysterious? (me.darky == 1) ? 'background-image:url(\\\'https://i.imgur.com/JKKvixm.png\\\')'/*Darky's achievement package injection*/ : "));
  134.  
  135.     eval("Game.crateTooltip = " + Game.crateTooltip.toString().split("if (mysterious) icon=[0,7];").join("if (mysterious) icon=[0,7]; if (mysterious && me.darky == 1) icon = [0, 0, 'https://i.imgur.com/JKKvixm.png']"));
  136.  
  137.     let style = document.createElement("style");
  138.     style.type = "text/css";
  139.     style.textContent = ".darky:before{background:url(https://i.imgur.com/q8nNdkI.png);background-position:120px 0px;}";
  140.     document.head.appendChild(style);
  141.  
  142.     //-------------------------------------------------------------------
  143.  
  144.     if(!Game.customCrate) Game.customCrate = []
  145.     Game.customCrate = Game.customCrate.concat([
  146.  
  147.         // ~ ~ ~ X OF BUILDINGS ~ ~ ~
  148.  
  149.         new Achievement("Squeak goes the mouse", "Have <b>700</b> cursors.", [0, 17], 1),
  150.         new Achievement("I'm too old for this", "Have <b>600</b> grandmas.", [1, 31], 1),
  151.         new Achievement("Gorden garden", "Have <b>550</b> farms.", [2, 30], 1),
  152.         new Achievement("A fine mine you got there", "Have <b>550</b> mines.", [3, 30], 1),
  153.         new Achievement("Working 24/7", "Have <b>550</b> factories.", [4, 30], 1),
  154.         new Achievement("Bank on it", "Have <b>550</b> banks.", [15, 30], 1),
  155.         new Achievement("Temple pun", "Have <b>550</b> temples.", [16, 30], 1),
  156.         new Achievement("It's magic, Joel!", "Have <b>550</b> wizard towers.", [17, 30], 1),
  157.         new Achievement("My shipment arrives in the morning", "Have <b>550</b> shipments.", [5, 30], 1),
  158.         new Achievement("Turning cookies into gold since 2013", "Have <b>550</b> alchemy labs.", [6, 30], 1),
  159.         new Achievement("A portal inside of a portal", "Have <b>550</b> portals.", [7, 30], 1),
  160.         new Achievement("It all began on the 8th of August, 2013", "Have <b>550</b> time machines.", [8, 30], 1),
  161.         new Achievement("AntimatterCon", "Have <b>550</b> antimatter condensers.", [13, 30], 1),
  162.         new Achievement("Stop being a prissm", "Have <b>550</b> prisms.", [14, 30], 1),
  163.         new Achievement("And yet you probably never got a blab", "Have <b>550</b> chancemakers.", [19, 30], 1),
  164.         new Achievement("Gouchnox", "Have <b>550</b> fractal engines.<q>69</q>", [20, 30], 1),
  165.         new Achievement("Follow the javascript", "Have <b>550</b> javascript consoles.", [32, 30], 1),
  166.  
  167.         // ~ ~ ~ COOKIES FROM CLICKING ~ ~ ~
  168.  
  169.         new Achievement("Stop it, it clickles", "Make <b>1 octillion</b> cookies from clicking.", [11, 31], 1),
  170.         new Achievement("Keep up the click", "Make <b>100 octillion</b> cookies from clicking.", [11, 21], 1),
  171.         new Achievement("Clicking is the new booping", "Make <b>10 nonillion</b> cookies from clicking.", [0, 34, "https://i.imgur.com/3jNJJNw.png"], 1),
  172.         new Achievement("The final click", "Make <b>1 decillion</b> cookies from clicking.<q>But its never over.</q>", [0, 46, "https://i.imgur.com/3jNJJNw.png"], 1),
  173.         new Achievement("Sike, thats the wrong achievement", "Make <b>100 decillion</b> cookies from clicking.<q>The last achievement wasn't the final one.</q>", [0, 5, "https://i.imgur.com/nv69nsg.png"], 1),
  174.         new Achievement("How about we tap the cookie now", "Make <b>10 undecillion</b> cookies from clicking.<q>I heard the mobile version is out now.</q>", [1, 5, "https://i.imgur.com/nv69nsg.png"], 1),
  175.         new Achievement("Cookie Destroyer", "Make <b>1 duodecillion</b> cookies from clicking.<q>Agent Johnson was here</q>", [2, 5, "https://i.imgur.com/nv69nsg.png"], 1),
  176.         new Achievement("Give it a click", "Make <b>100 duodecillion</b> cookies from clicking.", [3, 5, "https://i.imgur.com/nv69nsg.png"], 1),
  177.         new Achievement("Clicking Frenzy: Our Lord and Saviour", "Make <b>10 tredecillion</b> cookies from clicking.", [4, 5, "https://i.imgur.com/nv69nsg.png"], 1),
  178.         new Achievement("Hand-made cookies are still the best", "Make <b>1 quattuordecillion</b> cookies from clicking.", [5, 5, "https://i.imgur.com/nv69nsg.png"], 1),
  179.         new Achievement("My strange clicking addiction", "Make <b>100 quattuordecillion</b> cookies from clicking.", [6, 5, "https://i.imgur.com/nv69nsg.png"], 1),
  180.  
  181.         // ~ ~ ~ BUILDINGS ~ ~ ~
  182.  
  183.         new Achievement("Owner of Buildings", "Own <b>3000</b> buildings.", [0, 0, "https://i.imgur.com/GGrHHrA.png"], 1),
  184.         new Achievement("Build up", "Own <b>4000</b> buildings.", [1, 0, "https://i.imgur.com/GGrHHrA.png"], 1),
  185.         new Achievement("World-dominating company", "Own <b>5000</b> buildings.", [2, 0, "https://i.imgur.com/GGrHHrA.png"], 1),
  186.         new Achievement("Creator of the Cookieverse", "Own <b>6000</b> buildings.", [3, 0, "https://i.imgur.com/GGrHHrA.png"], 1),
  187.         new Achievement("Build until you can't build anymore", "Own <b>7000</b> buildings.", [4, 0, "https://i.imgur.com/GGrHHrA.png"], 1),
  188.         new Achievement("You built the guilt", "Own <b>8000</b> buildings.", [5, 0, "https://i.imgur.com/RWbOLsf.png"], 1),
  189.         new Achievement("Overlord", "Own <b>9000</b> buildings.", [6, 0, "https://i.imgur.com/S5BnOGU.png"], 1),
  190.  
  191.         // ~ ~ ~ UPGRADES ~ ~ ~
  192.  
  193.         new Achievement("Purchaser of Upgrades", "Purchase <b>300</b> upgrades.", [0, 1, "https://i.imgur.com/GGrHHrA.png"], 1),
  194.         new Achievement("Grade up", "Purchase <b>400</b> upgrades.", [1, 1, "https://i.imgur.com/GGrHHrA.png"], 1),
  195.         new Achievement("Earth-shattering association", "Purchase <b>500</b> upgrades.", [2, 1, "https://i.imgur.com/S5BnOGU.png"], 1),
  196.  
  197.         // ~ ~ ~ X OF EVERYTHING ~ ~ ~
  198.  
  199.         new Achievement("Quincentennial and a half", "Have at least <b>550 of everything</b>.<q>Yes I just did that.</q>", [29, 26], 1),
  200.  
  201.         // ~ ~ ~ BIG COOKIE CLICKS ~ ~ ~
  202.  
  203.         new Achievement("Clicker", "Click on the big cookie <b>1,000</b> times.", [11, 22], 1),
  204.         new Achievement("Advanced Clicker", "Click on the big cookie <b>10,000</b> times.", [11, 23], 1),
  205.         new Achievement("Expert Clicker", "Click on the big cookie <b>25,000</b> times.", [11, 24], 1),
  206.  
  207.         // ~ ~ ~ PRESTIGE LEVEL ~ ~ ~
  208.  
  209.         new Achievement("Heavenly", "Reach prestige level <b>100</b>.", [19, 7], 1),
  210.         new Achievement("Transcendent", "Reach prestige level <b>10,000</b>.", [18, 7], 1),
  211.         new Achievement("Higher energy state", "Reach prestige level <b>1 million</b>.", [17, 7], 1),
  212.         new Achievement("Omniverse", "Reach prestige level <b>100 million</b>.", [16, 7], 1),
  213.         new Achievement("The Ascendant", "Reach prestige level <b>10 billion</b>.", [15, 7], 1),
  214.  
  215.         // ~ ~ ~ PRESTIGE UPGRADES ~ ~ ~
  216.  
  217.         new Achievement("Secret fortune", "Purchase the <b>3 secret prestige upgrades</b>.<q>You got more than one ace up your sleeve, huh?", [24, 15], 1),
  218.         new Achievement("Pretty prestige", "Purchase <b>15</b> prestige upgrades.", [19, 48, "https://i.imgur.com/3jNJJNw.png"], 1),
  219.         new Achievement("Live and learn", "Purchase <b>30</b> prestige upgrades.<q>And never forget.", [19, 47, "https://i.imgur.com/3jNJJNw.png"], 1),
  220.         new Achievement("We will stay with you forever", "Purchase <b>60</b> prestige upgrades.<q>Don't reset us.</q>", [19, 46, "https://i.imgur.com/3jNJJNw.png"], 1),
  221.  
  222.         // ~ ~ ~ COOKIE UPGRADES ~ ~ ~
  223.  
  224.         new Achievement("Getting fancy", "Purchase <b>all fancy biscuits</b>.", [21, 8], 1),
  225.         new Achievement("Emmanuel Macaron", "Purchase <b>all macarons</b>.", [20, 8], 1),
  226.         new Achievement("You wanna be popular?", "Purchase <b>all popular biscuits</b>.", [20, 9], 1),
  227.         new Achievement("Rich butterfingers", "Purchase <b>all rich butter cookies</b>.", [21, 9], 1),
  228.         new Achievement("Pastries from the past", "Purchase <b>all pastries</b>.", [27, 29], 1),
  229.         new Achievement("Bake me, maybe?", "Purchase <b>all maybe cookies</b>.", [25, 29], 1),
  230.         new Achievement("Burger Clicker", "Purchase <b>all not cookies</b>.<q>Shoutout to the old Idle Game Maker!</q>", [26, 29], 1),
  231.         new Achievement("Collecting these is like growing plants", "Purchase <b>all plant upgrades</b>.<q>It takes a looooong time.</q>", [24, 25], 1),
  232.  
  233.         // ~ ~ ~ BUILDING LEVEL ~ ~ ~
  234.  
  235.         new Achievement("Level 1 complete!", "Reach level <b>1</b> of every building.", [0, 2, "https://i.imgur.com/GGrHHrA.png"], 1),
  236.         new Achievement("Five Hive", "Reach level <b>5</b> of every building.", [1, 2, "https://i.imgur.com/GGrHHrA.png"], 1),
  237.  
  238.         // ~ ~ ~ OTHER ~ ~ ~
  239.  
  240.         new Achievement("Purrfect Perfection", "Purrchase <b>every kitten upgrade</b>.<q>Are you sick of these puns yet?</q>", [26, 7], 1),
  241.         new Achievement("It's sweet, sweet, sweet Synergy", "Purchase <b>all Synergy I upgrades</b>.<q>It's ours for the baking.</q>", [9, 20], 1),
  242.         new Achievement("Out of Energy? Get Synergy!", "Purchase <b>all Synergy II upgrades</b>.", [9, 29], 1),
  243.         new Achievement("All you had to do was ask", "Click this custom achievement's slot.<q>Here you go.</q>", [2, 4, "https://i.imgur.com/sl3FeNY.png"], 1), Game.last.clickFunction = function () { if (!Game.HasAchiev("All you had to do was ask")) { PlaySound("snd/tick.mp3"); Win("All you had to do was ask"); } },
  244.  
  245.         // ~ ~ ~ SHADOW ~ ~ ~
  246.  
  247.         new Achievement("Mod-God complex", "Name yourself <b>Darky</b>.<q>Ducky.</q>", [2, 12], 1), Game.last.pool = "shadow",
  248.         new Achievement("Golden Jackpot", "Click <b>77,777 golden cookies</b>.", [0, 3, "https://i.imgur.com/GGrHHrA.png"], 1), Game.last.pool = "shadow",
  249.         new Achievement("I like playing supportive characters", "Dashnet reached <b>10</b> heralds.", [21, 29], 1), Game.last.pool = "shadow",
  250.         new Achievement("That's a lot of money", "Dashnet reached <b>25</b> heralds.", [21, 29], 1), Game.last.pool = "shadow",
  251.         new Achievement("You really want us to make games for you, huh?", "Dashnet reached <b>50</b> heralds.", [21, 29], 1), Game.last.pool = "shadow",
  252.         new Achievement("Thank you guys so much!", "Dashnet reached <b>100</b> heralds.", [21, 29], 1), Game.last.pool = "shadow",
  253.     ])
  254.  
  255.     //-------------------------------------------------------------------
  256.  
  257.     let Achievements = {}
  258.     Game.AchievementsById.forEach(achievement => {
  259.         Achievements[achievement.name] = achievement
  260.     })
  261.  
  262.     Achievements["Polymath"].order = 6008
  263.     Achievements["Renaissance baker"].order = 6009
  264.     Achievements["The elder scrolls"].order = 6010
  265.     Achievements["Sacrifice"].order = 30015
  266.     Achievements["Oblivion"].order = 30016
  267.     Achievements["From scratch"].order = 30017
  268.     Achievements["Third-party"].order = 30202
  269.     Achievements["Tabloid addiction"].order = 11002
  270.  
  271.     Achievements["Squeak goes the mouse"].order = 1060
  272.     Achievements["I'm too old for this"].order = 1110
  273.     Achievements["Gorden garden"].order = 1210
  274.     Achievements["A fine mine you got there"].order = 1310
  275.     Achievements["Working 24/7"].order = 1410
  276.     Achievements["My shipment arrives in the morning"].order = 1510
  277.     Achievements["Turning cookies into gold since 2013"].order = 1610
  278.     Achievements["A portal inside of a portal"].order = 1710
  279.     Achievements["It all began on the 8th of August, 2013"].order = 1810
  280.     Achievements["AntimatterCon"].order = 1910
  281.     Achievements["Stop being a prissm"].order = 2010
  282.     Achievements["Bank on it"].order = 1430
  283.     Achievements["Temple pun"].order = 1460
  284.     Achievements["It's magic, Joel!"].order = 1480
  285.     Achievements["And yet you probably never got a blab"].order = 2110
  286.     Achievements["Gouchnox"].order = 2210
  287.     Achievements["Follow the javascript"].order = 2310
  288.  
  289.     Achievements["Stop it, it clickles"].order = 1010
  290.     Achievements["Keep up the click"].order = 1011
  291.     Achievements["Clicking is the new booping"].order = 1012
  292.     Achievements["The final click"].order = 1013
  293.     Achievements["Sike, thats the wrong achievement"].order = 1014
  294.     Achievements["How about we tap the cookie now"].order = 1015
  295.     Achievements["Cookie Destroyer"].order = 1016
  296.     Achievements["Give it a click"].order = 1017
  297.     Achievements["Clicking Frenzy: Our Lord and Saviour"].order = 1018
  298.     Achievements["Hand-made cookies are still the best"].order = 1019
  299.     Achievements["My strange clicking addiction"].order = 1019
  300.  
  301.     Achievements["Owner of Buildings"].order = 5010
  302.     Achievements["Build up"].order = 5011
  303.     Achievements["World-dominating company"].order = 5012
  304.     Achievements["Creator of the Cookieverse"].order = 5013
  305.     Achievements["Build until you can't build anymore"].order = 5014
  306.     Achievements["You built the guilt"].order = 5015
  307.     Achievements["Overlord"].order = 5016
  308.  
  309.     Achievements["Purchaser of Upgrades"].order = 6001
  310.     Achievements["Grade up"].order = 6002
  311.     Achievements["Earth-shattering association"].order = 6003
  312.  
  313.     Achievements["Quincentennial and a half"].order = 7003
  314.  
  315.     Achievements["Heavenly"].order = 30010
  316.     Achievements["Transcendent"].order = 30011
  317.     Achievements["Higher energy state"].order = 30012
  318.     Achievements["Omniverse"].order = 30013
  319.     Achievements["The Ascendant"].order = 30014
  320.  
  321.     Achievements["Clicker"].order = 1020
  322.     Achievements["Advanced Clicker"].order = 1021
  323.     Achievements["Expert Clicker"].order = 1022
  324.  
  325.     Achievements["Secret fortune"].order = 32001
  326.  
  327.     Achievements["Getting fancy"].order = 21101
  328.     Achievements["Emmanuel Macaron"].order = 21102
  329.     Achievements["You wanna be popular?"].order = 21103
  330.     Achievements["Rich butterfingers"].order = 21104
  331.     Achievements["Pastries from the past"].order = 21105
  332.     Achievements["Bake me, maybe?"].order = 21106
  333.     Achievements["Burger Clicker"].order = 21107
  334.     Achievements["Collecting these is like growing plants"].order = 21108
  335.  
  336.     Achievements["Level 1 complete!"].order = 5017
  337.     Achievements["Five Hive"].order = 5018
  338.  
  339.     Achievements["Pretty prestige"].order = 6003
  340.     Achievements["Live and learn"].order = 6004
  341.     Achievements["We will stay with you forever"].order = 6005
  342.  
  343.     Achievements["Purrfect Perfection"].order = 21109
  344.     Achievements["It's sweet, sweet, sweet Synergy"].order = 6006
  345.     Achievements["Out of Energy? Get Synergy!"].order = 6007
  346.     Achievements["All you had to do was ask"].order = 11001
  347.  
  348.     Achievements["Mod-God complex"].order = 30201
  349.  
  350.     Object.values(Achievements).forEach(achievement => {
  351.         Game.AchievementsById[achievement.id] = achievement
  352.     })
  353.  
  354.     //-------------------------------------------------------------------
  355.  
  356.     Darky = {};
  357.     Darky.prestigeUpgradesOwned = 0;
  358.     let getTotalBuildings = () => {
  359.         let amount = 0
  360.         Game.ObjectsById.forEach(object => { amount += object.amount })
  361.         return amount
  362.     }
  363.  
  364.     let getMinimalBuildingAmount = () => {
  365.         let minimalAmount = Infinity
  366.         Game.ObjectsById.forEach(object => { minimalAmount = Math.min(minimalAmount, object.amount) })
  367.         return minimalAmount
  368.     }
  369.  
  370.     //-------------------------------------------------------------------
  371.  
  372.     Game.customChecks = Game.customChecks.concat([
  373.         function () { var count = 0; for (var i in Game.UpgradesById) { var me = Game.UpgradesById[i]; if (me.bought && me.pool == "prestige") count++; } Darky.prestigeUpgradesOwned = count; },
  374.  
  375.         function () { if (Game.Objects["Cursor"].amount >= 700) Win("Squeak goes the mouse") },
  376.         function () { if (Game.Objects["Grandma"].amount >= 600) Win("I'm too old for this") },
  377.         function () { if (Game.Objects["Farm"].amount >= 550) Win("Gorden garden") },
  378.         function () { if (Game.Objects["Mine"].amount >= 550) Win("A fine mine you got there") },
  379.         function () { if (Game.Objects["Factory"].amount >= 550) Win("Working 24/7") },
  380.         function () { if (Game.Objects["Bank"].amount >= 550) Win("Bank on it") },
  381.         function () { if (Game.Objects["Temple"].amount >= 550) Win("Temple pun") },
  382.         function () { if (Game.Objects["Wizard tower"].amount >= 550) Win("It's magic, Joel!") },
  383.         function () { if (Game.Objects["Shipment"].amount >= 550) Win("My shipment arrives in the morning") },
  384.         function () { if (Game.Objects["Alchemy lab"].amount >= 550) Win("Turning cookies into gold since 2013") },
  385.         function () { if (Game.Objects["Portal"].amount >= 550) Win("A portal inside of a portal") },
  386.         function () { if (Game.Objects["Time machine"].amount >= 550) Win("It all began on the 8th of August, 2013") },
  387.         function () { if (Game.Objects["Antimatter condenser"].amount >= 550) Win("AntimatterCon") },
  388.         function () { if (Game.Objects["Prism"].amount >= 550) Win("Stop being a prissm") },
  389.         function () { if (Game.Objects["Chancemaker"].amount >= 550) Win("And yet you probably never got a blab") },
  390.         function () { if (Game.Objects["Fractal engine"].amount >= 550) Win("Gouchnox") },
  391.         function () { if (Game.Objects["Javascript console"].amount >= 550) Win("Follow the javascript") },
  392.         function () { if (Game.handmadeCookies >= 1000000000000000000000000000) Win("Stop it, it clickles") },
  393.         function () { if (Game.handmadeCookies >= 100000000000000000000000000000) Win("Keep up the click") },
  394.         function () { if (Game.handmadeCookies >= 10000000000000000000000000000000) Win("Clicking is the new booping") },
  395.         function () { if (Game.handmadeCookies >= 1000000000000000000000000000000000) Win("The final click") },
  396.         function () { if (Game.handmadeCookies >= 100000000000000000000000000000000000) Win("Sike, thats the wrong achievement") },
  397.         function () { if (Game.handmadeCookies >= 10000000000000000000000000000000000000) Win("How about we tap the cookie now") },
  398.         function () { if (Game.handmadeCookies >= 1000000000000000000000000000000000000000) Win("Cookie Destroyer") },
  399.         function () { if (Game.handmadeCookies >= 100000000000000000000000000000000000000000) Win("Give it a click") },
  400.         function () { if (Game.handmadeCookies >= 10000000000000000000000000000000000000000000) Win("Clicking Frenzy: Our Lord and Saviour") },
  401.         function () { if (Game.handmadeCookies >= 1000000000000000000000000000000000000000000000) Win("Hand-made cookies are still the best") },
  402.         function () { if (Game.handmadeCookies >= 100000000000000000000000000000000000000000000000) Win("My strange clicking addiction") },
  403.         function () { if (getTotalBuildings() >= 3000) Win("Owner of Buildings") },
  404.         function () { if (getTotalBuildings() >= 4000) Win("Build up") },
  405.         function () { if (getTotalBuildings() >= 5000) Win("World-dominating company") },
  406.         function () { if (getTotalBuildings() >= 6000) Win("Creator of the Cookieverse") },
  407.         function () { if (getTotalBuildings() >= 7000) Win("Build until you can't build anymore") },
  408.         function () { if (getTotalBuildings() >= 8000) Win("You built the guilt") },
  409.         function () { if (getTotalBuildings() >= 9000) Win("Overlord") },
  410.         function () { if (Game.UpgradesOwned >= 300) Win("Purchaser of Upgrades") },
  411.         function () { if (Game.UpgradesOwned >= 400) Win("Grade up") },
  412.         function () { if (Game.UpgradesOwned >= 500) Win("Earth-shattering association") },
  413.         function () { if (getMinimalBuildingAmount() >= 550) Win("Quincentennial and a half") },
  414.         function () { if (Game.cookieClicks >= 1000) Win("Clicker") },
  415.         function () { if (Game.cookieClicks >= 10000) Win("Advanced Clicker") },
  416.         function () { if (Game.cookieClicks >= 25000) Win("Expert Clicker") },
  417.         function () { if (Game.prestige >= 100) Win("Heavenly") },
  418.         function () { if (Game.prestige >= 10000) Win("Transcendent") },
  419.         function () { if (Game.prestige >= 1000000) Win("Higher energy state") },
  420.         function () { if (Game.prestige >= 100000000) Win("Omniverse") },
  421.         function () { if (Game.prestige >= 10000000000) Win("The Ascendant") },
  422.         function () { if (Game.Has("Lucky digit") && Game.Has("Lucky number") && Game.Has("Lucky payout")) Win("Secret fortune") },
  423.         function () { if (Game.Has("Caramoas") && Game.Has("Sagalongs") && Game.Has("Shortfoils") && Game.Has("Win mints") && Game.Has("Fig gluttons") && Game.Has("Loreols") && Game.Has("Jaffa cakes") && Game.Has("Grease's cups") && Game.Has("Digits") && Game.Has("Bastenaken cookies") && Game.Has("Festivity loops") && Game.Has("Havabreaks") && Game.Has("Zilla wafers") && Game.Has("Dim Dams")) Win("You wanna be popular?") },
  424.         function () { if (Game.Has("Rose macarons") && Game.Has("Lemon macarons") && Game.Has("Chocolate macarons") && Game.Has("Pistachio macarons") && Game.Has("Hazelnut macarons") && Game.Has("Violet macarons") && Game.Has("Caramel macarons") && Game.Has("Licorice macarons")) Win("Emmanuel Macaron") },
  425.         function () { if (Game.Has("British tea biscuits") && Game.Has("Chocolate british tea biscuits") && Game.Has("Round british tea biscuits") && Game.Has("Round chocolate british tea biscuits") && Game.Has("Round british tea biscuits with heart motif") && Game.Has("Round chocolate british tea biscuits with heart motif")) Win("Getting fancy") },
  426.         function () { if (Game.Has("Butter horseshoes") && Game.Has("Butter pucks") && Game.Has("Butter knots") && Game.Has("Butter slabs") && Game.Has("Butter swirls")) Win("Rich butterfingers") },
  427.         function () { if (Game.Has("Profiteroles") && Game.Has("Jelly donut") && Game.Has("Glazed donut") && Game.Has("Chocolate cake") && Game.Has("Strawberry cake") && Game.Has("Apple pie") && Game.Has("Lemon meringue pie") && Game.Has("Butter croissant")) Win("Pastries from the past") },
  428.         function () { if (Game.Has("Cookie dough") && Game.Has("Burnt cookie") && Game.Has("A chocolate chip cookie but with the chips picked off for some reason") && Game.Has("Flavor text cookie") && Game.Has("High-definition cookie") && Game.Has("Crackers")) Win("Bake me, maybe?") },
  429.         function () { if (Game.Has("Toast") && Game.Has("Peanut butter & jelly") && Game.Has("Wookies") && Game.Has("Cheeseburger") && Game.Has("One lone chocolate chip") && Game.Has("Pizza") && Game.Has("Candy")) Win("Burger Clicker") },
  430.         function () { if (Game.Has("Elderwort biscuits") && Game.Has("Bakeberry cookies") && Game.Has("Wheat slims") && Game.Has("Duketater cookies") && Game.Has("Green yeast digestives") && Game.Has("Fern tea") && Game.Has("Ichor syrup")) Win("Collecting these is like growing plants") },
  431.         function () { if (Game.Objects["Cursor"].level && Game.Objects["Grandma"].level && Game.Objects["Farm"].level && Game.Objects["Factory"].level && Game.Objects["Mine"].level && Game.Objects["Bank"].level && Game.Objects["Temple"].level && Game.Objects["Wizard tower"].level && Game.Objects["Shipment"].level && Game.Objects["Alchemy lab"].level && Game.Objects["Portal"].level && Game.Objects["Time machine"].level && Game.Objects["Antimatter condenser"].level && Game.Objects["Prism"].level && Game.Objects["Chancemaker"] && Game.Objects["Fractal engine"].level && Game.Objects["Javascript console"].level >= 1) Win("Level 1 complete!") },
  432.         function () { if (Game.Objects["Cursor"].level && Game.Objects["Grandma"].level && Game.Objects["Farm"].level && Game.Objects["Factory"].level && Game.Objects["Mine"].level && Game.Objects["Bank"].level && Game.Objects["Temple"].level && Game.Objects["Wizard tower"].level && Game.Objects["Shipment"].level && Game.Objects["Alchemy lab"].level && Game.Objects["Portal"].level && Game.Objects["Time machine"].level && Game.Objects["Antimatter condenser"].level && Game.Objects["Prism"].level && Game.Objects["Chancemaker"] && Game.Objects["Fractal engine"].level && Game.Objects["Javascript console"].level >= 5) Win("Five Hive") },
  433.         function () { if (Darky.prestigeUpgradesOwned >= 15) Win("Pretty prestige") },
  434.         function () { if (Darky.prestigeUpgradesOwned >= 30) Win("Live and learn") },
  435.         function () { if (Darky.prestigeUpgradesOwned >= 60) Win("We will stay with you forever") },
  436.         function () { if (Game.Has("Kitten helpers") && Game.Has("Kitten workers") && Game.Has("Kitten engineers") && Game.Has("Kitten overseers") && Game.Has("Kitten managers") && Game.Has("Kitten accountants") && Game.Has("Kitten specialists") && Game.Has("Kitten experts") && Game.Has("Kitten consultants") && Game.Has("Kitten assistants to the regional manager") && Game.Has("Kitten marketeers") && Game.Has("Kitten analysts") && Game.Has("Kitten executives")) Win("Purrfect Perfection") },
  437.         function () { if (Game.Has("Future almanacs") && Game.Has("Seismic magic") && Game.Has("Quantum electronics") && Game.Has("Contracts from beyond") && Game.Has("Paganism") && Game.Has("Arcane knowledge") && Game.Has("Fossil fuels") && Game.Has("Primordial ores") && Game.Has("Infernal crops") && Game.Has("Relativistic parsec-skipping") && Game.Has("Extra physics funding") && Game.Has("Light magic") && Game.Has("Gemmed talismans") && Game.Has("Recursive mirrors") && Game.Has("Script grannies")) Win("It's sweet, sweet, sweet Synergy") },
  438.         function () { if (Game.Has("Rain prayer") && Game.Has("Asteroid mining") && Game.Has("Temporal overclocking") && Game.Has("Printing presses") && Game.Has("God particle") && Game.Has("Magical botany") && Game.Has("Shipyards") && Game.Has("Gold fund") && Game.Has("Abysmal glimmer") && Game.Has("Primeval glow") && Game.Has("Chemical proficiency") && Game.Has("Mystical energies") && Game.Has("Charm quarks") && Game.Has("Mice clicking mice") && Game.Has("Tombola computing")) Win("Out of Energy? Get Synergy!") },
  439.  
  440.         function () { if (Game.goldenClicks >= 77777) Win("Golden Jackpot") },
  441.         function () { if (name == "darky") Win("Mod-God complex") },
  442.         function () { if (Game.heralds >= 10) Win("I like playing supportive characters") },
  443.         function () { if (Game.heralds >= 25) Win("That's a lot of money") },
  444.         function () { if (Game.heralds >= 50) Win("You really want us to make games for you, huh?") },
  445.         function () { if (Game.heralds >= 100) Win("Thank you guys so much!") },
  446.     ])
  447.  
  448.     //-------------------------------------------------------------------
  449.  
  450.     DarkySavePrefix = "DarkyPackage";
  451.  
  452.     DarkySaveConfig = function () {
  453.         localStorage.setItem(DarkySavePrefix, JSON.stringify(DarkySave));
  454.     }
  455.  
  456.     DarkySaveDefault = function () {
  457.         DarkySave = {};
  458.         for (var i in Game.Achievements) {
  459.             var me = Game.Achievements[i];
  460.             if (me.darky == 1) {
  461.                 DarkySave[me.name] = 0;
  462.             }
  463.         }
  464.         DarkySaveConfig();
  465.     }
  466.  
  467.     DarkyLoadConfig = function () {
  468.         if (localStorage.getItem(DarkySavePrefix) != null) {
  469.             DarkySave = JSON.parse(localStorage.getItem(DarkySavePrefix));
  470.             for (var i in Game.Achievements) {
  471.                 var me = Game.Achievements[i];
  472.                 if (me.darky == 1) {
  473.                     if (typeof DarkySave[me.name] === "undefined") {
  474.                         DarkySave[me.name] = 0;
  475.                         DarkySaveConfig();
  476.                     }
  477.                     else if (DarkySave[me.name] == 1) {
  478.                         Win(me.name);
  479.                     }
  480.                 }
  481.             }
  482.         }
  483.         else {
  484.             DarkySaveDefault();
  485.         }
  486.     }
  487.  
  488.     let oldReset = Game.HardReset
  489.     Game.HardReset = new Proxy(oldReset, {
  490.         apply: function (func, thisArg, args) {
  491.             if (args[0] == 2) {
  492.                 DarkySaveDefault();
  493.             }
  494.             return func(...args).bind(thisArg);
  495.         }
  496.     })
  497.  
  498.     DarkyLoadConfig();
  499.  
  500.     //-------------------------------------------------------------------
  501.  
  502.     Game.Win("Third-party")
  503.     Game.Notify("Darky's Achievement Package", " <b>71</b> new Achievements have been added, enjoy and thank you for using my mod!", [17, 26, "https://i.imgur.com/3jNJJNw.png"]);
  504.     PlaySound("https://freesound.org/data/previews/203/203121_777645-lq.mp3");
  505.     Game.Notify('Outdated version', ' Hey there, you are currently playing the old and outdated Pastebin version 1.5.1 of <b>Darky\'s Achievement Package</b>. To get the newest version and upcoming future updates as well as the new mod <b>Darky\'s Armful Collection of Upgrades</b>, you should check out it\'s dedicated <a target="_blank" rel="noopener noreferrer" href="https://github.com/DarkSoul1800/DarkysBatch">Github</a> which also holds another new mod called <b>Darky\'s Achievements and Upgrades Batch</b> which features both the Package and the Collection in 1. This Pastebin version will <b>not</b> receive any more updates, so I recommend you switch over to the Github version. Thank you and I hope you continue to enjoy my mods!', [8, 0]);
  506. }
Advertisement
Add Comment
Please, Sign In to add comment