PrestigeHelper: fix wrongly awarding prestige+1 awards

This commit is contained in:
XeonDead
2025-07-20 08:56:00 +03:00
parent d7f7d6c3c6
commit 6e68e02636
@@ -30,7 +30,7 @@ public class PrestigeHelper(
var sessionId = newProfile.ProfileInfo.ProfileId;
var prestigeLevels = databaseService.GetTemplates().Prestige.Elements;
var indexOfPrestigeObtained = Math.Clamp(
(prestige.PrestigeLevel ?? 1),
(prestige.PrestigeLevel ?? 1) - 1,
0,
prestigeLevels.Count - 1
); // Levels are 1 to 4, Index is 0 to 3
@@ -39,7 +39,10 @@ public class PrestigeHelper(
var skillProgressCopyAmount = (float)(
1
- prestigeLevels[indexOfPrestigeObtained].TransferConfigs.SkillConfig.TransferMultiplier
- prestigeLevels[indexOfPrestigeObtained]
.TransferConfigs
.SkillConfig
.TransferMultiplier
);
var masteringProgressCopyAmount = (float)(
1