Set the default BR item shop config & more options

This commit is contained in:
PRO100KatYT
2025-12-04 23:18:09 +01:00
parent 464c1dd681
commit 3db11e222f
2 changed files with 46 additions and 17 deletions

View File

@@ -1,35 +1,51 @@
{ {
"//": "BR Item Shop Config", "//": "BR Item Shop Config",
"daily1": { "daily1": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_009_Athena_Commando_M"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/S29/DAv2_CID_009_Athena_Commando_M.DAv2_CID_009_Athena_Commando_M",
"price": 800
}, },
"daily2": { "daily2": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_011_Athena_Commando_M"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/S30/DAv2_Character_Commando011.DAv2_Character_Commando011",
"price": 800
}, },
"daily3": { "daily3": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_012_Athena_Commando_M"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_012_Athena_Commando_M.DAv2_CID_012_Athena_Commando_M",
"price": 800
}, },
"daily4": { "daily4": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_013_Athena_Commando_F"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_013_F_Renegade.DAv2_CID_013_F_Renegade",
"price": 800
}, },
"daily5": { "daily5": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_014_Athena_Commando_F"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_014_F_Pathfinder.DAv2_CID_014_F_Pathfinder",
"price": 800
}, },
"daily6": { "daily6": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_015_Athena_Commando_F"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_015_Commando_F.DAv2_CID_015_Commando_F",
"price": 800
}, },
"featured1": { "featured1": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_016_Athena_Commando_F"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_016_Commando_F.DAv2_CID_016_Commando_F",
"price": 800
}, },
"featured2": { "featured2": {
"itemGrants": [""], "itemGrants": ["AthenaCharacter:CID_010_Athena_Commando_M"],
"price": 0 "displayAssetPath": "",
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_010_M.DAv2_CID_010_M",
"price": 800
} }
} }

View File

@@ -75,7 +75,7 @@ function getItemShop() {
for (var value in CatalogConfig) { for (var value in CatalogConfig) {
if (Array.isArray(CatalogConfig[value].itemGrants)) { if (Array.isArray(CatalogConfig[value].itemGrants)) {
if (CatalogConfig[value].itemGrants.length != 0) { 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}],"meta":{"NewDisplayAssetPath":"","SectionId":"Featured","LayoutId":"LawinServer.99","TileSize":"Small","AnalyticOfferGroupId":"LawinServer/Attitude8","FirstSeen":"2/2/2020"},"matchFilter":"","filterWeight":0,"appStoreId":[],"requirements":[],"offerType":"StaticPrice","giftInfo":{"bIsEnabled":false,"forcedGiftBoxTemplateId":"","purchaseRequirements":[],"giftRecordIds":[]},"refundable":true,"metaInfo":[{"key":"NewDisplayAssetPath","value":"="},{"key":"SectionId","value":"Featured"},{"key":"LayoutId","value":"LawinServer.99"},{"key":"TileSize","value":"Small"},{"key":"AnalyticOfferGroupId","value":"LawinServer/Attitude8"},{"key":"FirstSeen","value":"2/2/2020"}],"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","LayoutId":"LawinServer.99","TileSize":"Small","AnalyticOfferGroupId":"LawinServer/Attitude8","FirstSeen":"2/2/2020","inDate":"2018-04-30T00:00:00.000Z","outDate":"9999-12-31T23:59:59.999Z","color1":"#50C878","color2":"#1B5E20","textBackgroundColor":"#0D3D0D"},"matchFilter":"","filterWeight":0,"appStoreId":[],"requirements":[],"offerType":"StaticPrice","giftInfo":{"bIsEnabled":false,"forcedGiftBoxTemplateId":"","purchaseRequirements":[],"giftRecordIds":[]},"refundable":true,"metaInfo":[{"key":"SectionId","value":"Featured"},{"key":"LayoutId","value":"LawinServer.99"},{"key":"TileSize","value":"Small"},{"key":"AnalyticOfferGroupId","value":"LawinServer/Attitude8"},{"key":"FirstSeen","value":"2/2/2020"},{"key":"inDate","value":"2018-04-30T00:00:00.000Z"},{"key":"outDate","value":"9999-12-31T23:59:59.999Z"},{"key":"color1","value":"#50C878"},{"key":"color2","value":"#1B5E20"},{"key":"textBackgroundColor","value":"#0D3D0D"}],"displayAssetPath":"","itemGrants":[],"sortPriority":0,"catalogGroupPriority":0};
if (value.toLowerCase().startsWith("daily")) { if (value.toLowerCase().startsWith("daily")) {
catalog.storefronts.forEach((storefront, i) => { catalog.storefronts.forEach((storefront, i) => {
@@ -91,6 +91,8 @@ function getItemShop() {
CatalogEntry.requirements.push({ "requirementType": "DenyOnItemOwnership", "requiredId": CatalogConfig[value].itemGrants[x], "minQuantity": 1 }) CatalogEntry.requirements.push({ "requirementType": "DenyOnItemOwnership", "requiredId": CatalogConfig[value].itemGrants[x], "minQuantity": 1 })
CatalogEntry.itemGrants.push({ "templateId": CatalogConfig[value].itemGrants[x], "quantity": 1 }); CatalogEntry.itemGrants.push({ "templateId": CatalogConfig[value].itemGrants[x], "quantity": 1 });
CatalogEntry.meta.templateId = CatalogConfig[value].itemGrants[x];
CatalogEntry.metaInfo.push({ "key": "templateId", "value": CatalogConfig[value].itemGrants[x] })
} }
} }
} }
@@ -123,6 +125,8 @@ function getItemShop() {
CatalogEntry.requirements.push({ "requirementType": "DenyOnItemOwnership", "requiredId": CatalogConfig[value].itemGrants[x], "minQuantity": 1 }) CatalogEntry.requirements.push({ "requirementType": "DenyOnItemOwnership", "requiredId": CatalogConfig[value].itemGrants[x], "minQuantity": 1 })
CatalogEntry.itemGrants.push({ "templateId": CatalogConfig[value].itemGrants[x], "quantity": 1 }); CatalogEntry.itemGrants.push({ "templateId": CatalogConfig[value].itemGrants[x], "quantity": 1 });
CatalogEntry.meta.templateId = CatalogConfig[value].itemGrants[x];
CatalogEntry.metaInfo.push({ "key":"templateId", "value": CatalogConfig[value].itemGrants[x] })
} }
} }
} }
@@ -140,6 +144,15 @@ function getItemShop() {
} }
}) })
} }
if (CatalogConfig[value].displayAssetPath.length != 0) {
CatalogEntry.meta.displayAssetPath = CatalogConfig[value].displayAssetPath;
CatalogEntry.metaInfo.push({"key":"displayAssetPath", "value": CatalogConfig[value].displayAssetPath})
}
if (CatalogConfig[value].NewDisplayAssetPath.length != 0) {
CatalogEntry.meta.NewDisplayAssetPath = CatalogConfig[value].NewDisplayAssetPath;
CatalogEntry.metaInfo.push({"key":"NewDisplayAssetPath", "value": CatalogConfig[value].NewDisplayAssetPath})
}
} }
} }
} }