AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "SkillDiscovery.h"
#include "DatabaseEnv.h"
#include "Log.h"
#include "Player.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 std::unordered_map< int32, SkillDiscoveryList > | SkillDiscoveryMap |
Functions | |
void | LoadSkillDiscoveryTable () |
uint32 | GetExplicitDiscoverySpell (uint32 spellId, Player *player) |
bool | HasDiscoveredAllSpells (uint32 spellId, Player *player) |
uint32 | GetSkillDiscoverySpell (uint32 skillId, uint32 spellId, Player *player) |
Variables | |
static SkillDiscoveryMap | SkillDiscoveryStore |
typedef std::list<SkillDiscoveryEntry> SkillDiscoveryList |
typedef std::unordered_map<int32, SkillDiscoveryList> SkillDiscoveryMap |
References Player::GetPureSkillValue(), Player::GetSkillValue(), Player::HasSpell(), rand_chance(), SKILL_INSCRIPTION, SkillDiscoveryStore, sSpellMgr, and Player::UpdateGatherSkill().
Referenced by spell_gen_profession_research::HandleScript(), and spell_item_book_of_glyph_mastery::HandleScript().
References Player::GetSkillValue(), Player::HasSpell(), RATE_SKILL_DISCOVERY, roll_chance_f(), SkillDiscoveryStore, and sWorld.
Referenced by Player::UpdateCraftSkill().
References Player::HasSpell(), and SkillDiscoveryStore.
Referenced by spell_gen_profession_research::CheckRequirement(), and spell_item_book_of_glyph_mastery::CheckRequirement().
void LoadSkillDiscoveryTable | ( | ) |
References Field::Get(), getMSTime(), GetMSTimeDiffToNow(), SpellInfo::IsExplicitDiscovery(), LOG_ERROR, LOG_INFO, LOG_WARN, SpellInfo::Mechanic, MECHANIC_DISCOVERY, SkillDiscoveryStore, sSpellMgr, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadSkillDiscoveryTemplateCommand(), and World::SetInitialWorldSettings().
|
static |
Referenced by GetExplicitDiscoverySpell(), GetSkillDiscoverySpell(), HasDiscoveredAllSpells(), and LoadSkillDiscoveryTable().