![]() |
TrinityCore
|
Classes | |
| struct | ItemBonusGenerationParams |
| void ItemBonusMgr::ApplyBonusTreeHelper | ( | ItemTemplate const * | itemTemplate, |
| uint32 | itemBonusTreeId, | ||
| ItemBonusGenerationParams const & | params, | ||
| int32 | sequenceLevel, | ||
| uint32 * | itemLevelSelectorId, | ||
| std::vector< int32 > * | bonusListIDs | ||
| ) |
Definition at line 241 of file ItemBonusMgr.cpp.
References ApplyBonusTreeHelper(), CanApplyBonusTreeToItem(), advstd::ranges::contains, Dungeon_Mythic, Dungeon_Normal, Force_to_NONE, GetBonusTreeIdOverride(), Trinity::Containers::MapEqualRange(), Trinity::Containers::MapGetValuePtr(), NONE, params, Raid_Heroic, Raid_Mythic, Raid_Normal, Raid_Raid_Finder, and sDB2Manager.
Referenced by ApplyBonusTreeHelper(), and GetBonusListsForItem().
| bool ItemBonusMgr::CanApplyBonusTreeToItem | ( | ItemTemplate const * | itemTemplate, |
| uint32 | itemBonusTreeId, | ||
| ItemBonusGenerationParams const & | params | ||
| ) |
Definition at line 151 of file ItemBonusMgr.cpp.
References CanApplyBonusTreeToItem(), ItemTemplate::GetInventoryType(), ItemTemplate::HasFlag(), ITEM_FLAG2_CASTER_WEAPON, ITEM_FLAG4_CC_TRINKET, Trinity::Containers::MapGetValuePtr(), NONE, params, and sItemBonusTreeStore.
Referenced by ApplyBonusTreeHelper(), and CanApplyBonusTreeToItem().
| TC_GAME_API std::vector< int32 > ItemBonusMgr::GetAllBonusListsForTree | ( | uint32 | itemBonusTreeId | ) |
Definition at line 476 of file ItemBonusMgr.cpp.
References ItemBonusTreeNodeEntry::ChildItemBonusListID, GetAllBonusListsForTree(), and VisitItemBonusTree().
Referenced by GetAllBonusListsForTree(), and CriteriaHandler::ModifierSatisfied().
| int32 ItemBonusMgr::GetAzeriteUnlockBonusList | ( | uint16 | azeriteUnlockMappingSetId, |
| uint16 | minItemLevel, | ||
| InventoryType | inventoryType | ||
| ) |
Definition at line 382 of file ItemBonusMgr.cpp.
References GetAzeriteUnlockBonusList(), INVTYPE_CHEST, INVTYPE_HEAD, INVTYPE_ROBE, INVTYPE_SHOULDERS, AzeriteUnlockMappingEntry::ItemBonusListChest, AzeriteUnlockMappingEntry::ItemBonusListHead, AzeriteUnlockMappingEntry::ItemBonusListShoulders, AzeriteUnlockMappingEntry::ItemLevel, and Trinity::Containers::MapEqualRange().
Referenced by GetAzeriteUnlockBonusList(), and GetBonusListsForItem().
| TC_GAME_API std::vector< int32 > ItemBonusMgr::GetBonusListsForItem | ( | uint32 | itemId, |
| ItemBonusGenerationParams const & | params | ||
| ) |
Definition at line 415 of file ItemBonusMgr.cpp.
References ApplyBonusTreeHelper(), GetAzeriteUnlockBonusList(), ItemTemplate::GetBaseItemLevel(), GetBonusListsForItem(), ItemTemplate::GetInventoryType(), GetItemBonusListForItemLevelDelta(), ITEM_QUALITY_EPIC, ITEM_QUALITY_RARE, ITEM_QUALITY_UNCOMMON, Trinity::Containers::MapEqualRange(), params, sItemLevelSelectorQualitySetStore, sItemLevelSelectorStore, and sObjectMgr.
Referenced by Loot::AddItem(), Item::CreateItem(), GetBonusListsForItem(), misc_commandscript::HandleAddItemCommandHelper(), misc_commandscript::HandleAddItemSetCommand(), and Trinity::Hyperlinks::LinkTags::item::StoreTo().
| uint32 ItemBonusMgr::GetBonusTreeIdOverride | ( | uint32 | itemBonusTreeId, |
| ItemBonusGenerationParams const & | params | ||
| ) |
Definition at line 194 of file ItemBonusMgr.cpp.
References ChallengeModeItemBonusOverrideEntry::DstItemBonusTreeID, GetBonusTreeIdOverride(), Trinity::Containers::MapEqualRange(), and params.
Referenced by ApplyBonusTreeHelper(), and GetBonusTreeIdOverride().
| TC_GAME_API ItemContext ItemBonusMgr::GetContextForPlayer | ( | MapDifficultyEntry const * | mapDifficulty, |
| Player const * | player | ||
| ) |
Definition at line 78 of file ItemBonusMgr.cpp.
References MapDifficultyEntry::ContentTuningID, MapDifficultyEntry::DifficultyID, Force_to_NONE, GetContextForPlayer(), ConditionMgr::IsPlayerMeetingCondition(), MapDifficultyEntry::ItemContext, MapDifficultyEntry::ItemContextPickerID, ItemContextPickerEntryEntry::ItemCreationContext, Player::m_playerData, NONE, ItemContextPickerEntryEntry::OrderIndex, sDB2Manager, sDifficultyStore, and sItemContextPickerEntryStore.
Referenced by GenerateDungeonEncounterPersonalLoot(), GetContextForPlayer(), GameObject::GetFishLoot(), GameObject::GetFishLootJunk(), Unit::Kill(), and GameObject::Use().
| TC_GAME_API std::span< ItemBonusEntry const * > ItemBonusMgr::GetItemBonuses | ( | uint32 | bonusListId | ) |
Definition at line 135 of file ItemBonusMgr.cpp.
References GetItemBonuses(), and Trinity::Containers::MapGetValuePtr().
Referenced by Item::AddBonuses(), BonusData::AddBonusList(), GetItemBonuses(), ObjectMgr::IsVendorItemValid(), LoadItemRandomBonusListTemplates(), and Item::SetGem().
| TC_GAME_API uint32 ItemBonusMgr::GetItemBonusListForItemLevelDelta | ( | int16 | delta | ) |
Definition at line 143 of file ItemBonusMgr.cpp.
References GetItemBonusListForItemLevelDelta(), and Trinity::Containers::MapGetValuePtr().
Referenced by GetBonusListsForItem(), GetItemBonusListForItemLevelDelta(), and Item::SetGem().
| TC_GAME_API void ItemBonusMgr::Load | ( | ) |
Definition at line 48 of file ItemBonusMgr.cpp.
References sAzeriteUnlockMappingStore, sChallengeModeItemBonusOverrideStore, sItemBonusListGroupEntryStore, sItemBonusListLevelDeltaStore, sItemBonusStore, sItemBonusTreeNodeStore, sItemCreationContextStore, sItemLevelSelectorQualityStore, and sItemXBonusTreeStore.
Referenced by World::SetInitialWorldSettings().
| void ItemBonusMgr::VisitItemBonusTree | ( | uint32 | itemBonusTreeId, |
| Visitor | visitor | ||
| ) |
Definition at line 462 of file ItemBonusMgr.cpp.
References VisitItemBonusTree().
Referenced by GetAllBonusListsForTree(), and VisitItemBonusTree().