Core/Skills: Add FishingBaseSkillLevel dynamic change method (#1511)

This commit is contained in:
Dmitry Brusenskiy
2019-02-22 04:10:31 +03:00
committed by Kargatum
parent d584ec2dfb
commit 5d4248d171
2 changed files with 16 additions and 0 deletions

View File

@@ -7796,6 +7796,21 @@ void ObjectMgr::LoadFishingBaseSkillLevel()
sLog->outString();
}
void ObjectMgr::ChangeFishingBaseSkillLevel(uint32 entry, int32 skill)
{
AreaTableEntry const* fArea = sAreaTableStore.LookupEntry(entry);
if (!fArea)
{
sLog->outErrorDb("AreaId %u defined in `skill_fishing_base_level` does not exist", entry);
return;
}
_fishingBaseForAreaStore[entry] = skill;
sLog->outString(">> Fishing base skill level of area %u changed to %u", entry, skill);
sLog->outString();
}
bool ObjectMgr::CheckDeclinedNames(std::wstring w_ownname, DeclinedName const& names)
{
// get main part of the name

View File

@@ -1013,6 +1013,7 @@ class ObjectMgr
void LoadPetNumber();
void LoadCorpses();
void LoadFishingBaseSkillLevel();
void ChangeFishingBaseSkillLevel(uint32 entry, int32 skill);
void LoadReputationRewardRate();
void LoadReputationOnKill();