diff --git a/conf/individualProgression.conf.dist b/conf/individualProgression.conf.dist index 02127c7..338ed8f 100644 --- a/conf/individualProgression.conf.dist +++ b/conf/individualProgression.conf.dist @@ -188,3 +188,16 @@ IndividualProgression.SimpleConfigOverride = 1 # IndividualProgression.ProgressionLimit = 0 +# +# IndividualProgression.StartingProgression +# Description: If enabled, players will begin at this progression stage. +# Existing players who are at an earlier stage will be set to this stage upon log in. +# Please refer to IndividualProgression.h/ProgressionState enum for progression stage values. +# +# +# Default: 0 - Disabled +# 1-16 - Starting progression stage +# +# + + IndividualProgression.StartingProgression = 0 \ No newline at end of file diff --git a/src/IndividualProgression.cpp b/src/IndividualProgression.cpp index 3eb8889..c036205 100644 --- a/src/IndividualProgression.cpp +++ b/src/IndividualProgression.cpp @@ -6,7 +6,7 @@ static float vanillaPowerAdjustment, vanillaHealthAdjustment, tbcPowerAdjustment, tbcHealthAdjustment, vanillaHealingAdjustment, tbcHealingAdjustment, previousGearTuning; static bool enabled, questXpFix, hunterPetLevelFix, requirePreAQQuests, enforceGroupRules, fishingFix, simpleConfigOverride; -static int progressionLimit; +static int progressionLimit, startingProgression; static questXpMapType questXpMap; class gobject_ipp_wotlk : public GameObjectScript @@ -186,6 +186,7 @@ private: simpleConfigOverride = sConfigMgr->GetOption("IndividualProgression.SimpleConfigOverride", true); previousGearTuning = sConfigMgr->GetOption("IndividualProgression.PreviousGearTuning", 0.03); progressionLimit = sConfigMgr->GetOption("IndividualProgression.ProgressionLimit", 0); + startingProgression = sConfigMgr->GetOption("IndividualProgression.StartingProgression", 0); } void LoadXpValues() @@ -224,7 +225,7 @@ public: { sWorld->setIntConfig(CONFIG_WATER_BREATH_TIMER, 60000); // sWorld->setBoolConfig(CONFIG_OBJECT_QUEST_MARKERS, false); Waiting for PR merge: https://github.com/azerothcore/azerothcore-wotlk/pull/13013 -// sWorld->setBoolConfig(CONFIG_OBJECT_SPARKLES, false); Waiting for PR merge: https://github.com/azerothcore/azerothcore-wotlk/pull/13005 + sWorld->setBoolConfig(CONFIG_OBJECT_SPARKLES, false); } } }; @@ -431,6 +432,10 @@ public: void OnLogin(Player* player) override { + if (startingProgression && !hasPassedProgression(player, static_cast(startingProgression))) + { + UpdateProgressionState(player, static_cast(startingProgression)); + } CheckAdjustments(player); }