AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "SkillExtraItems.h"
#include "DatabaseEnv.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "SpellMgr.h"
#include <map>
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, int32 &newMaxOrEntry) |
Variables | |
SkillPerfectItemMap | SkillPerfectItemStore |
SkillExtraItemMap | SkillExtraItemStore |
typedef std::map<uint32, SkillExtraItemEntry> SkillExtraItemMap |
typedef std::map<uint32, SkillPerfectItemEntry> SkillPerfectItemMap |
bool canCreateExtraItems | ( | Player * | player, |
uint32 | spellId, | ||
float & | additionalChance, | ||
int32 & | newMaxOrEntry | ||
) |
References SkillExtraItemEntry::additionalCreateChance, Player::HasSpell(), SkillExtraItemEntry::newMaxOrEntry, SkillExtraItemEntry::requiredSpecialization, and SkillExtraItemStore.
Referenced by Spell::DoCreateItem().
bool CanCreatePerfectItem | ( | Player * | player, |
uint32 | spellId, | ||
float & | perfectCreateChance, | ||
uint32 & | perfectItemType | ||
) |
References Player::HasSpell(), SkillPerfectItemEntry::perfectCreateChance, SkillPerfectItemEntry::perfectItemType, SkillPerfectItemEntry::requiredSpecialization, and SkillPerfectItemStore.
Referenced by Spell::DoCreateItem().
void LoadSkillExtraItemTable | ( | ) |
References SkillExtraItemEntry::additionalCreateChance, Field::Get(), getMSTime(), GetMSTimeDiffToNow(), LOG_ERROR, LOG_INFO, LOG_WARN, SkillExtraItemEntry::newMaxOrEntry, SkillExtraItemEntry::requiredSpecialization, SkillExtraItemStore, sSpellMgr, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadSkillExtraItemTemplateCommand(), and World::SetInitialWorldSettings().
void LoadSkillPerfectItemTable | ( | ) |
References Field::Get(), getMSTime(), GetMSTimeDiffToNow(), LOG_ERROR, LOG_INFO, LOG_WARN, SkillPerfectItemEntry::perfectCreateChance, SkillPerfectItemEntry::perfectItemType, SkillPerfectItemEntry::requiredSpecialization, SkillPerfectItemStore, sObjectMgr, sSpellMgr, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadSkillPerfectItemTemplateCommand(), and World::SetInitialWorldSettings().
SkillExtraItemMap SkillExtraItemStore |
Referenced by canCreateExtraItems(), and LoadSkillExtraItemTable().
SkillPerfectItemMap SkillPerfectItemStore |
Referenced by CanCreatePerfectItem(), and LoadSkillPerfectItemTable().