update infnodes when ranking up lich
All checks were successful
Build / build (pull_request) Successful in 48s
Build / build (push) Successful in 1m28s

This commit is contained in:
Sainan 2025-04-12 20:02:31 +02:00
parent 66e197fe22
commit 78756133bf

View File

@ -132,6 +132,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
res.end(); res.end();
} else { } else {
inventory.Nemesis!.Rank += 1; inventory.Nemesis!.Rank += 1;
inventory.Nemesis!.InfNodes = getInfNodes(inventory.Nemesis!.Faction, inventory.Nemesis!.Rank);
await inventory.save(); await inventory.save();
res.json({ RankIncrease: 1 }); res.json({ RankIncrease: 1 });
} }