Add config option for custom progression

This commit is contained in:
郑佩茹
2022-09-21 15:41:34 -06:00
parent e97afeee40
commit 4a6ad45951
4 changed files with 71 additions and 3 deletions

View File

@@ -209,7 +209,10 @@ public:
switch (quest->GetQuestId())
{
case MIGHT_OF_KALIMDOR:
sIndividualProgression->UpdateProgressionState(player, PROGRESSION_PRE_AQ);
if (!sIndividualProgression->disableDefaultProgression)
{
sIndividualProgression->UpdateProgressionState(player, PROGRESSION_PRE_AQ);
}
break;
case QUEST_MORROWGRAIN:
case QUEST_TROLL_NECKLACE:
@@ -257,6 +260,15 @@ public:
return;
}
if (sIndividualProgression->hasCustomProgressionValue(killed->GetEntry()))
{
sIndividualProgression->UpdateProgressionState(killer, static_cast<ProgressionState>(sIndividualProgression->customProgressionMap[killed->GetEntry()]));
}
if (sIndividualProgression->disableDefaultProgression)
{
return;
}
switch (killed->GetEntry())
{
case RAGNAROS: