update infnodes when ranking up lich
This commit is contained in:
parent
66e197fe22
commit
78756133bf
@ -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 });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user