mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Bug fix for catalog
This commit is contained in:
@@ -70,14 +70,14 @@ function getItemShop() {
|
|||||||
CatalogEntry.requirements = [];
|
CatalogEntry.requirements = [];
|
||||||
CatalogEntry.itemGrants = [];
|
CatalogEntry.itemGrants = [];
|
||||||
|
|
||||||
for (var i in CatalogConfig[value].itemGrants) {
|
for (var x in CatalogConfig[value].itemGrants) {
|
||||||
if (typeof CatalogConfig[value].itemGrants[i] == "string") {
|
if (typeof CatalogConfig[value].itemGrants[x] == "string") {
|
||||||
if (CatalogConfig[value].itemGrants[i].length != 0) {
|
if (CatalogConfig[value].itemGrants[x].length != 0) {
|
||||||
CatalogEntry.devName = CatalogConfig[value].itemGrants[0]
|
CatalogEntry.devName = CatalogConfig[value].itemGrants[0]
|
||||||
CatalogEntry.offerId = CatalogConfig[value].itemGrants[0]
|
CatalogEntry.offerId = CatalogConfig[value].itemGrants[0]
|
||||||
|
|
||||||
CatalogEntry.requirements.push({ "requirementType": "DenyOnItemOwnership", "requiredId": CatalogConfig[value].itemGrants[i], "minQuantity": 1 })
|
CatalogEntry.requirements.push({ "requirementType": "DenyOnItemOwnership", "requiredId": CatalogConfig[value].itemGrants[x], "minQuantity": 1 })
|
||||||
CatalogEntry.itemGrants.push({ "templateId": CatalogConfig[value].itemGrants[i], "quantity": 1 });
|
CatalogEntry.itemGrants.push({ "templateId": CatalogConfig[value].itemGrants[x], "quantity": 1 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user