mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
add Naxx40 achievement (#823)
- add new naxx40 achievement - separated patch-V.mpq from dbc.7z
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user