![]() |
TrinityCore
|
#include "SkillExtraItems.h"#include "DatabaseEnv.h"#include "Log.h"#include "ObjectMgr.h"#include "Player.h"#include "SpellMgr.h"
Include dependency graph for SkillExtraItems.cpp:Go to the source code of this file.
Classes | |
| struct | SkillPerfectItemEntry |
| struct | SkillExtraItemEntry |
Typedefs | |
| typedef std::map< uint32, SkillPerfectItemEntry > | SkillPerfectItemMap |
| typedef std::map< uint32, SkillExtraItemEntry > | SkillExtraItemMap |
Functions | |
| void | LoadSkillPerfectItemTable () |
| void | LoadSkillExtraItemTable () |
| bool | CanCreatePerfectItem (Player *player, uint32 spellId, float &perfectCreateChance, uint32 &perfectItemType) |
| bool | CanCreateExtraItems (Player *player, uint32 spellId, float &additionalChance, uint8 &additionalMax) |
Variables | |
| SkillPerfectItemMap | SkillPerfectItemStore |
| SkillExtraItemMap | SkillExtraItemStore |
| typedef std::map<uint32, SkillExtraItemEntry> SkillExtraItemMap |
Definition at line 133 of file SkillExtraItems.cpp.
| typedef std::map<uint32, SkillPerfectItemEntry> SkillPerfectItemMap |
Definition at line 46 of file SkillExtraItems.cpp.
| bool CanCreateExtraItems | ( | Player * | player, |
| uint32 | spellId, | ||
| float & | additionalChance, | ||
| uint8 & | additionalMax | ||
| ) |
Definition at line 222 of file SkillExtraItems.cpp.
References SkillExtraItemEntry::additionalCreateChance, SkillExtraItemEntry::additionalMaxNum, Player::HasSpell(), SkillExtraItemEntry::requiredSpecialization, and SkillExtraItemStore.
Referenced by Spell::DoCreateItem().
| bool CanCreatePerfectItem | ( | Player * | player, |
| uint32 | spellId, | ||
| float & | perfectCreateChance, | ||
| uint32 & | perfectItemType | ||
| ) |
Definition at line 201 of file SkillExtraItems.cpp.
References Player::HasSpell(), SkillPerfectItemEntry::perfectCreateChance, SkillPerfectItemEntry::perfectItemType, SkillPerfectItemEntry::requiredSpecialization, and SkillPerfectItemStore.
Referenced by Spell::DoCreateItem().
| void LoadSkillExtraItemTable | ( | ) |
Definition at line 138 of file SkillExtraItems.cpp.
References SkillExtraItemEntry::additionalCreateChance, SkillExtraItemEntry::additionalMaxNum, DIFFICULTY_NONE, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), Field::GetUInt8(), SkillExtraItemEntry::requiredSpecialization, SkillExtraItemStore, sSpellMgr, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadSkillExtraItemTemplateCommand(), and World::SetInitialWorldSettings().
| void LoadSkillPerfectItemTable | ( | ) |
Definition at line 51 of file SkillExtraItems.cpp.
References DIFFICULTY_NONE, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), SkillPerfectItemEntry::perfectCreateChance, SkillPerfectItemEntry::perfectItemType, SkillPerfectItemEntry::requiredSpecialization, SkillPerfectItemStore, sObjectMgr, sSpellMgr, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadSkillPerfectItemTemplateCommand(), and World::SetInitialWorldSettings().
| SkillExtraItemMap SkillExtraItemStore |
Definition at line 135 of file SkillExtraItems.cpp.
Referenced by CanCreateExtraItems(), and LoadSkillExtraItemTable().
| SkillPerfectItemMap SkillPerfectItemStore |
Definition at line 48 of file SkillExtraItems.cpp.
Referenced by CanCreatePerfectItem(), and LoadSkillPerfectItemTable().