Skip to content

Commit 4afa1c2

Browse files
authored
Merge pull request #34 from ProdigyMathGame/master
Implement Status Message
2 parents 167df3d + 52ddc92 commit 4afa1c2

File tree

4 files changed

+43
-15
lines changed

4 files changed

+43
-15
lines changed

cheatGUI/dist/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cheatGUI/src/hacks/battle.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ new Toggler(category.battle, "Instant Kill [PvE]", "Makes your spells do insane
4444

4545

4646

47+
// Begin PvP Health
48+
new Hack(category.battle, "PvP Health [PvP]", "Increases your HP in PvP by a hell ton.").setClick(async () => {
49+
_.player.pvpHP = VERY_LARGE_NUMBER;
50+
_.player.getMaxHearts = () => VERY_LARGE_NUMBER;
51+
Toast.fire("Success!", "You now have lots of health!", "success");
52+
});
53+
// End PvP Health
54+
55+
56+
4757
// Begin Escape Battle
4858
new Hack(category.battle, "Escape Battle [PvP, PvE]", "Escape any battle, PvP or PvE!").setClick(async () => {
4959
const currentState = game.state.current;

cheatGUI/src/hacks/player.ts

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-nocheck
2-
// Player Hacks
2+
// Player Hacks ⬛️🟧
33

44

55
// BEGIN IMPORTS
@@ -387,16 +387,6 @@ new Hack(category.player, "Set Losses").setClick(async () => {
387387

388388

389389

390-
// Begin PvP Health
391-
new Hack(category.player, "PvP Health").setClick(async () => {
392-
_.player.pvpHP = VERY_LARGE_NUMBER;
393-
_.player.getMaxHearts = () => VERY_LARGE_NUMBER;
394-
Toast.fire("Success!", "You now have lots of health!", "success");
395-
});
396-
// End PvP Health
397-
398-
399-
400390

401391
// Begin Toggle membership
402392
new Toggler(category.player, "Toggle membership").setEnabled(async () => {
@@ -656,7 +646,7 @@ new Hack(category.player, "Set Grade").setClick(async () => {
656646

657647

658648
(async () => {
659-
Swal.fire({
649+
await Swal.fire({
660650
title: "ProdigyPNP",
661651
html: `
662652
<p>
@@ -666,4 +656,30 @@ new Hack(category.player, "Set Grade").setClick(async () => {
666656
</p>
667657
`,
668658
icon: "info"
669-
})})();
659+
});
660+
661+
662+
663+
fetch(`https://raw.githubusercontent.com/ProdigyMathGame/development/master/cheatGUI/statusmessage.json?updated=${Date.now()}`).then(response => response.json()).then(async data => {
664+
665+
const enabled : boolean = data.enabled;
666+
667+
if (enabled.value === false) {
668+
return console.log("Status message is disabled.");
669+
} else {
670+
671+
await Swal.fire({
672+
title: data.title,
673+
html: data.html,
674+
icon: data.icon,
675+
});
676+
677+
}
678+
679+
});
680+
681+
682+
683+
684+
685+
})();

cheatGUI/statusmessage.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"enabled": true,
3-
"message": "<a>We are aware some hacks do not function in general, and most hacks don't work on Harmony Island.</a>"
3+
"title": "Status Message",
4+
"icon": "info",
5+
"html": "<a>We are aware some hacks do not function in general, and most hacks don't work on Harmony Island.</a>"
46
}

0 commit comments

Comments
 (0)