|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include "Common.h"Go to the source code of this file.
Functions | |
| uint32 | GenerateEnchSuffixFactor (uint32 item_id) |
| uint32 | GetItemEnchantMod (int32 entry) |
| void | LoadRandomEnchantmentsTable () |
Definition at line 108 of file ItemEnchantmentMgr.cpp.
References RandomPropertiesPointsEntry::EpicPropertiesPoints, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_AMMO, INVTYPE_BAG, INVTYPE_BODY, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_NON_EQUIP, INVTYPE_QUIVER, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, ITEM_QUALITY_ARTIFACT, ITEM_QUALITY_EPIC, ITEM_QUALITY_LEGENDARY, ITEM_QUALITY_RARE, ITEM_QUALITY_UNCOMMON, ItemTemplate::ItemLevel, ItemTemplate::Quality, ItemTemplate::RandomSuffix, RandomPropertiesPointsEntry::RarePropertiesPoints, sObjectMgr, sRandomPropertiesPointsStore, and RandomPropertiesPointsEntry::UncommonPropertiesPoints.
Referenced by LootItem::LootItem(), and Item::UpdateItemSuffixFactor().
Definition at line 67 of file ItemEnchantmentMgr.cpp.
References rand_chance(), RandomItemEnch, and SF_LOG_ERROR.
Referenced by Item::GenerateItemRandomPropertyId().
| void LoadRandomEnchantmentsTable | ( | ) |
Definition at line 34 of file ItemEnchantmentMgr.cpp.
References Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), RandomItemEnch, SF_LOG_ERROR, SF_LOG_INFO, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadItemEnchantementsCommand(), and World::SetInitialWorldSettings().