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();
|
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)
|
bool ObjectMgr::CheckDeclinedNames(std::wstring w_ownname, DeclinedName const& names)
|
||||||
{
|
{
|
||||||
// get main part of the name
|
// get main part of the name
|
||||||
|
|||||||
@@ -1013,6 +1013,7 @@ class ObjectMgr
|
|||||||
void LoadPetNumber();
|
void LoadPetNumber();
|
||||||
void LoadCorpses();
|
void LoadCorpses();
|
||||||
void LoadFishingBaseSkillLevel();
|
void LoadFishingBaseSkillLevel();
|
||||||
|
void ChangeFishingBaseSkillLevel(uint32 entry, int32 skill);
|
||||||
|
|
||||||
void LoadReputationRewardRate();
|
void LoadReputationRewardRate();
|
||||||
void LoadReputationOnKill();
|
void LoadReputationOnKill();
|
||||||
|
|||||||
Reference in New Issue
Block a user