![]() |
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.
Functions | |
| TC_GAME_API void | LoadRandomEnchantmentsTable () |
| TC_GAME_API int32 | GenerateItemRandomPropertyId (uint32 item_id) |
| TC_GAME_API uint32 | GetItemEnchantMod (int32 entry) |
| TC_GAME_API uint32 | GenerateEnchSuffixFactor (uint32 item_id) |
| TC_GAME_API uint32 | GetRandomPropertyPoints (uint32 itemLevel, uint32 quality, uint32 inventoryType) |
| TC_GAME_API uint32 GenerateEnchSuffixFactor | ( | uint32 | item_id | ) |
Definition at line 168 of file ItemEnchantmentMgr.cpp.
References ItemTemplate::GetBaseItemLevel(), ItemTemplate::GetInventoryType(), ItemTemplate::GetQuality(), GetRandomPropertyPoints(), ItemTemplate::GetRandomSuffix(), and sObjectMgr.
Referenced by LootItem::LootItem(), and Item::UpdateItemSuffixFactor().
| TC_GAME_API int32 GenerateItemRandomPropertyId | ( | uint32 | item_id | ) |
Definition at line 122 of file ItemEnchantmentMgr.cpp.
References ItemTemplate::GetId(), GetItemEnchantMod(), ItemTemplate::GetRandomProperty(), ItemTemplate::GetRandomSuffix(), ItemRandomPropertiesEntry::ID, ItemRandomSuffixEntry::ID, sItemRandomPropertiesStore, sItemRandomSuffixStore, sObjectMgr, and TC_LOG_ERROR.
Referenced by Player::AddItem(), AuctionBotSeller::AddNewAuctions(), Spell::DoCreateItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemToCommand(), LootItem::LootItem(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), Player::RewardQuest(), and Player::StoreNewItemInBestSlots().
| TC_GAME_API uint32 GetItemEnchantMod | ( | int32 | entry | ) |
Definition at line 81 of file ItemEnchantmentMgr.cpp.
References irand(), rand_chance(), RandomItemEnch, and TC_LOG_ERROR.
Referenced by GenerateItemRandomPropertyId(), and ObjectMgr::LoadItemTemplates().
| TC_GAME_API uint32 GetRandomPropertyPoints | ( | uint32 | itemLevel, |
| uint32 | quality, | ||
| uint32 | inventoryType | ||
| ) |
Definition at line 180 of file ItemEnchantmentMgr.cpp.
References RandPropPointsEntry::Epic, RandPropPointsEntry::Good, 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_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, ITEM_QUALITY_EPIC, ITEM_QUALITY_RARE, ITEM_QUALITY_UNCOMMON, sRandPropPointsStore, and RandPropPointsEntry::Superior.
Referenced by GenerateEnchSuffixFactor().
| TC_GAME_API void LoadRandomEnchantmentsTable | ( | ) |
Definition at line 48 of file ItemEnchantmentMgr.cpp.
References Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), RandomItemEnch, TC_LOG_INFO, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadItemEnchantementsCommand(), and World::SetInitialWorldSettings().