feat: gilded weapons #410
@ -19,7 +19,7 @@ interface IGildWeaponRequest {
|
|||||||
|
|||||||
PolarizeSlot?: number;
|
PolarizeSlot?: number;
|
||||||
PolarizeValue?: ArtifactPolarity;
|
PolarizeValue?: ArtifactPolarity;
|
||||||
ItemId: string;
|
ItemId: string;
|
||||||
Caterogy: WeaponTypeInternal | "Hoverboards";
|
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.
![]() 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
|
// 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));
|
const data: IGildWeaponRequest = getJSONfromString(String(req.body));
|
||||||
data.ItemId = String(req.query.ItemId);
|
data.ItemId = String(req.query.ItemId);
|
||||||
if (!modularWeaponCategory.includes(req.query.Category as WeaponTypeInternal | "Hoverboards")) {
|
if (!modularWeaponCategory.includes(req.query.Category as WeaponTypeInternal | "Hoverboards")) {
|
||||||
throw new Error(`unknown modular weapon Category: ${req.query.Category}`);
|
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.
![]() 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";
|
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.
![]() 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);
|
const inventory = await getInventory(accountId);
|
||||||
if (!inventory[data.Caterogy]) {
|
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.
![]() 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} 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.
![]() 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);
|
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.
![]() 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) {
|
if (weaponIndex === -1) {
|
||||||
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.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.
![]() 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
|
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.
![]() 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.ItemName = data.ItemName;
|
||||||
weapon.XP = 0;
|
weapon.XP = 0;
|
||||||
if (data.Caterogy != "OperatorAmps" && data.PolarizeSlot && data.PolarizeValue) {
|
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.
![]() 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 = [
|
||||||
{
|
{
|
||||||
Slot: data.PolarizeSlot,
|
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;
|
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.
![]() 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({
|
||||||
InventoryChanges: {
|
InventoryChanges: {
|
||||||
[data.Caterogy]: [weapon]
|
[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
![]() 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,
|
DOUBLE_CAPACITY = 1,
|
||||||
UTILITY_SLOT = 2,
|
UTILITY_SLOT = 2,
|
||||||
GRAVIMAG_INSTALLED = 4,
|
GRAVIMAG_INSTALLED = 4,
|
||||||
GILDING = 8,
|
GILDED = 8,
|
||||||
ARCANE_SLOT = 32,
|
ARCANE_SLOT = 32,
|
||||||
INCARNON_GENESIS = 512
|
INCARNON_GENESIS = 512
|
||||||
}
|
}
|
||||||
@ -113,7 +113,6 @@ export interface IEquipmentDatabase {
|
|||||||
Expiry?: IMongoDate;
|
Expiry?: IMongoDate;
|
||||||
SkillTree?: string;
|
SkillTree?: string;
|
||||||
ArchonCrystalUpgrades?: IArchonCrystalUpgrade[];
|
ArchonCrystalUpgrades?: IArchonCrystalUpgrade[];
|
||||||
ItemId: IOid;
|
|
||||||
_id: Types.ObjectId;
|
_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.