![]() |
TrinityCore
|
#include "Common.h"
Include dependency graph for ItemEnchantmentMgr.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| using | ItemRandomBonusListId = uint32 |
Functions | |
| TC_GAME_API void | LoadItemRandomBonusListTemplates () |
| TC_GAME_API ItemRandomBonusListId | GenerateItemRandomBonusListId (uint32 item_id) |
| TC_GAME_API float | GetRandomPropertyPoints (uint32 itemLevel, uint32 quality, uint32 inventoryType, uint32 subClass) |
| using ItemRandomBonusListId = uint32 |
Definition at line 23 of file ItemEnchantmentMgr.h.
| TC_GAME_API ItemRandomBonusListId GenerateItemRandomBonusListId | ( | uint32 | item_id | ) |
Definition at line 87 of file ItemEnchantmentMgr.cpp.
References ItemTemplate::RandomBonusListTemplateId, Trinity::Containers::SelectRandomWeightedContainerElement(), sObjectMgr, and TC_LOG_ERROR.
Referenced by Player::_StoreOrEquipNewItem(), Player::AddItem(), AuctionBotSeller::AddNewAuctions(), Spell::DoCreateItem(), misc_commandscript::HandleAddItemCommandHelper(), LootItem::LootItem(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), Player::RewardQuest(), Player::RewardQuestPackage(), and Player::StoreNewItemInBestSlots().
| TC_GAME_API float GetRandomPropertyPoints | ( | uint32 | itemLevel, |
| uint32 | quality, | ||
| uint32 | inventoryType, | ||
| uint32 | subClass | ||
| ) |
Definition at line 107 of file ItemEnchantmentMgr.cpp.
References RandPropPointsEntry::EpicF, RandPropPointsEntry::GoodF, INVTYPE_2HWEAPON, INVTYPE_BODY, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, ITEM_QUALITY_ARTIFACT, ITEM_QUALITY_EPIC, ITEM_QUALITY_HEIRLOOM, ITEM_QUALITY_LEGENDARY, ITEM_QUALITY_RARE, ITEM_QUALITY_UNCOMMON, ITEM_SUBCLASS_WEAPON_WAND, sRandPropPointsStore, and RandPropPointsEntry::SuperiorF.
Referenced by SpellEffectInfo::CalcBaseValue(), CalcPPMItemLevelMod(), and Item::GetItemStatValue().
| TC_GAME_API void LoadItemRandomBonusListTemplates | ( | ) |
Definition at line 41 of file ItemEnchantmentMgr.cpp.
References Field::GetFloat(), ItemBonusMgr::GetItemBonuses(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadItemRandomBonusListTemplatesCommand(), and World::SetInitialWorldSettings().