fix: multiple syndicate level ups
All checks were successful
Build / build (pull_request) Successful in 44s
Build / build (push) Successful in 1m10s

Regression from 54a73ad5d7eab867a1701ccf66d56446db96c226 because I forgot that levelIncrease could now be >1
This commit is contained in:
Sainan 2025-06-13 02:58:00 +02:00
parent 3c019e41b9
commit 9c5164a989

View File

@ -37,7 +37,7 @@ export const syndicateSacrificeController: RequestHandler = async (request, resp
// Process sacrifices and rewards for every level we're reaching
const manifest = ExportSyndicates[data.AffiliationTag];
for (let level = oldLevel + levelIncrease; level <= data.SacrificeLevel; ++level) {
for (let level = oldLevel + Math.min(levelIncrease, 1); level <= data.SacrificeLevel; ++level) {
let sacrifice: ISyndicateSacrifice | undefined;
if (level == 0) {
sacrifice = manifest.initiationSacrifice;