CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
ProdigyPNP

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: ProdigyPNP/ProdigyMathGameHacking
Path: blob/master/cheatGUI/src/hacks/minigame.ts
Views: 723
1
// Minigame Hacks
2
3
// BEGIN IMPORTS
4
import { category } from "../index"; // Import the Cheat GUI bases.
5
import Toggler from "../class/Toggler";
6
import { _ } from "../utils/util"; // Import Prodigy Typings.
7
import { Toast } from "../utils/swal"; // Import Toast and NumberInput from swal
8
// END IMPORTS
9
10
11
// BEGIN MINIGAME HACKS
12
13
14
15
// Begin 69x Walk Speed
16
new Toggler(category.minigames, "69x Walk Speed [Dyno Dig]", "Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(async () => {
17
_.instance.game.state.states.get("DinoDig").walkSpeed = 69;
18
return Toast.fire("Enabled!", "You will now walk so fast that you're teleporting in Dyno Dig.", "success");
19
20
}).setDisabled(async () => {
21
_.instance.game.state.states.get("DinoDig").walkSpeed = 1.5;
22
return Toast.fire("Disabled!", "You will now walk at normal speed, in Dyno Dig.", "success");
23
});
24
// End 69x Walk Speed
25
26
27
28
// END MINIGAME HACKS
29
30