From 7780d4fc89839b9a283d69b659708bf29873eab9 Mon Sep 17 00:00:00 2001 From: Reece Dunham Date: Fri, 16 Feb 2024 09:42:38 -0500 Subject: [PATCH] Revert accidental change MK2 Co-authored-by: Pavel Alexandrov Signed-off-by: Reece Dunham --- components/candle/progressionService.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/components/candle/progressionService.ts b/components/candle/progressionService.ts index 1e03f9b4d..e6c3c5d60 100644 --- a/components/candle/progressionService.ts +++ b/components/candle/progressionService.ts @@ -187,16 +187,6 @@ export class ProgressionService { if (masteryData) { const previousLevel = locationData.Level - locationData.Level = clampValue( - isEvergreenContract - ? evergreenLevelForXp(locationData.Xp) - : sniperUnlockable - ? sniperLevelForXp(locationData.Xp) - : levelForXp(locationData.Xp), - 1, - maxLevel, - ) - locationData.Xp = clampValue( locationData.Xp + masteryXp + actionXp, 0, @@ -207,6 +197,16 @@ export class ProgressionService { : xpRequiredForLevel(maxLevel), ) + locationData.Level = clampValue( + isEvergreenContract + ? evergreenLevelForXp(locationData.Xp) + : sniperUnlockable + ? sniperLevelForXp(locationData.Xp) + : levelForXp(locationData.Xp), + 1, + maxLevel, + ) + // If mastery level has gone up, check if there are available drop rewards and award them if (locationData.Level > previousLevel) { const masteryLocationDrops = this.getLocationMasteryDrops(