|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include "DatabaseEnv.h"#include "Log.h"#include "Player.h"#include "SkillDiscovery.h"#include "SpellInfo.h"#include "SpellMgr.h"#include "Util.h"#include "World.h"#include <map>Go to the source code of this file.
Classes | |
| struct | SkillDiscoveryEntry |
Typedefs | |
| typedef std::list< SkillDiscoveryEntry > | SkillDiscoveryList |
| typedef UNORDERED_MAP< int32, SkillDiscoveryList > | SkillDiscoveryMap |
Functions | |
| uint32 | GetExplicitDiscoverySpell (uint32 spellId, Player *player) |
| uint32 | GetSkillDiscoverySpell (uint32 skillId, uint32 spellId, Player *player) |
| bool | HasDiscoveredAllSpells (uint32 spellId, Player *player) |
| void | LoadSkillDiscoveryTable () |
Variables | |
| static SkillDiscoveryMap | SkillDiscoveryStore |
| typedef std::list<SkillDiscoveryEntry> SkillDiscoveryList |
Definition at line 29 of file SkillDiscovery.cpp.
Definition at line 30 of file SkillDiscovery.cpp.
Definition at line 144 of file SkillDiscovery.cpp.
References Player::GetSkillValue(), Player::HasSpell(), rand_chance(), SkillDiscoveryStore, and sSpellMgr.
Referenced by spell_gen_profession_research::spell_gen_profession_research_SpellScript::HandleScript(), and spell_item_book_of_glyph_mastery::spell_item_book_of_glyph_mastery_SpellScript::HandleScript().
Definition at line 194 of file SkillDiscovery.cpp.
References Player::GetSkillValue(), Player::HasSpell(), RATE_SKILL_DISCOVERY, roll_chance_f(), SkillDiscoveryStore, and sWorld.
Referenced by Player::UpdateCraftSkill().
Definition at line 181 of file SkillDiscovery.cpp.
References Player::HasSpell(), and SkillDiscoveryStore.
Referenced by spell_gen_profession_research::spell_gen_profession_research_SpellScript::CheckRequirement(), and spell_item_book_of_glyph_mastery::spell_item_book_of_glyph_mastery_SpellScript::CheckRequirement().
| void LoadSkillDiscoveryTable | ( | ) |
Definition at line 34 of file SkillDiscovery.cpp.
References Field::GetFloat(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt16(), Field::GetUInt32(), SpellInfo::IsExplicitDiscovery(), SpellInfo::Mechanic, MECHANIC_DISCOVERY, SF_LOG_ERROR, SF_LOG_INFO, SkillDiscoveryStore, sSpellMgr, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadSkillDiscoveryTemplateCommand(), and World::SetInitialWorldSettings().
|
static |
Definition at line 32 of file SkillDiscovery.cpp.
Referenced by GetExplicitDiscoverySpell(), GetSkillDiscoverySpell(), HasDiscoveredAllSpells(), and LoadSkillDiscoveryTable().