![]() |
TrinityCore
|
#include "Common.h"
Include dependency graph for SkillDiscovery.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| TC_GAME_API void | LoadSkillDiscoveryTable () |
| TC_GAME_API uint32 | GetSkillDiscoverySpell (uint32 skillId, uint32 spellId, Player *player) |
| TC_GAME_API bool | HasDiscoveredAllSpells (uint32 spellId, Player *player) |
| TC_GAME_API bool | HasDiscoveredAnySpell (uint32 spellId, Player *player) |
| TC_GAME_API uint32 | GetExplicitDiscoverySpell (uint32 spellId, Player *player) |
| TC_GAME_API uint32 GetExplicitDiscoverySpell | ( | uint32 | spellId, |
| Player * | player | ||
| ) |
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().
| TC_GAME_API uint32 GetSkillDiscoverySpell | ( | uint32 | skillId, |
| uint32 | spellId, | ||
| Player * | player | ||
| ) |
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().
| TC_GAME_API bool HasDiscoveredAllSpells | ( | uint32 | spellId, |
| Player * | player | ||
| ) |
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().
| TC_GAME_API bool HasDiscoveredAnySpell | ( | uint32 | spellId, |
| Player * | player | ||
| ) |
Definition at line 209 of file SkillDiscovery.cpp.
References Player::HasSpell(), and SkillDiscoveryStore.
Referenced by spell_gen_profession_research::HandleScript().
| TC_GAME_API 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().