Simplified and cleaned up honor calculation.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-06-25 15:58:27 +02:00
parent 66535c3700
commit fec8ca58b5
6 changed files with 57 additions and 59 deletions
+1 -1
View File
@@ -1918,7 +1918,7 @@ class Player : public Unit, public GridObject<Player>
/*** PVP SYSTEM ***/
/*********************************************************/
void UpdateHonorFields();
bool RewardHonor(Unit *pVictim, uint32 groupsize, float honor = -1, bool pvptoken = false);
bool RewardHonor(Unit *pVictim, uint32 groupsize, int32 honor = -1, bool pvptoken = false);
uint32 GetHonorPoints() { return GetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY); }
uint32 GetArenaPoints() { return GetUInt32Value(PLAYER_FIELD_ARENA_CURRENCY); }
void ModifyHonorPoints(int32 value);