Skip to content

Commit

Permalink
BU Support: handle rebirth
Browse files Browse the repository at this point in the history
Make sure character's experience is updated even when the expDifference is <= 0
  • Loading branch information
ethanmoffat committed Oct 30, 2024
1 parent 3dc4dc7 commit 04958a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EOLib/PacketHandlers/NPC/NPCDeathHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ protected void UpdatePlayerExperience(int experienceValue)
foreach (var notifier in _mainCharacterEventNotifiers)
notifier.NotifyGainedExp(expDifference);

UpdateCharacterStat(CharacterStat.Experience, experienceValue);

_characterSessionRepository.LastKillExp = expDifference;
if (expDifference > _characterSessionRepository.BestKillExp)
_characterSessionRepository.BestKillExp = expDifference;
_characterSessionRepository.TodayTotalExp += Convert.ToUInt64(Math.Max(expDifference, 0));
}

UpdateCharacterStat(CharacterStat.Experience, experienceValue);
}

protected void ApplyStats(LevelUpStats levelUpStats)
Expand Down

0 comments on commit 04958a1

Please sign in to comment.