From 206c9b79d310b2416c3aa2d6e0fe89eb0ca4b1ad Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 18 May 2024 01:19:46 +0000 Subject: [PATCH] Apply prettier changes --- src/controllers/api/inventoryController.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index bcd61ea8..4f64314a 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -51,7 +51,11 @@ const inventoryController: RequestHandler = async (request: Request, response: R if (config.unlockAllShipDecorations) inventoryResponse.ShipDecorations = allShipDecorations; if (config.unlockAllFlavourItems) inventoryResponse.FlavourItems = allFlavourItems satisfies IFlavourItem[]; - if (typeof config.spoofMasteryRank === "number" && config.spoofMasteryRank >= 0 && config.spoofMasteryRank <= 5030) { + if ( + typeof config.spoofMasteryRank === "number" && + config.spoofMasteryRank >= 0 && + config.spoofMasteryRank <= 5030 + ) { inventoryResponse.PlayerLevel = config.spoofMasteryRank; inventoryResponse.XPInfo = []; let numFrames = getExpRequiredForMr(config.spoofMasteryRank) / 6000; @@ -70,7 +74,7 @@ const getExpRequiredForMr = (rank: number): number => { if (rank <= 30) { return 2500 * rank * rank; } - return 2_250_000 + (147_500 * (rank - 30)); + return 2_250_000 + 147_500 * (rank - 30); }; export { inventoryController };