mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 07:36:23 +00:00
Core/Skills: Add FishingBaseSkillLevel dynamic change method (#1511)
This commit is contained in:
committed by
Kargatum
parent
d584ec2dfb
commit
5d4248d171
@@ -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
|
||||
|
||||
@@ -1013,6 +1013,7 @@ class ObjectMgr
|
||||
void LoadPetNumber();
|
||||
void LoadCorpses();
|
||||
void LoadFishingBaseSkillLevel();
|
||||
void ChangeFishingBaseSkillLevel(uint32 entry, int32 skill);
|
||||
|
||||
void LoadReputationRewardRate();
|
||||
void LoadReputationOnKill();
|
||||
|
||||
Reference in New Issue
Block a user