mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-12 18:32:23 +01:00
Set the default BR item shop config & more options
This commit is contained in:
@@ -1,35 +1,51 @@
|
||||
{
|
||||
"//": "BR Item Shop Config",
|
||||
"daily1": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_009_Athena_Commando_M"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/S29/DAv2_CID_009_Athena_Commando_M.DAv2_CID_009_Athena_Commando_M",
|
||||
"price": 800
|
||||
},
|
||||
"daily2": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_011_Athena_Commando_M"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/S30/DAv2_Character_Commando011.DAv2_Character_Commando011",
|
||||
"price": 800
|
||||
},
|
||||
"daily3": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_012_Athena_Commando_M"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_012_Athena_Commando_M.DAv2_CID_012_Athena_Commando_M",
|
||||
"price": 800
|
||||
},
|
||||
"daily4": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_013_Athena_Commando_F"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_013_F_Renegade.DAv2_CID_013_F_Renegade",
|
||||
"price": 800
|
||||
},
|
||||
"daily5": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_014_Athena_Commando_F"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_014_F_Pathfinder.DAv2_CID_014_F_Pathfinder",
|
||||
"price": 800
|
||||
},
|
||||
"daily6": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_015_Athena_Commando_F"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_015_Commando_F.DAv2_CID_015_Commando_F",
|
||||
"price": 800
|
||||
},
|
||||
"featured1": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_016_Athena_Commando_F"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_016_Commando_F.DAv2_CID_016_Commando_F",
|
||||
"price": 800
|
||||
},
|
||||
"featured2": {
|
||||
"itemGrants": [""],
|
||||
"price": 0
|
||||
"itemGrants": ["AthenaCharacter:CID_010_Athena_Commando_M"],
|
||||
"displayAssetPath": "",
|
||||
"NewDisplayAssetPath": "/OfferCatalog/NewDisplayAssets/DAv2_CID_010_M.DAv2_CID_010_M",
|
||||
"price": 800
|
||||
}
|
||||
}
|
||||
@@ -75,7 +75,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}],"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")) {
|
||||
catalog.storefronts.forEach((storefront, i) => {
|
||||
@@ -91,6 +91,8 @@ function getItemShop() {
|
||||
|
||||
CatalogEntry.requirements.push({ "requirementType": "DenyOnItemOwnership", "requiredId": CatalogConfig[value].itemGrants[x], "minQuantity": 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.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})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user