fix: add RemovedIdItems to valence fusion response (#1397)
All checks were successful
Build / build (18) (push) Successful in 39s
Build / build (20) (push) Successful in 1m12s
Build / build (22) (push) Successful in 36s
Build Docker image / docker (push) Successful in 50s

Reviewed-on: #1397
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-03-30 13:50:59 -07:00 committed by Sainan
parent 9e99d0370c
commit 01f04c287a

View File

@ -18,7 +18,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
const destFingerprint = JSON.parse(destWeapon.UpgradeFingerprint!) as IInnateDamageFingerprint;
const sourceFingerprint = JSON.parse(sourceWeapon.UpgradeFingerprint!) as IInnateDamageFingerprint;
// Upgrade destination damage type if desireed
// Update destination damage type if desired
if (body.UseSourceDmgType) {
destFingerprint.buffs[0].Tag = sourceFingerprint.buffs[0].Tag;
}
@ -42,7 +42,8 @@ export const nemesisController: RequestHandler = async (req, res) => {
await inventory.save();
res.json({
InventoryChanges: {
[body.Category]: [destWeapon.toJSON()]
[body.Category]: [destWeapon.toJSON()],
RemovedIdItems: [{ ItemId: body.SourceWeapon }]
}
});
} else if ((req.query.mode as string) == "p") {