This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
function showCookieHaxModMenu() { | ||
let code = prompt("Enter the code to access the Cookie Hax mod menu:"); | ||
if (code !== "SUSSY123") { | ||
alert("Invalid code. Access denied."); | ||
return; | ||
} | ||
|
||
alert("Welcome to Cookie Hax 1.0!"); | ||
|
||
let achievementName = prompt("Enter the name of the achievement (or type 'SKIP' to skip):"); | ||
if (achievementName !== "SKIP") { | ||
Game.Achievements[achievementName].won = 1; | ||
} | ||
|
||
let ascendAmount = parseInt(prompt("Enter the number of ascensions (1 or more) (or type 'SKIP' to skip):")); | ||
if (!isNaN(ascendAmount) && ascendAmount !== "SKIP") { | ||
Game.Ascend(ascendAmount); | ||
} | ||
|
||
let ascendTimer = parseInt(prompt("Enter the ascend timer value (in milliseconds) (or type 'SKIP' to skip):")); | ||
if (!isNaN(ascendTimer) && ascendTimer !== "SKIP") { | ||
Game.AscendTimer = ascendTimer; | ||
} | ||
|
||
let bakeryName = prompt("Enter the name for your bakery (or type 'SKIP' to skip):"); | ||
if (bakeryName !== "SKIP") { | ||
Game.bakeryName = bakeryName; | ||
Game.bakeryNameRefresh(); | ||
} | ||
|
||
let numCookies = prompt("Enter the number of cookies (or type 'SKIP' to skip):"); | ||
if (!isNaN(numCookies) && numCookies !== "SKIP") { | ||
Game.cookies = parseInt(numCookies); | ||
} | ||
|
||
// Continue adding prompts and corresponding mod functions below | ||
|
||
alert("Modifications applied successfully!"); | ||
} | ||
|
||
// Call the function to show the Cookie Hax mod menu | ||
showCookieHaxModMenu(); |