feat: gilded weapons #410
@ -35,25 +35,27 @@ export const gildWeaponController: RequestHandler = async (req, res) => {
|
||||
|
||||
data.Caterogy = req.query.Category as WeaponTypeInternal | "Hoverboards";
|
||||
|
||||
const inventory = await getInventory(accountId);
|
||||
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.
|
||||
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.
|
||||
throw new Error(`Category ${req.query.Category} dont foudn in inventory`);
|
||||
}
|
||||
const weaponIndex = inventory[data.Caterogy].findIndex(x => String(x._id) === data.ItemId);
|
||||
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.
|
||||
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.
|
||||
throw new Error(`Weapon with ${data.ItemId} not found in category ${req.query.Category}`);
|
||||
}
|
||||
|
||||
const weapon = inventory[data.Caterogy][weaponIndex];
|
||||
weapon.Features = EquipmentFeatures.GILDING; // maybe 9 idk if DOUBLE_CAPACITY is also given
|
||||
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.
|
||||
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.
|
||||
weapon.XP = 0;
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
}
|
||||
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.
|
||||
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.
|
||||
await inventory.save();
|
||||
|
||||
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.