AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "LootMgr.h"
Public Member Functions | |
LootItem (LootStoreItem const &li) | |
LootItem ()=default | |
bool | AllowedForPlayer (Player const *player, ObjectGuid source) const |
void | AddAllowedLooter (Player const *player) |
const AllowedLooterSet & | GetAllowedLooters () const |
Public Attributes | |
uint32 | itemid |
uint32 | itemIndex |
uint32 | randomSuffix |
int32 | randomPropertyId |
ConditionList | conditions |
AllowedLooterSet | allowedGUIDs |
ObjectGuid | rollWinnerGUID |
uint8 | count: 8 |
bool | is_looted: 1 |
bool | is_blocked: 1 |
bool | freeforall: 1 |
bool | is_underthreshold: 1 |
bool | is_counted: 1 |
bool | needs_quest: 1 |
bool | follow_loot_rules: 1 |
uint8 | groupid: 7 |
|
explicit |
References LootStoreItem::conditions, conditions, count, ObjectGuid::Empty, follow_loot_rules, freeforall, GenerateEnchSuffixFactor(), Item::GenerateItemRandomPropertyId(), LootStoreItem::groupid, groupid, ItemTemplate::HasFlag(), ItemTemplate::HasFlagCu(), is_blocked, is_counted, is_looted, is_underthreshold, ITEM_FLAG_MULTI_DROP, ITEM_FLAGS_CU_FOLLOW_LOOT_RULES, LootStoreItem::itemid, itemid, itemIndex, LootStoreItem::needs_quest, needs_quest, randomPropertyId, randomSuffix, rollWinnerGUID, and sObjectMgr.
|
default |
void LootItem::AddAllowedLooter | ( | Player const * | player | ) |
References allowedGUIDs, and Object::GetGUID().
Referenced by Loot::FillNonQuestNonFFAConditionalLoot().
bool LootItem::AllowedForPlayer | ( | Player const * | player, |
ObjectGuid | source | ||
) | const |
References BIND_WHEN_PICKED_UP, ItemTemplate::Bonding, ItemTemplate::Class, conditions, DISABLE_TYPE_LOOT, follow_loot_rules, Player::GetGroup(), Object::GetGUID(), Group::GetMasterLooterGuid(), Player::GetQuestRewardStatus(), Player::GetQuestStatus(), Player::GetTeamId(), ItemTemplate::HasFlag(), ItemTemplate::HasFlag2(), ItemTemplate::HasFlagCu(), Player::HasItemCount(), Player::HasQuestForItem(), Player::HasSkill(), Player::HasSpell(), is_underthreshold, DisableMgr::IsDisabledFor(), ITEM_CLASS_RECIPE, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ITEM_FLAG_HIDE_UNUSABLE_RECIPE, ITEM_FLAGS_CU_IGNORE_QUEST_STATUS, itemid, ItemTemplate::MaxCount, needs_quest, QUEST_STATUS_NONE, ItemTemplate::RequiredSkill, sConditionMgr, sObjectMgr, _Spell::SpellId, ItemTemplate::Spells, sScriptMgr, ItemTemplate::StartQuest, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by Loot::AddItem(), CanRollOnItem(), Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), WorldSession::HandleLootMasterGiveOpcode(), Loot::LootItemInSlot(), and Player::StoreLootItem().
|
inline |
References allowedGUIDs.
Referenced by Group::CountTheRoll(), WorldSession::HandleLootMasterGiveOpcode(), and Player::StoreLootItem().
AllowedLooterSet LootItem::allowedGUIDs |
Referenced by AddAllowedLooter(), and GetAllowedLooters().
ConditionList LootItem::conditions |
uint8 LootItem::count |
bool LootItem::follow_loot_rules |
Referenced by AllowedForPlayer(), LootItemStorage::LoadStoredLoot(), LootItem(), and Loot::LootItemInSlot().
bool LootItem::freeforall |
uint8 LootItem::groupid |
Referenced by LootItemStorage::LoadStoredLoot(), and LootItem().
bool LootItem::is_blocked |
Referenced by Group::CountTheRoll(), Loot::FillQuestLoot(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().
bool LootItem::is_counted |
Referenced by Loot::FillNonQuestNonFFAConditionalLoot(), LootItemStorage::LoadStoredLoot(), and LootItem().
bool LootItem::is_looted |
Referenced by Group::CountTheRoll(), Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), Loot::hasItemFor(), LootItemStorage::LoadStoredLoot(), LootItem(), Loot::LootItemInSlot(), and Player::StoreLootItem().
bool LootItem::is_underthreshold |
Referenced by AllowedForPlayer(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().
uint32 LootItem::itemid |
Referenced by AllowedForPlayer(), Player::AutoStoreLoot(), CanRollOnItem(), LootTemplate::CopyConditions(), Group::CountTheRoll(), Loot::FillNotNormalLootFor(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), LootItemStorage::LoadStoredLoot(), LootItem(), operator<<(), Player::StoreLootItem(), and Player::UpdateLootAchievements().
uint32 LootItem::itemIndex |
bool LootItem::needs_quest |
Referenced by AllowedForPlayer(), LootItemStorage::LoadStoredLoot(), and LootItem().
int32 LootItem::randomPropertyId |
uint32 LootItem::randomSuffix |
Referenced by LootItemStorage::LoadStoredLoot(), LootItem(), and operator<<().
ObjectGuid LootItem::rollWinnerGUID |
Referenced by Group::CountTheRoll(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().