add Naxx40 achievement (#823)

- add new naxx40 achievement
- separated patch-V.mpq from dbc.7z
This commit is contained in:
Grimfeather
2025-10-23 07:10:05 +02:00
committed by GitHub
parent 8ccc672f58
commit bbeb8609ac
7 changed files with 59 additions and 15 deletions

View File

@@ -269,6 +269,14 @@ void IndividualProgression::checkIPProgression(Player* killer)
}
return;
}
else if (killer->HasAchieved(KEL_THUZAD_40_KILL)) // 533
{
if (currentState < PROGRESSION_NAXX40)
{
UpdateProgressionState(killer, PROGRESSION_NAXX40);
}
return;
}
else if (killer->HasAchieved(C_THUN_KILL)) // 687
{
if (currentState < PROGRESSION_AQ)
@@ -342,6 +350,7 @@ void IndividualProgression::checkKillProgression(Player* killer, Creature* kille
case KELTHUZAD_40:
UpdateProgressionState(killer, PROGRESSION_NAXX40);
UpdateProgressionQuests(killer);
UpdateProgressionAchievements(killer, KEL_THUZAD_40_KILL);
break;
case MALCHEZAAR:
UpdateProgressionState(killer, PROGRESSION_TBC_TIER_1);
@@ -416,6 +425,16 @@ void IndividualProgression::UpdateProgressionQuests(Player* player)
}
}
void IndividualProgression::UpdateProgressionAchievements(Player* player, uint16 achievementID)
{
AchievementEntry const* entry = sAchievementStore.LookupEntry(achievementID);
if (entry)
{
player->CompletedAchievement(entry);
}
}
class IndividualPlayerProgression_WorldScript : public WorldScript
{
private: