Attempt to fix any possible issue that might creep up when setting the multipliers to their default values.
This commit is contained in:
Revision
2022-01-10 00:28:30 +01:00
parent 46a7c22e53
commit 9a5930df20

View File

@@ -34,6 +34,8 @@ class WeekendBonusWorld : WorldScript
WeekendBonusWorld() : WorldScript("WeekendBonusWorld") {}
void OnAfterConfigLoad(bool reload) override
{
if (!reload)
{
rateExperienceKill = sWorld->getRate(RATE_XP_KILL);
rateExperienceBgKill = sWorld->getRate(RATE_XP_BG_KILL);
@@ -47,6 +49,7 @@ class WeekendBonusWorld : WorldScript
rateReputation = sWorld->getRate(RATE_REPUTATION_GAIN);
rateProficienciesDefense = sWorld->getIntConfig(CONFIG_SKILL_GAIN_DEFENSE);
rateProficienciesWeapons = sWorld->getIntConfig(CONFIG_SKILL_GAIN_WEAPON);
}
multiplierExperience = sConfigMgr->GetOption<uint32>("WeekendBonus.Multiplier.Experience", 2.0f);
multiplierMoney = sConfigMgr->GetOption<uint32>("WeekendBonus.Multiplier.Money", 2.0f);