From 30762efe5a0ae3f007de8a7da7a64b11bbb65637 Mon Sep 17 00:00:00 2001 From: VampireKitten Date: Fri, 21 Jun 2024 22:03:39 +0200 Subject: [PATCH] Add Infinite Platinum Option For players who want infinite platinum but still want to farm credits (like me). --- config.json.example | 1 + src/controllers/api/getCreditsController.ts | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/config.json.example b/config.json.example index e874d450..9b46d49f 100644 --- a/config.json.example +++ b/config.json.example @@ -16,6 +16,7 @@ "unlockAllQuests": true, "completeAllQuests": false, "infiniteResources": true, + "infinitePlatinum": true, "unlockAllShipFeatures": true, "unlockAllShipDecorations": true, "unlockAllFlavourItems": true, diff --git a/src/controllers/api/getCreditsController.ts b/src/controllers/api/getCreditsController.ts index 805b0505..38aa0e9f 100644 --- a/src/controllers/api/getCreditsController.ts +++ b/src/controllers/api/getCreditsController.ts @@ -22,6 +22,16 @@ export const getCreditsController: RequestHandler = async (req, res) => { }); return; } + + if (config.infinitePlatinum) { + res.json({ + RegularCredits: inventory.RegularCredits, + TradesRemaining: inventory.TradesRemaining, + PremiumCreditsFree: 999999999, + PremiumCredits: 999999999 + }); + return; + } const inventory = await getInventory(accountId); res.json({