diff --git a/structure/storefront.js b/structure/storefront.js index 572c306..0692dc4 100644 --- a/structure/storefront.js +++ b/structure/storefront.js @@ -1,7 +1,6 @@ const Express = require("express"); const express = Express.Router(); const functions = require("./functions.js"); -const catalog = functions.getItemShop(); const keychain = require("./../responses/keychain.json"); express.get("/fortnite/api/storefront/v2/catalog", async (req, res) => { @@ -9,6 +8,13 @@ express.get("/fortnite/api/storefront/v2/catalog", async (req, res) => { return res.status(404).end(); } + var catalog = functions.getItemShop(); + const memory = functions.GetVersionInfo(req); + + if (memory.build >= 30.10) { + catalog = JSON.parse(JSON.stringify(catalog).replace(/"Normal"/g, '"Size_1_x_2"')); + } + res.json(catalog); })