feat: gilded weapons #410
@ -35,25 +35,27 @@ export const gildWeaponController: RequestHandler = async (req, res) => {
|
|||||||
|
|||||||
data.Caterogy = req.query.Category as WeaponTypeInternal | "Hoverboards";
|
data.Caterogy = req.query.Category as WeaponTypeInternal | "Hoverboards";
|
||||||
|
|
||||||
const inventory = await getInventory(accountId);
|
const inventory = await getInventory(accountId);
|
||||||
if(!inventory[data.Caterogy]){
|
if (!inventory[data.Caterogy]) {
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
throw new Error(`Category ${req.query.Category} dont foudn in inventory`);
|
throw new Error(`Category ${req.query.Category} dont foudn in inventory`);
|
||||||
}
|
}
|
||||||
const weaponIndex = inventory[data.Caterogy].findIndex(x => String(x._id) === data.ItemId);
|
const weaponIndex = inventory[data.Caterogy].findIndex(x => String(x._id) === data.ItemId);
|
||||||
if(weaponIndex === -1){
|
if (weaponIndex === -1) {
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
throw new Error(`Weapon with ${data.ItemId} not found in category ${req.query.Category}`);
|
throw new Error(`Weapon with ${data.ItemId} not found in category ${req.query.Category}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const weapon = inventory[data.Caterogy][weaponIndex];
|
const weapon = inventory[data.Caterogy][weaponIndex];
|
||||||
weapon.Features = EquipmentFeatures.GILDING; // maybe 9 idk if DOUBLE_CAPACITY is also given
|
weapon.Features = EquipmentFeatures.GILDING; // maybe 9 idk if DOUBLE_CAPACITY is also given
|
||||||
weapon.ItemName = data.ItemName
|
weapon.ItemName = data.ItemName;
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
weapon.XP = 0;
|
weapon.XP = 0;
|
||||||
if(data.Caterogy != "OperatorAmps" && (data.PolarizeSlot && data.PolarizeValue)){
|
if (data.Caterogy != "OperatorAmps" && data.PolarizeSlot && data.PolarizeValue) {
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
weapon.Polarity= [{
|
weapon.Polarity = [
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
Slot: data.PolarizeSlot,
|
{
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
Value: data.PolarizeValue
|
Slot: data.PolarizeSlot,
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
}]
|
Value: data.PolarizeValue
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
|
}
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
|
];
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
}
|
}
|
||||||
inventory[data.Caterogy][weaponIndex] = weapon
|
inventory[data.Caterogy][weaponIndex] = weapon;
|
||||||
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
|
|||||||
await inventory.save();
|
await inventory.save();
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
|
|||||||
![]() caterogy caterogy
![]() caterogy caterogy
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() foudn foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() He's talking about the typo for "category". you wrote "caterogy" He's talking about the typo for "category". you wrote "caterogy"
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() oh thanks, I should probably get some sleep oh thanks, I should probably get some sleep
![]() all good lmao, sleep well. all good lmao, sleep well.
![]() all good lmao, sleep well. all good lmao, sleep well.
|
caterogy
caterogy
foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
foudn
"not" instead of "don't"
please be a bit more careful with your spelling, otherwise it gives the impression of rushing
In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
In the query the game sends - everything is capitalized, it would be wierd if one varible starts with a small letter
He's talking about the typo for "category". you wrote "caterogy"
He's talking about the typo for "category". you wrote "caterogy"
oh thanks, I should probably get some sleep
oh thanks, I should probably get some sleep
all good lmao, sleep well.
all good lmao, sleep well.