From ab9eb277b4f001332ef2d0b623f72cfe176130d9 Mon Sep 17 00:00:00 2001 From: w12x Date: Fri, 17 Oct 2008 16:36:07 -0500 Subject: [svn] Enabled game events to change the honor and reputation gaining speed in battlegrounds. This is done by a new table in the world database, game_event_battleground_holiday. Structure is the following: event - id of the game event bgflag - bitmask, used to set which battleground(s) give extra honor/reputation when the event is active. To add extra honor on a battleground, use 2 ^ bgTypeId as mask. Multiple battlegrounds can be set by logical 'or' ('|') operation. You will need database data for the table, please check trinitydatabase.org. --HG-- branch : trunk --- src/game/BattleGround.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/game/BattleGround.cpp') diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 241082b8064..9ef8745fdf3 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -86,6 +86,7 @@ BattleGround::BattleGround() m_PrematureCountDown = false; m_PrematureCountDown = 0; + m_HonorMode = BG_NORMAL; } BattleGround::~BattleGround() @@ -537,7 +538,6 @@ void BattleGround::EndBattleGround(uint32 winner) if(!Source) Source = plr; RewardMark(plr,ITEM_WINNER_COUNT); - UpdatePlayerScore(plr, SCORE_BONUS_HONOR, 20); RewardQuest(plr); } else @@ -1466,3 +1466,11 @@ uint32 BattleGround::GetAlivePlayersCountByTeam(uint32 Team) const } return count; } + +void BattleGround::SetHoliday(bool is_holiday) +{ + if(is_holiday) + m_HonorMode = BG_HOLIDAY; + else + m_HonorMode = BG_NORMAL; +} -- cgit v1.2.3