diff options
| author | w12x <none@none> | 2008-10-17 16:36:07 -0500 | 
|---|---|---|
| committer | w12x <none@none> | 2008-10-17 16:36:07 -0500 | 
| commit | ab9eb277b4f001332ef2d0b623f72cfe176130d9 (patch) | |
| tree | c39e35d77fd89997dc1091910746fd84899fa7a4 /src/game/BattleGround.cpp | |
| parent | 62409ac2a44b4af071aad765fd60e8281593aad7 (diff) | |
[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
Diffstat (limited to 'src/game/BattleGround.cpp')
| -rw-r--r-- | src/game/BattleGround.cpp | 10 | 
1 files changed, 9 insertions, 1 deletions
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; +}  | 
