Apply prettier changes

This commit is contained in:
AMelonInsideLemon 2024-06-26 13:28:33 +00:00 committed by github-actions[bot]
parent f78b75083b
commit 3c9da532a8

View File

@ -45,15 +45,17 @@ export const gildWeaponController: RequestHandler = async (req, res) => {
const weapon = inventory[data.Caterogy][weaponIndex];
weapon.Features = EquipmentFeatures.GILDING; // maybe 9 idk if DOUBLE_CAPACITY is also given
weapon.ItemName = data.ItemName
weapon.ItemName = data.ItemName;
weapon.XP = 0;
if(data.Caterogy != "OperatorAmps" && (data.PolarizeSlot && data.PolarizeValue)){
weapon.Polarity= [{
if (data.Caterogy != "OperatorAmps" && data.PolarizeSlot && data.PolarizeValue) {
weapon.Polarity = [
{
Slot: data.PolarizeSlot,
Value: data.PolarizeValue
}]
}
inventory[data.Caterogy][weaponIndex] = weapon
];
}
inventory[data.Caterogy][weaponIndex] = weapon;
await inventory.save();
res.json({