Fixed honor points and arena points displaying in currency tab
Currencies lost (spent all in vendor) are not removed from known currencies tab, they now display 0 count --HG-- branch : trunk
This commit is contained in:
@@ -844,6 +844,12 @@ enum CharDeleteMethod
|
||||
// the name gets freed up and appears as deleted ingame
|
||||
};
|
||||
|
||||
enum CurrencyItems
|
||||
{
|
||||
ITEM_HONOR_POINTS_ID = 43308,
|
||||
ITEM_ARENA_POINTS_ID = 43307
|
||||
};
|
||||
|
||||
class PlayerTaxi
|
||||
{
|
||||
public:
|
||||
@@ -1938,6 +1944,18 @@ class Player : public Unit, public GridObject<Player>
|
||||
void ModifyHonorPoints(int32 value);
|
||||
void ModifyArenaPoints(int32 value);
|
||||
uint32 GetMaxPersonalArenaRatingRequirement(uint32 minarenaslot);
|
||||
void SetHonorPoints(uint32 value)
|
||||
{
|
||||
SetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY, value);
|
||||
if (value)
|
||||
AddKnownCurrency(ITEM_HONOR_POINTS_ID); // Arena Points
|
||||
}
|
||||
void SetArenaPoints(uint32 value)
|
||||
{
|
||||
SetUInt32Value(PLAYER_FIELD_ARENA_CURRENCY, value);
|
||||
if (value)
|
||||
AddKnownCurrency(ITEM_ARENA_POINTS_ID); // Arena Points
|
||||
}
|
||||
|
||||
//End of PvP System
|
||||
|
||||
@@ -2596,7 +2614,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SendRefundInfo(Item* item);
|
||||
void RefundItem(Item* item);
|
||||
|
||||
void UpdateKnownCurrencies(uint32 itemId, bool apply);
|
||||
// know currencies are not removed at any point (0 displayed)
|
||||
void AddKnownCurrency(uint32 itemId);
|
||||
|
||||
int32 CalculateReputationGain(uint32 creatureOrQuestLevel, int32 rep, int32 faction, bool for_quest, bool noQuestBonus = false);
|
||||
void AdjustQuestReqItemCount(Quest const* pQuest, QuestStatusData& questStatusData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user