![]() |
TrinityCore
|
#include <Item.h>
Public Member Functions | |
| void | Initialize (ItemTemplate const *proto) |
| void | Initialize (WorldPackets::Item::ItemInstance const &itemInstance) |
| void | AddBonusList (uint32 bonusListId) |
| void | AddBonus (uint32 type, std::array< int32, 4 > const &values) |
Definition at line 3018 of file Item.cpp.
References ItemSquishEraEntry::Flags, ClientBuild::GetMinorMajorBugfixVersionForBuild(), ITEM_BONUS_APPEARANCE, ITEM_BONUS_AZERITE_TIER_UNLOCK_SET, ITEM_BONUS_BONDING, ITEM_BONUS_BONDING_WITH_PRIORITY, ITEM_BONUS_CRAFTED_ITEM_LEVEL, ITEM_BONUS_DISENCHANT_LOOT_ID, ITEM_BONUS_ITEM_BONUS_LIST, ITEM_BONUS_ITEM_EFFECT_ID, ITEM_BONUS_ITEM_LEVEL, ITEM_BONUS_ITEM_LEVEL_BASE, ITEM_BONUS_ITEM_LIMIT_CATEGORY, ITEM_BONUS_ITEM_OFFSET_CURVE, ITEM_BONUS_OVERRIDE_CAN_DISENCHANT, ITEM_BONUS_OVERRIDE_CAN_RECRAFT, ITEM_BONUS_OVERRIDE_CAN_SALVAGE, ITEM_BONUS_OVERRIDE_CAN_SCRAP, ITEM_BONUS_OVERRIDE_CANNOT_TRADE_BOP, ITEM_BONUS_OVERRIDE_REQUIRED_LEVEL, ITEM_BONUS_PVP_ITEM_LEVEL_BASE, ITEM_BONUS_PVP_ITEM_LEVEL_INCREMENT, ITEM_BONUS_QUALITY, ITEM_BONUS_RELIC_TYPE, ITEM_BONUS_REPAIR_COST_MULTIPLIER, ITEM_BONUS_REQUIRED_LEVEL, ITEM_BONUS_REQUIRED_LEVEL_CURVE, ITEM_BONUS_SCALING_CONFIG, ITEM_BONUS_SCALING_CONFIG_AND_REQ_LEVEL, ITEM_BONUS_SCALING_ITEM_LEVEL_BONUS, ITEM_BONUS_SCALING_STAT_DISTRIBUTION, ITEM_BONUS_SCALING_STAT_DISTRIBUTION_FIXED, ITEM_BONUS_SOCKET, ITEM_BONUS_STAT, ITEM_BONUS_SUFFIX, MAX_ITEM_PROTO_SOCKETS, MAX_ITEM_PROTO_STATS, ItemSquishEraEntry::Patch, sItemEffectStore, sItemOffsetCurveStore, sItemScalingConfigStore, sItemSquishEraStore, and sRealmList.
Referenced by Item::AddBonuses().
| void BonusData::AddBonusList | ( | uint32 | bonusListId | ) |
Definition at line 3012 of file Item.cpp.
References ItemBonusMgr::GetItemBonuses().
Referenced by Player::CanEquipUniqueItem(), AzeriteEmpoweredItem::ClearSelectedAzeritePowers(), WorldSession::HandleSocketGems(), Item::SetBonuses(), Item::SetGem(), AzeriteEmpoweredItem::SetSelectedAzeritePower(), and Trinity::Hyperlinks::LinkTags::item::StoreTo().
| void BonusData::Initialize | ( | ItemTemplate const * | proto | ) |
Definition at line 2918 of file Item.cpp.
References ItemTemplate::Effects, ItemTemplate::GetBaseItemLevel(), ItemTemplate::GetBaseRequiredLevel(), ItemTemplate::GetBonding(), ItemTemplate::GetId(), ItemTemplate::GetItemLevelOffsetCurveId(), ItemTemplate::GetItemLevelOffsetItemLevel(), ItemTemplate::GetItemLimitCategory(), ItemTemplate::GetItemSquishEraId(), ItemTemplate::GetPlayerLevelToItemLevelCurveId(), ItemTemplate::GetQuality(), ItemTemplate::GetScalingStatContentTuning(), ItemTemplate::GetSocketColor(), ItemTemplate::GetStatModifierBonusStat(), ItemTemplate::GetStatPercentageOfSocket(), ItemTemplate::GetStatPercentEditor(), ItemTemplate::HasFlag(), ITEM_FLAG2_NO_TRADE_BIND_ON_ACQUIRE, ITEM_FLAG4_NO_SALVAGE, ITEM_FLAG4_RECRAFTABLE, ITEM_FLAG4_SCRAPABLE, ITEM_FLAG_NO_DISENCHANT, MAX_ITEM_PROTO_SOCKETS, MAX_ITEM_PROTO_STATS, and sDB2Manager.
Referenced by Player::CanEquipUniqueItem(), Item::ClearBonuses(), AzeriteEmpoweredItem::ClearSelectedAzeritePowers(), Item::Create(), Bag::Create(), LootRoll::GetItemDisenchantLootId(), LootRoll::GetItemDisenchantSkillRequired(), WorldSession::HandleSocketGems(), Item::LoadFromDB(), Item::SetGem(), and Trinity::Hyperlinks::LinkTags::item::StoreTo().
| void BonusData::Initialize | ( | WorldPackets::Item::ItemInstance const & | itemInstance | ) |
Definition at line 2999 of file Item.cpp.
References WorldPackets::Item::ItemInstance::ItemBonus, WorldPackets::Item::ItemInstance::ItemID, and sObjectMgr.
| struct { ... } BonusData::_state |
| uint32 BonusData::AppearanceModID |
Definition at line 71 of file Item.h.
Referenced by Item::AddBonuses(), Item::ClearBonuses(), Item::GetItemModifiedAppearance(), and Item::SetBonuses().
| int32 BonusData::AzeriteTierUnlockSetId |
Definition at line 81 of file Item.h.
Referenced by AzeriteEmpoweredItem::GetRequiredAzeriteLevelForTier().
| ItemBondingType BonusData::Bonding |
| bool BonusData::CanDisenchant |
Definition at line 95 of file Item.h.
Referenced by Item::GetDisenchantLootId(), Item::GetDisenchantSkillRequired(), LootRoll::GetItemDisenchantLootId(), and LootRoll::GetItemDisenchantSkillRequired().
| bool BonusData::CannotTradeBindOnPickup |
Definition at line 100 of file Item.h.
Referenced by Player::StoreNewItem().
| uint32 BonusData::ContentTuningId |
Definition at line 73 of file Item.h.
Referenced by AddItemsSetItem(), Item::GetItemLevel(), and Item::SetFixedLevel().
| uint32 BonusData::DisenchantLootId |
Definition at line 75 of file Item.h.
Referenced by Item::GetDisenchantLootId(), and LootRoll::GetItemDisenchantLootId().
| std::size_t BonusData::EffectCount |
Definition at line 93 of file Item.h.
Referenced by FindSpellChargesSlot(), Item::LoadFromDB(), and Item::SaveToDB().
| std::array<ItemEffectEntry const*, 13> BonusData::Effects |
Definition at line 92 of file Item.h.
Referenced by FindSpellChargesSlot().
| uint32 BonusData::GemItemLevelBonus[MAX_ITEM_PROTO_SOCKETS] |
Definition at line 76 of file Item.h.
Referenced by Item::CopyArtifactDataFromParent(), Item::GetItemLevel(), and Item::SetGem().
| uint16 BonusData::GemRelicRankBonus[MAX_ITEM_PROTO_SOCKETS] |
| int32 BonusData::GemRelicType[MAX_ITEM_PROTO_SOCKETS] |
Definition at line 77 of file Item.h.
Referenced by Item::ApplyArtifactPowerEnchantmentBonuses(), Item::LoadArtifactData(), and Item::SetGem().
| bool BonusData::HasFixedLevel |
Definition at line 99 of file Item.h.
Referenced by Item::GetRequiredLevel(), and Item::SetFixedLevel().
| bool BonusData::IgnoreSquish |
Definition at line 101 of file Item.h.
Referenced by Item::GetItemLevel().
| uint32 BonusData::ItemLevel |
Definition at line 63 of file Item.h.
Referenced by Item::GetItemLevel(), and Item::SetGem().
| int32 BonusData::ItemLevelBonus |
Definition at line 64 of file Item.h.
Referenced by Item::GetItemLevel(), and Item::SetGem().
| int32 BonusData::ItemLevelOffset |
Definition at line 88 of file Item.h.
Referenced by Item::GetItemLevel().
| uint32 BonusData::ItemLevelOffsetCurveId |
Definition at line 86 of file Item.h.
Referenced by Item::GetItemLevel().
| uint32 BonusData::ItemLevelOffsetItemLevel |
Definition at line 87 of file Item.h.
Referenced by Item::GetItemLevel().
| uint32 BonusData::ItemSquishEraID |
Definition at line 89 of file Item.h.
Referenced by Item::GetItemLevel().
| float BonusData::ItemStatSocketCostMultiplier[MAX_ITEM_PROTO_STATS] |
Definition at line 68 of file Item.h.
Referenced by Item::GetItemStatValue().
| int32 BonusData::ItemStatType[MAX_ITEM_PROTO_STATS] |
| uint32 BonusData::LimitCategory |
Definition at line 94 of file Item.h.
Referenced by Player::CanEquipUniqueItem(), Player::CanEquipUniqueItem(), and WorldSession::HandleSocketGems().
| uint32 BonusData::PlayerLevelToItemLevelCurveId |
Definition at line 74 of file Item.h.
Referenced by AddItemsSetItem(), Item::GetItemLevel(), Item::GetRequiredLevel(), Item::SetFixedLevel(), and Item::SetGem().
| uint16 BonusData::PvpItemLevel |
Definition at line 84 of file Item.h.
Referenced by Item::GetItemLevel().
| int16 BonusData::PvpItemLevelBonus |
Definition at line 85 of file Item.h.
Referenced by Item::GetItemLevel().
| uint32 BonusData::Quality |
Definition at line 62 of file Item.h.
Referenced by LootRoll::GetItemDisenchantLootId(), LootRoll::GetItemDisenchantSkillRequired(), and Trinity::Hyperlinks::LinkTags::item::StoreTo().
| int32 BonusData::RelicType |
Definition at line 79 of file Item.h.
Referenced by Item::SetGem().
| int32 BonusData::RequiredLevel |
Definition at line 65 of file Item.h.
Referenced by Item::GetDisenchantLootId(), Item::GetDisenchantSkillRequired(), LootRoll::GetItemDisenchantLootId(), LootRoll::GetItemDisenchantSkillRequired(), and Item::GetRequiredLevel().
| int32 BonusData::RequiredLevelCurve |
Definition at line 83 of file Item.h.
Referenced by Item::GetRequiredLevel().
| int32 BonusData::RequiredLevelOverride |
Definition at line 80 of file Item.h.
Referenced by Item::GetRequiredLevel().
| bool BonusData::RestrictScalingToContentTuning |
Definition at line 102 of file Item.h.
Referenced by Item::GetItemLevel().
| int32 BonusData::ScalingConfigCraftingQualityItemLevelBonus |
Definition at line 90 of file Item.h.
Referenced by Item::GetItemLevel().
| int32 BonusData::ScalingConfigCraftingQualityItemLevelBonusPriority |
| int32 BonusData::ScalingConfigItemLevelBonus |
Definition at line 91 of file Item.h.
Referenced by Item::GetItemLevel().
| bool BonusData::ScalingConfigUsesPlayerLevel |
Definition at line 103 of file Item.h.
Referenced by Item::GetItemLevel().
| uint32 BonusData::SocketColor[MAX_ITEM_PROTO_SOCKETS] |
| int32 BonusData::StatPercentEditor[MAX_ITEM_PROTO_STATS] |
Definition at line 67 of file Item.h.
Referenced by Item::GetItemStatValue().
| uint32 BonusData::Suffix |
Definition at line 82 of file Item.h.
Referenced by AuctionsBucketKey::ForItem(), Item::GetNameForLocaleIdx(), and Trinity::Hyperlinks::LinkTags::item::StoreTo().