mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Support changing starting progression state
This commit is contained in:
@@ -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
|
||||
@@ -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<bool>("IndividualProgression.SimpleConfigOverride", true);
|
||||
previousGearTuning = sConfigMgr->GetOption<float>("IndividualProgression.PreviousGearTuning", 0.03);
|
||||
progressionLimit = sConfigMgr->GetOption<uint8>("IndividualProgression.ProgressionLimit", 0);
|
||||
startingProgression = sConfigMgr->GetOption<uint8>("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<ProgressionState>(startingProgression)))
|
||||
{
|
||||
UpdateProgressionState(player, static_cast<ProgressionState>(startingProgression));
|
||||
}
|
||||
CheckAdjustments(player);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user