aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-03-18 17:27:40 +0100
committerMachiavelli <none@none>2010-03-18 17:27:40 +0100
commit302af79bc250257c61f78e489986eaa1f20292c7 (patch)
tree08fc629bab8c01e088d097b0f7e93a83c1269515 /src/game/Player.h
parent72833e158440dc8f411a75a386861f936bfe108b (diff)
Implement vendor item refund system.
For info about this system, see: hxxp://us.blizzard.com/support/article.xml?locale=en_US&articleId=27351 Thanks to: - Opterman, Malcrom, Xanadu + anonymous colleagues for aiding research on packet structure - Aokromes and Svannon for testing --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r--src/game/Player.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Player.h b/src/game/Player.h
index 10e566c6664..d39f381f016 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -1189,6 +1189,9 @@ 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(Item* it);
+ void DeleteRefundReference(Item* it);
void ApplyEquipCooldown( Item * pItem );
void SetAmmo( uint32 item );
@@ -2554,6 +2557,8 @@ 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::set<Item*> m_refundableItems;
+
void UpdateKnownCurrencies(uint32 itemId, bool apply);
int32 CalculateReputationGain(uint32 creatureOrQuestLevel, int32 rep, int32 faction, bool for_quest);
void AdjustQuestReqItemCount( Quest const* pQuest, QuestStatusData& questStatusData );