![]() |
TrinityCore
|
#include <Loot.h>
Public Member Functions | |
| LootItem (LootStoreItem const &li) | |
| LootItem () | |
| bool | AllowedForPlayer (Player const *player, bool isGivenByMasterLooter, ObjectGuid ownerGuid) const |
| bool | AllowedForPlayer (Player const *player, bool isGivenByMasterLooter=false) const |
| bool | AllowedForPlayer (Player const *player, ObjectGuid ownerGuid) const |
| void | AddAllowedLooter (Player const *player) |
| GuidSet const & | GetAllowedLooters () const |
Public Attributes | |
| uint32 | itemid |
| uint32 | itemIndex |
| uint32 | randomPropertySeed |
| int32 | randomPropertyId |
| ConditionContainer | conditions |
| GuidSet | allowedGUIDs |
| ObjectGuid | rollWinnerGUID |
| uint8 | count |
| 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 |
|
explicit |
Definition at line 36 of file Loot.cpp.
References conditions, LootStoreItem::conditions, count, ObjectGuid::Empty, follow_loot_rules, freeforall, GenerateEnchSuffixFactor(), GenerateItemRandomPropertyId(), ItemTemplate::HasFlag(), is_blocked, is_counted, is_looted, is_underthreshold, ITEM_FLAG_MULTI_DROP, ITEM_FLAGS_CU_FOLLOW_LOOT_RULES, itemid, LootStoreItem::itemid, itemIndex, needs_quest, LootStoreItem::needs_quest, randomPropertyId, randomPropertySeed, rollWinnerGUID, and sObjectMgr.
| void LootItem::AddAllowedLooter | ( | Player const * | player | ) |
Definition at line 131 of file Loot.cpp.
References allowedGUIDs, and Object::GetGUID().
Referenced by Loot::FillNonQuestNonFFAConditionalLoot(), and LootItemStorage::LoadStoredLoot().
| bool LootItem::AllowedForPlayer | ( | Player const * | player, |
| bool | isGivenByMasterLooter, | ||
| ObjectGuid | ownerGuid | ||
| ) | const |
Definition at line 69 of file Loot.cpp.
References ALLIANCE, BIND_WHEN_PICKED_UP, conditions, ItemTemplate::Effects, freeforall, ItemTemplate::GetBonding(), ItemTemplate::GetClass(), Player::GetGroup(), Object::GetGUID(), Group::GetLootMethod(), Group::GetMasterLooterGuid(), Player::GetQuestStatus(), ItemTemplate::GetRequiredSkill(), ItemTemplate::GetStartQuest(), Player::GetTeam(), GROUP_LOOT, ItemTemplate::HasFlag(), Player::HasQuestForItem(), Player::HasSkill(), Player::HasSpell(), HORDE, ObjectGuid::IsEmpty(), ITEM_CLASS_RECIPE, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ITEM_FLAG_HIDE_UNUSABLE_RECIPE, ITEM_FLAGS_CU_IGNORE_QUEST_STATUS, ITEM_SPELLTRIGGER_LEARN_SPELL_ID, itemid, needs_quest, QUEST_STATUS_NONE, ROUND_ROBIN, sConditionMgr, and sObjectMgr.
Referenced by Loot::AddItem(), AllowedForPlayer(), AllowedForPlayer(), CanRollOnItem(), Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), WorldSession::HandleLootMasterGiveOpcode(), and Player::StoreLootItem().
| bool LootItem::AllowedForPlayer | ( | Player const * | player, |
| bool | isGivenByMasterLooter = false |
||
| ) | const |
Definition at line 63 of file Loot.cpp.
References AllowedForPlayer(), and ObjectGuid::Empty.
| bool LootItem::AllowedForPlayer | ( | Player const * | player, |
| ObjectGuid | ownerGuid | ||
| ) | const |
Definition at line 58 of file Loot.cpp.
References AllowedForPlayer().
|
inline |
Definition at line 180 of file Loot.h.
Referenced by Group::CountTheRoll(), WorldSession::HandleLootMasterGiveOpcode(), and Player::StoreLootItem().
| GuidSet LootItem::allowedGUIDs |
Definition at line 155 of file Loot.h.
Referenced by AddAllowedLooter().
| ConditionContainer LootItem::conditions |
Definition at line 154 of file Loot.h.
Referenced by AllowedForPlayer(), LootTemplate::CopyConditions(), Loot::FillNonQuestNonFFAConditionalLoot(), LootItem(), and Loot::LootItemInSlot().
| uint8 LootItem::count |
Definition at line 157 of file Loot.h.
Referenced by npc_commandscript::_IterateNotNormalLootMap(), Loot::AddItem(), StoredLootContainer::AddLootItem(), Player::AutoStoreLoot(), Group::CountTheRoll(), FillLootItemData(), WorldSession::HandleLootMasterGiveOpcode(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().
| bool LootItem::follow_loot_rules |
Definition at line 164 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), Loot::BuildLootResponse(), Loot::FillQuestLoot(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), and LootItem().
| bool LootItem::freeforall |
Definition at line 160 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), AllowedForPlayer(), Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), LootItem(), Loot::LootItemInSlot(), and Player::StoreLootItem().
| bool LootItem::is_blocked |
Definition at line 159 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), Loot::BuildLootResponse(), Group::CountTheRoll(), Loot::FillQuestLoot(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().
| bool LootItem::is_counted |
Definition at line 162 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), Loot::FillNonQuestNonFFAConditionalLoot(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), and LootItem().
| bool LootItem::is_looted |
Definition at line 158 of file Loot.h.
Referenced by npc_commandscript::_IterateNotNormalLootMap(), Loot::BuildLootResponse(), Group::CountTheRoll(), Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), WorldSession::HandleLootMasterGiveOpcode(), Loot::hasItemFor(), LootItem(), Loot::LootItemInSlot(), and Player::StoreLootItem().
| bool LootItem::is_underthreshold |
Definition at line 161 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), and LootItem().
| uint32 LootItem::itemid |
Definition at line 150 of file Loot.h.
Referenced by npc_commandscript::_IterateNotNormalLootMap(), StoredLootContainer::AddLootItem(), AllowedForPlayer(), Player::AutoStoreLoot(), CanRollOnItem(), LootTemplate::CopyConditions(), Group::CountTheRoll(), FillLootItemData(), Loot::FillNotNormalLootFor(), WorldSession::HandleLootMasterGiveOpcode(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().
| uint32 LootItem::itemIndex |
Definition at line 151 of file Loot.h.
Referenced by Loot::AddItem(), StoredLootContainer::AddLootItem(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().
| bool LootItem::needs_quest |
Definition at line 163 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), AllowedForPlayer(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), and LootItem().
| int32 LootItem::randomPropertyId |
Definition at line 153 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), Player::AutoStoreLoot(), Group::CountTheRoll(), FillLootItemData(), WorldSession::HandleLootMasterGiveOpcode(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), LootItem(), and Player::StoreLootItem().
| uint32 LootItem::randomPropertySeed |
Definition at line 152 of file Loot.h.
Referenced by StoredLootContainer::AddLootItem(), FillLootItemData(), LootItemStorage::LoadStorageFromDB(), LootItemStorage::LoadStoredLoot(), and LootItem().
| ObjectGuid LootItem::rollWinnerGUID |
Definition at line 156 of file Loot.h.
Referenced by Group::CountTheRoll(), LootItem(), and Player::StoreLootItem().