feat: gilded weapons #410
@ -19,7 +19,7 @@ interface IGildWeaponRequest {
|
||||
|
||||
PolarizeSlot?: number;
|
||||
PolarizeValue?: ArtifactPolarity;
|
||||
ItemId: string;
|
||||
Caterogy: WeaponTypeInternal | "Hoverboards";
|
||||
![]() 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.
|
||||
Category: WeaponTypeInternal | "Hoverboards";
|
||||
![]() 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.
|
||||
}
|
||||
|
||||
// In export there no recipes for gild action, so reputation and ressources only consumed visually
|
||||
@ -30,24 +30,24 @@ export const gildWeaponController: RequestHandler = async (req, res) => {
|
||||
![]() 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.
|
||||
const data: IGildWeaponRequest = getJSONfromString(String(req.body));
|
||||
data.ItemId = String(req.query.ItemId);
|
||||
if (!modularWeaponCategory.includes(req.query.Category as WeaponTypeInternal | "Hoverboards")) {
|
||||
throw new Error(`unknown modular weapon Category: ${req.query.Category}`);
|
||||
![]() 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(`Unknown modular weapon Category: ${req.query.Category}`);
|
||||
![]() 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.
|
||||
}
|
||||
data.Caterogy = req.query.Category as WeaponTypeInternal | "Hoverboards";
|
||||
![]() 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.
|
||||
data.Category = req.query.Category as WeaponTypeInternal | "Hoverboards";
|
||||
![]() 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.
|
||||
|
||||
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.
|
||||
throw new Error(`Category ${req.query.Category} dont foudn in inventory`);
|
||||
![]() 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.Category]) {
|
||||
![]() 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} not found in inventory`);
|
||||
![]() 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.
|
||||
}
|
||||
const weaponIndex = inventory[data.Caterogy].findIndex(x => String(x._id) === data.ItemId);
|
||||
![]() 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.
|
||||
const weaponIndex = inventory[data.Category].findIndex(x => String(x._id) === data.ItemId);
|
||||
![]() 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) {
|
||||
throw new Error(`Weapon with ${data.ItemId} not found in category ${req.query.Category}`);
|
||||
}
|
||||
|
||||
const weapon = inventory[data.Caterogy][weaponIndex];
|
||||
![]() 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.Features = EquipmentFeatures.GILDING; // maybe 9 idk if DOUBLE_CAPACITY is also given
|
||||
![]() 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.
|
||||
const weapon = inventory[data.Category][weaponIndex];
|
||||
![]() 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.Features = EquipmentFeatures.GILDED; // maybe 9 idk if DOUBLE_CAPACITY is also given
|
||||
![]() 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;
|
||||
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.
|
||||
if (data.Category != "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 = [
|
||||
{
|
||||
Slot: data.PolarizeSlot,
|
||||
@ -55,12 +55,12 @@ export const gildWeaponController: RequestHandler = async (req, res) => {
|
||||
![]() 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.
|
||||
}
|
||||
];
|
||||
}
|
||||
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.Category][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({
|
||||
InventoryChanges: {
|
||||
[data.Caterogy]: [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.
|
||||
[data.Category]: [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
![]() 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.
|
@ -86,7 +86,7 @@ export enum EquipmentFeatures {
|
||||
DOUBLE_CAPACITY = 1,
|
||||
UTILITY_SLOT = 2,
|
||||
GRAVIMAG_INSTALLED = 4,
|
||||
GILDING = 8,
|
||||
GILDED = 8,
|
||||
ARCANE_SLOT = 32,
|
||||
INCARNON_GENESIS = 512
|
||||
}
|
||||
@ -113,7 +113,6 @@ export interface IEquipmentDatabase {
|
||||
Expiry?: IMongoDate;
|
||||
SkillTree?: string;
|
||||
ArchonCrystalUpgrades?: IArchonCrystalUpgrade[];
|
||||
ItemId: IOid;
|
||||
_id: Types.ObjectId;
|
||||
}
|
||||
|
||||
|
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.