mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-07 03:17:22 -04:00
Adjust Total Achievement Count (#1924)
- Don't count the glitched achievements towards the total so that they appear over 100%
This commit is contained in:
@@ -217,7 +217,7 @@ void AchievementsWindow::updateTotal() {
|
||||
return;
|
||||
}
|
||||
const auto all = AchievementSystem::get().getAchievements();
|
||||
int total = static_cast<int>(all.size());
|
||||
const int total = std::count_if(all.begin(), all.end(), [](const Achievement& achievement){ return achievement.category != AchievementCategory::Glitched;});
|
||||
int unlocked = 0;
|
||||
for (const auto& a : all) {
|
||||
if (a.unlocked) {
|
||||
|
||||
Reference in New Issue
Block a user