Core/Skills: Add FishingBaseSkillLevel dynamic change method (#1511)
This commit is contained in:
parent
d584ec2dfb
commit
5d4248d171
2 changed files with 16 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue