diff --git a/responses/contentpages.json b/responses/contentpages.json index 82c259d..f1c6932 100644 --- a/responses/contentpages.json +++ b/responses/contentpages.json @@ -6319,5 +6319,35 @@ "lastModified": "2019-10-31T20:35:52.569Z", "_locale": "en-US" }, + "shopSections": { + "_title": "shop-sections", + "sectionList": { + "_type": "ShopSectionList", + "sections": [ + { + "bSortOffersByOwnership": false, + "bShowIneligibleOffersIfGiftable": false, + "bEnableToastNotification": true, + "background": { + "stage": "default", + "_type": "DynamicBackground", + "key": "vault" + }, + "_type": "ShopSection", + "landingPriority": 70, + "bHidden": false, + "sectionId": "Featured", + "bShowTimer": true, + "sectionDisplayName": "LawinServer Item Shop", + "bShowIneligibleOffers": true + } + ] + }, + "_noIndex": false, + "_activeDate": "2022-12-01T23:45:00.000Z", + "lastModified": "2022-12-01T21:50:44.089Z", + "_locale": "en-US", + "_templateName": "FortniteGameShopSections" + }, "_suggestedPrefetch": [] } \ No newline at end of file diff --git a/structure/functions.js b/structure/functions.js index ca5bc8e..37d0a2a 100644 --- a/structure/functions.js +++ b/structure/functions.js @@ -69,7 +69,7 @@ function getItemShop() { for (var value in CatalogConfig) { if (Array.isArray(CatalogConfig[value].itemGrants)) { if (CatalogConfig[value].itemGrants.length != 0) { - const CatalogEntry = {"devName":"","offerId":"","fulfillmentIds":[],"dailyLimit":-1,"weeklyLimit":-1,"monthlyLimit":-1,"categories":[],"prices":[{"currencyType":"MtxCurrency","currencySubType":"","regularPrice":0,"finalPrice":0,"saleExpiration":"9999-12-02T01:12:00Z","basePrice":0}],"matchFilter":"","filterWeight":0,"appStoreId":[],"requirements":[],"offerType":"StaticPrice","giftInfo":{"bIsEnabled":false,"forcedGiftBoxTemplateId":"","purchaseRequirements":[],"giftRecordIds":[]},"refundable":true,"metaInfo":[],"displayAssetPath":"","itemGrants":[],"sortPriority":0,"catalogGroupPriority":0}; + const CatalogEntry = {"devName":"","offerId":"","fulfillmentIds":[],"dailyLimit":-1,"weeklyLimit":-1,"monthlyLimit":-1,"categories":[],"prices":[{"currencyType":"MtxCurrency","currencySubType":"","regularPrice":0,"finalPrice":0,"saleExpiration":"9999-12-02T01:12:00Z","basePrice":0}],"meta":{"SectionId":"Featured","TileSize":"Small"},"matchFilter":"","filterWeight":0,"appStoreId":[],"requirements":[],"offerType":"StaticPrice","giftInfo":{"bIsEnabled":false,"forcedGiftBoxTemplateId":"","purchaseRequirements":[],"giftRecordIds":[]},"refundable":true,"metaInfo":[{"key":"SectionId","value":"Featured"},{"key":"TileSize","value":"Small"}],"displayAssetPath":"","itemGrants":[],"sortPriority":0,"catalogGroupPriority":0}; if (value.toLowerCase().startsWith("daily")) { catalog.storefronts.forEach((storefront, i) => { @@ -93,6 +93,9 @@ function getItemShop() { CatalogEntry.prices[0].regularPrice = CatalogConfig[value].price CatalogEntry.prices[0].finalPrice = CatalogConfig[value].price + // Make featured items appear on the left side of the screen + CatalogEntry.sortPriority = -1 + if (CatalogEntry.itemGrants.length != 0) { catalog.storefronts[i].catalogEntries.push(CatalogEntry); } @@ -122,6 +125,9 @@ function getItemShop() { CatalogEntry.prices[0].regularPrice = CatalogConfig[value].price CatalogEntry.prices[0].finalPrice = CatalogConfig[value].price + CatalogEntry.meta.TileSize = "Normal" + CatalogEntry.metaInfo[1].value = "Normal" + if (CatalogEntry.itemGrants.length != 0) { catalog.storefronts[i].catalogEntries.push(CatalogEntry); } diff --git a/structure/timeline.js b/structure/timeline.js index 2029694..c8e5e21 100644 --- a/structure/timeline.js +++ b/structure/timeline.js @@ -1163,6 +1163,9 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "weeklyStoreEnd": "9999-01-01T00:00:00Z", "stwEventStoreEnd": "9999-01-01T00:00:00.000Z", "stwWeeklyStoreEnd": "9999-01-01T00:00:00.000Z", + "sectionStoreEnds": { + "Featured": "9999-01-01T00:00:00.000Z" + }, "dailyStoreEnd": "9999-01-01T00:00:00Z" } }],