diff options
author | Machiavelli <none@none> | 2010-04-30 19:20:59 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-04-30 19:20:59 +0200 |
commit | 4b1a9916acb8d2a8281346a430ee178434ec0c4b (patch) | |
tree | 86dd7176c1e4696f94f3efae2bb10557f240ecfe /src/game/Player.h | |
parent | 31113370b333801f7089e287707f8ae060cff09f (diff) |
Clean up in item refund related code.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r-- | src/game/Player.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Player.h b/src/game/Player.h index 06b05089c32..22af6a370ca 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1200,8 +1200,7 @@ class Player : public Unit, public GridObject<Player> uint8 _CanTakeMoreSimilarItems(uint32 entry, uint32 count, Item* pItem, uint32* no_space_count = NULL) const; uint8 _CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec& dest, uint32 entry, uint32 count, Item *pItem = NULL, bool swap = false, uint32* no_space_count = NULL) const; - void AddRefundReference(uint64 it, uint32 stackCount); - void AlterRefundReferenceCount(uint64 it, uint32 newCount); + void AddRefundReference(uint64 it); void DeleteRefundReference(uint64 it); void ApplyEquipCooldown(Item * pItem); @@ -2589,7 +2588,9 @@ class Player : public Unit, public GridObject<Player> uint8 _CanStoreItem_InInventorySlots(uint8 slot_begin, uint8 slot_end, ItemPosCountVec& dest, ItemPrototype const *pProto, uint32& count, bool merge, Item *pSrcItem, uint8 skip_bag, uint8 skip_slot) const; Item* _StoreItem(uint16 pos, Item *pItem, uint32 count, bool clone, bool update); - std::map<uint64, uint32> m_refundableItems; + std::set<uint64> m_refundableItems; + void SendRefundInfo(Item* item); + void RefundItem(Item* item); void UpdateKnownCurrencies(uint32 itemId, bool apply); int32 CalculateReputationGain(uint32 creatureOrQuestLevel, int32 rep, int32 faction, bool for_quest); |