This repository was archived by the owner on Mar 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ function showCookieHaxModMenu() {
2
+ let code = prompt("Enter the code to access the Cookie Hax mod menu:");
3
+ if (code !== "SUSSY123") {
4
+ alert("Invalid code. Access denied.");
5
+ return;
6
+ }
7
+
8
+ alert("Welcome to Cookie Hax 1.0!");
9
+
10
+ let achievementName = prompt("Enter the name of the achievement (or type 'SKIP' to skip):");
11
+ if (achievementName !== "SKIP") {
12
+ Game.Achievements[achievementName].won = 1;
13
+ }
14
+
15
+ let ascendAmount = parseInt(prompt("Enter the number of ascensions (1 or more) (or type 'SKIP' to skip):"));
16
+ if (!isNaN(ascendAmount) && ascendAmount !== "SKIP") {
17
+ Game.Ascend(ascendAmount);
18
+ }
19
+
20
+ let ascendTimer = parseInt(prompt("Enter the ascend timer value (in milliseconds) (or type 'SKIP' to skip):"));
21
+ if (!isNaN(ascendTimer) && ascendTimer !== "SKIP") {
22
+ Game.AscendTimer = ascendTimer;
23
+ }
24
+
25
+ let bakeryName = prompt("Enter the name for your bakery (or type 'SKIP' to skip):");
26
+ if (bakeryName !== "SKIP") {
27
+ Game.bakeryName = bakeryName;
28
+ Game.bakeryNameRefresh();
29
+ }
30
+
31
+ let numCookies = prompt("Enter the number of cookies (or type 'SKIP' to skip):");
32
+ if (!isNaN(numCookies) && numCookies !== "SKIP") {
33
+ Game.cookies = parseInt(numCookies);
34
+ }
35
+
36
+ // Continue adding prompts and corresponding mod functions below
37
+
38
+ alert("Modifications applied successfully!");
39
+ }
40
+
41
+ // Call the function to show the Cookie Hax mod menu
42
+ showCookieHaxModMenu();
You can’t perform that action at this time.
0 commit comments