![]() |
TrinityCore
|
#include "SkillDiscovery.h"#include "DatabaseEnv.h"#include "DB2Stores.h"#include "Log.h"#include "Player.h"#include "Random.h"#include "SpellMgr.h"#include "SpellInfo.h"#include "World.h"#include <map>#include <sstream>
Include dependency graph for SkillDiscovery.cpp: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) |
| bool | HasDiscoveredAnySpell (uint32 spellId, Player *player) |
| uint32 | GetSkillDiscoverySpell (uint32 skillId, uint32 spellId, Player *player) |
Variables | |
| static SkillDiscoveryMap | SkillDiscoveryStore |
| typedef std::list<SkillDiscoveryEntry> SkillDiscoveryList |
Definition at line 43 of file SkillDiscovery.cpp.
| typedef std::unordered_map<int32, SkillDiscoveryList> SkillDiscoveryMap |
Definition at line 44 of file SkillDiscovery.cpp.
Definition at line 159 of file SkillDiscovery.cpp.
References Player::GetSkillValue(), Player::HasSpell(), rand_chance(), SkillDiscoveryStore, and sSpellMgr.
Referenced by spell_gen_profession_research::HandleScript(), and spell_item_book_of_glyph_mastery::HandleScript().
Definition at line 222 of file SkillDiscovery.cpp.
References Player::GetSkillValue(), Player::HasSpell(), RATE_SKILL_DISCOVERY, roll_chance(), SkillDiscoveryStore, and sWorld.
Referenced by Player::UpdateCraftSkill().
Definition at line 196 of file SkillDiscovery.cpp.
References Player::HasSpell(), and SkillDiscoveryStore.
Referenced by spell_gen_profession_research::CheckRequirement(), and spell_item_book_of_glyph_mastery::CheckRequirement().
Definition at line 209 of file SkillDiscovery.cpp.
References Player::HasSpell(), and SkillDiscoveryStore.
Referenced by spell_gen_profession_research::HandleScript().
| void LoadSkillDiscoveryTable | ( | ) |
Definition at line 48 of file SkillDiscovery.cpp.
References DIFFICULTY_NONE, Field::GetFloat(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt16(), Field::GetUInt32(), SpellInfo::Id, SpellInfo::IsExplicitDiscovery(), SpellInfo::Mechanic, MECHANIC_DISCOVERY, SkillDiscoveryStore, sSpellMgr, sSpellNameStore, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadSkillDiscoveryTemplateCommand(), and World::SetInitialWorldSettings().
|
static |
Definition at line 46 of file SkillDiscovery.cpp.
Referenced by GetExplicitDiscoverySpell(), GetSkillDiscoverySpell(), HasDiscoveredAllSpells(), HasDiscoveredAnySpell(), and LoadSkillDiscoveryTable().