123 lines
3.1 KiB
JavaScript
123 lines
3.1 KiB
JavaScript
const constants = require("./constants");
|
|
const { CATEGORIES } = constants;
|
|
const { CATEGORY_ITEM, CATEGORY_AMMUNITION, CATEGORY_HARPOON, CATEGORY_DESIGN, CATEGORY_CANNON, CATEGORY_HARPOONER } = CATEGORIES;
|
|
|
|
const SHOP = [];
|
|
|
|
const SHOP_ENTRIES_BUY = {
|
|
|
|
};
|
|
|
|
module.exports = {
|
|
SHOP,
|
|
SHOP_ENTRIES_BUY
|
|
};
|
|
/*
|
|
const SHOP = {
|
|
[CATEGORY_ITEM]: {
|
|
|
|
},
|
|
[CATEGORY_AMMUNITION]: {
|
|
1: {
|
|
currency: 1,
|
|
unitPrice: 21,
|
|
maximumPlayerAmount: 1500,
|
|
maximumGlobalAmount: 2500,
|
|
shopCategoryID: 4,
|
|
isAvailable: () => true
|
|
},
|
|
2: {
|
|
currency: 1,
|
|
unitPrice: 21,
|
|
maximumPlayerAmount: 3000,
|
|
maximumGlobalAmount: 1000,
|
|
shopCategoryID: 4,
|
|
isAvailable: () => true
|
|
},
|
|
},
|
|
[CATEGORY_HARPOON]: {
|
|
1: {
|
|
currency: 1,
|
|
unitPrice: 21,
|
|
maximumPlayerAmount: 2000,
|
|
shopCategoryID: 6,
|
|
isAvailable: () => true
|
|
},
|
|
2: {
|
|
currency: 1,
|
|
unitPrice: 21,
|
|
maximumPlayerAmount: 2000,
|
|
shopCategoryID: 6,
|
|
isAvailable: () => true
|
|
},
|
|
3: {
|
|
currency: 1,
|
|
unitPrice: 21,
|
|
maximumPlayerAmount: 2000,
|
|
shopCategoryID: 6,
|
|
isAvailable: () => true
|
|
},
|
|
4: {
|
|
currency: 1,
|
|
unitPrice: 21,
|
|
maximumPlayerAmount: 2000,
|
|
shopCategoryID: 6,
|
|
isAvailable: () => true
|
|
}
|
|
},
|
|
[CATEGORY_DESIGN]: {
|
|
2: {
|
|
currency: 1,
|
|
unitPrice: 200_000,
|
|
maximumPlayerAmount: 1,
|
|
shopCategoryID: 2,
|
|
isAvailable: (player) => !player.inventory.hasDesign(2)
|
|
},
|
|
3: {
|
|
currency: 1,
|
|
unitPrice: 400_000,
|
|
maximumPlayerAmount: 1,
|
|
shopCategoryID: 2,
|
|
isAvailable: (player) => !player.inventory.hasDesign(3)
|
|
},
|
|
4: {
|
|
currency: 1,
|
|
unitPrice: 600_000,
|
|
maximumPlayerAmount: 1,
|
|
shopCategoryID: 2,
|
|
isAvailable: (player) => !player.inventory.hasDesign(4)
|
|
},
|
|
5: {
|
|
currency: 2,
|
|
unitPrice: 60_000,
|
|
maximumPlayerAmount: 1,
|
|
shopCategoryID: 2,
|
|
isAvailable: (player) => !player.inventory.hasDesign(5)
|
|
}
|
|
},
|
|
[CATEGORY_CANNON]: {
|
|
1: {
|
|
currency: 1,
|
|
unitPrice: 1_000_000,
|
|
maximumPlayerAmount: 10,
|
|
shopCategoryID: 3,
|
|
isAvailable: () => true
|
|
},
|
|
2: {
|
|
currency: 1,
|
|
unitPrice: 1_000_000,
|
|
maximumPlayerAmount: 10,
|
|
shopCategoryID: 3,
|
|
isAvailable: () => true
|
|
},
|
|
},
|
|
[CATEGORY_HARPOONER]: {
|
|
1: {
|
|
currency: 1,
|
|
unitPrice: 1_000_000,
|
|
maximumPlayerAmount: 10,
|
|
shopCategoryID: 5,
|
|
isAvailable: () => true
|
|
}
|
|
}
|
|
};*/ |