feat(Core): EnableLowLevelRegenBoost config option (#13035)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -2483,6 +2483,15 @@ Rate.Pet.LevelXP = 0.05
|
|||||||
|
|
||||||
WaterBreath.Timer = 180000
|
WaterBreath.Timer = 180000
|
||||||
|
|
||||||
|
#
|
||||||
|
# EnableLowLevelRegenBoost
|
||||||
|
# Description: Greatly increase Health and Mana regen rates for players under level 15 (Added in patch 3.3)
|
||||||
|
# Default: 1 - Enabled
|
||||||
|
# 0 - Disabled
|
||||||
|
#
|
||||||
|
|
||||||
|
EnableLowLevelRegenBoost = 1
|
||||||
|
|
||||||
#
|
#
|
||||||
# SkillGain.Crafting
|
# SkillGain.Crafting
|
||||||
# SkillGain.Defense
|
# SkillGain.Defense
|
||||||
|
|||||||
@@ -1850,7 +1850,7 @@ void Player::Regenerate(Powers power)
|
|||||||
bool recentCast = IsUnderLastManaUseEffect();
|
bool recentCast = IsUnderLastManaUseEffect();
|
||||||
float ManaIncreaseRate = sWorld->getRate(RATE_POWER_MANA);
|
float ManaIncreaseRate = sWorld->getRate(RATE_POWER_MANA);
|
||||||
|
|
||||||
if (getLevel() < 15)
|
if (sWorld->getBoolConfig(CONFIG_LOW_LEVEL_REGEN_BOOST) && getLevel() < 15)
|
||||||
ManaIncreaseRate = sWorld->getRate(RATE_POWER_MANA) * (2.066f - (getLevel() * 0.066f));
|
ManaIncreaseRate = sWorld->getRate(RATE_POWER_MANA) * (2.066f - (getLevel() * 0.066f));
|
||||||
|
|
||||||
if (recentCast) // Trinity Updates Mana in intervals of 2s, which is correct
|
if (recentCast) // Trinity Updates Mana in intervals of 2s, which is correct
|
||||||
@@ -1960,7 +1960,7 @@ void Player::RegenerateHealth()
|
|||||||
|
|
||||||
float HealthIncreaseRate = sWorld->getRate(RATE_HEALTH);
|
float HealthIncreaseRate = sWorld->getRate(RATE_HEALTH);
|
||||||
|
|
||||||
if (getLevel() < 15)
|
if (sWorld->getBoolConfig(CONFIG_LOW_LEVEL_REGEN_BOOST) && getLevel() < 15)
|
||||||
HealthIncreaseRate = sWorld->getRate(RATE_HEALTH) * (2.066f - (getLevel() * 0.066f));
|
HealthIncreaseRate = sWorld->getRate(RATE_HEALTH) * (2.066f - (getLevel() * 0.066f));
|
||||||
|
|
||||||
float addvalue = 0.0f;
|
float addvalue = 0.0f;
|
||||||
|
|||||||
@@ -176,6 +176,7 @@ enum WorldBoolConfigs
|
|||||||
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
||||||
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
||||||
CONFIG_OBJECT_SPARKLES,
|
CONFIG_OBJECT_SPARKLES,
|
||||||
|
CONFIG_LOW_LEVEL_REGEN_BOOST,
|
||||||
CONFIG_OBJECT_QUEST_MARKERS,
|
CONFIG_OBJECT_QUEST_MARKERS,
|
||||||
BOOL_CONFIG_VALUE_COUNT
|
BOOL_CONFIG_VALUE_COUNT
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -942,6 +942,8 @@ void World::LoadConfigSettings(bool reload)
|
|||||||
|
|
||||||
m_bool_configs[CONFIG_OBJECT_SPARKLES] = sConfigMgr->GetOption<bool>("Visibility.ObjectSparkles", true);
|
m_bool_configs[CONFIG_OBJECT_SPARKLES] = sConfigMgr->GetOption<bool>("Visibility.ObjectSparkles", true);
|
||||||
|
|
||||||
|
m_bool_configs[CONFIG_LOW_LEVEL_REGEN_BOOST] = sConfigMgr->GetOption<bool>("EnableLowLevelRegenBoost", true);
|
||||||
|
|
||||||
m_bool_configs[CONFIG_OBJECT_QUEST_MARKERS] = sConfigMgr->GetOption<bool>("Visibility.ObjectQuestMarkers", true);
|
m_bool_configs[CONFIG_OBJECT_QUEST_MARKERS] = sConfigMgr->GetOption<bool>("Visibility.ObjectQuestMarkers", true);
|
||||||
|
|
||||||
m_int_configs[CONFIG_MAIL_DELIVERY_DELAY] = sConfigMgr->GetOption<int32>("MailDeliveryDelay", HOUR);
|
m_int_configs[CONFIG_MAIL_DELIVERY_DELAY] = sConfigMgr->GetOption<int32>("MailDeliveryDelay", HOUR);
|
||||||
|
|||||||
Reference in New Issue
Block a user