Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .claude/settings.json

This file was deleted.

18 changes: 9 additions & 9 deletions originGUI/dist/bundle.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion originGUI/src/hacks/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ new Hack(category.player, "Copy Account", "Copy Account From userID").setClick(a

// Only proceed with POST if confirmed
try {
await fetch(`https://api.prodigygame.com/game-api/v3/characters/${userID}`, {
const resp = await fetch(`https://api.prodigygame.com/game-api/v3/characters/${userID}`, {
headers: {
"Content-Type": "application/json",
Authorization: localStorage.JWT_TOKEN
Expand All @@ -685,6 +685,9 @@ new Hack(category.player, "Copy Account", "Copy Account From userID").setClick(a
}),
method: "POST"
});
if (!resp.ok) {
return Toast.fire("Error", `Failed to copy account: ${resp.status} ${resp.statusText}`, "error");
}
return Toast.fire("Success!", "Copied Account Successfully! Please reload.", "success");
} catch (err) {
return Toast.fire("Error", `Network error while copying account: ${err instanceof Error ? err.message : "Unknown error"}`, "error");
Expand Down
5 changes: 3 additions & 2 deletions originGUI/src/utils/fps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { wrapper } from "../index";
import { player } from "./util";

const FPSc = document.createElement("button"); // Create menu toggler
let fpsInterval: ReturnType<typeof setInterval> | null = null;
Expand All @@ -25,6 +26,6 @@ function activate () : void {


fpsInterval = setInterval(() => {
FPSc.innerText = _.player.game.fps._framerate.toFixed(2) + " FPS";
FPSc.innerText = player.game.fps._framerate.toFixed(2) + " FPS";
}, 300);
Comment thread
alexey-max-fedorov marked this conversation as resolved.
}
}