From 2bd90deeedb6282eab9dfce650fbaf2bda451ee8 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 8 Feb 2009 21:54:13 -0600 Subject: [7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot. Author: VladimirMangos Use this function in more cases and simplify and fix some related code. --HG-- branch : trunk --- src/game/LootMgr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/LootMgr.h') diff --git a/src/game/LootMgr.h b/src/game/LootMgr.h index 077d42a1e17..8f54bb3bee1 100644 --- a/src/game/LootMgr.h +++ b/src/game/LootMgr.h @@ -224,7 +224,6 @@ struct Loot QuestItemMap const& GetPlayerNonQuestNonFFAConditionalItems() const { return PlayerNonQuestNonFFAConditionalItems; } std::vector items; - std::vector quest_items; uint32 gold; uint8 unlootedCount; @@ -275,6 +274,7 @@ struct Loot void AddItem(LootStoreItem const & item); LootItem* LootItemInSlot(uint32 lootslot, Player* player, QuestItem** qitem = NULL, QuestItem** ffaitem = NULL, QuestItem** conditem = NULL); + uint32 GetMaxSlotInLootFor(Player* player) const; private: void FillNotNormalLootFor(Player* player); @@ -282,6 +282,7 @@ struct Loot QuestItemList* FillQuestLoot(Player* player); QuestItemList* FillNonQuestNonFFAConditionalLoot(Player* player); + std::vector quest_items; std::set PlayersLooting; QuestItemMap PlayerQuestItems; QuestItemMap PlayerFFAItems; -- cgit v1.2.3