mirror of
https://github.com/noisiver/mod-weekendbonus.git
synced 2026-01-13 00:58:36 +00:00
Fix
Attempt to fix any possible issue that might creep up when setting the multipliers to their default values.
This commit is contained in:
@@ -34,6 +34,8 @@ class WeekendBonusWorld : WorldScript
|
|||||||
WeekendBonusWorld() : WorldScript("WeekendBonusWorld") {}
|
WeekendBonusWorld() : WorldScript("WeekendBonusWorld") {}
|
||||||
|
|
||||||
void OnAfterConfigLoad(bool reload) override
|
void OnAfterConfigLoad(bool reload) override
|
||||||
|
{
|
||||||
|
if (!reload)
|
||||||
{
|
{
|
||||||
rateExperienceKill = sWorld->getRate(RATE_XP_KILL);
|
rateExperienceKill = sWorld->getRate(RATE_XP_KILL);
|
||||||
rateExperienceBgKill = sWorld->getRate(RATE_XP_BG_KILL);
|
rateExperienceBgKill = sWorld->getRate(RATE_XP_BG_KILL);
|
||||||
@@ -47,6 +49,7 @@ class WeekendBonusWorld : WorldScript
|
|||||||
rateReputation = sWorld->getRate(RATE_REPUTATION_GAIN);
|
rateReputation = sWorld->getRate(RATE_REPUTATION_GAIN);
|
||||||
rateProficienciesDefense = sWorld->getIntConfig(CONFIG_SKILL_GAIN_DEFENSE);
|
rateProficienciesDefense = sWorld->getIntConfig(CONFIG_SKILL_GAIN_DEFENSE);
|
||||||
rateProficienciesWeapons = sWorld->getIntConfig(CONFIG_SKILL_GAIN_WEAPON);
|
rateProficienciesWeapons = sWorld->getIntConfig(CONFIG_SKILL_GAIN_WEAPON);
|
||||||
|
}
|
||||||
|
|
||||||
multiplierExperience = sConfigMgr->GetOption<uint32>("WeekendBonus.Multiplier.Experience", 2.0f);
|
multiplierExperience = sConfigMgr->GetOption<uint32>("WeekendBonus.Multiplier.Experience", 2.0f);
|
||||||
multiplierMoney = sConfigMgr->GetOption<uint32>("WeekendBonus.Multiplier.Money", 2.0f);
|
multiplierMoney = sConfigMgr->GetOption<uint32>("WeekendBonus.Multiplier.Money", 2.0f);
|
||||||
|
|||||||
Reference in New Issue
Block a user