mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-10 10:08:27 +00:00
fix: correct mission tracking (#1930)
checked that live captures did not track achievements in this count
This commit is contained in:
@@ -515,12 +515,12 @@ void CharacterComponent::RocketUnEquip(Entity* player) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CharacterComponent::TrackMissionCompletion(bool isAchievement) {
|
void CharacterComponent::TrackMissionCompletion(bool isAchievement) {
|
||||||
UpdatePlayerStatistic(MissionsCompleted);
|
|
||||||
|
|
||||||
// Achievements are tracked separately for the zone
|
// Achievements are tracked separately for the zone
|
||||||
if (isAchievement) {
|
if (isAchievement) {
|
||||||
const auto mapID = Game::zoneManager->GetZoneID().GetMapID();
|
const auto mapID = Game::zoneManager->GetZoneID().GetMapID();
|
||||||
GetZoneStatisticsForMap(mapID).m_AchievementsCollected++;
|
GetZoneStatisticsForMap(mapID).m_AchievementsCollected++;
|
||||||
|
} else {
|
||||||
|
UpdatePlayerStatistic(MissionsCompleted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user