Apply prettier changes
This commit is contained in:
parent
f78b75083b
commit
3c9da532a8
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user