Show
Ignore:
Timestamp:
11/19/08 13:29:16 (17 years ago)
Author:
yumileroy
Message:

[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.

Original author: w12x
Date: 2008-10-17 16:36:07-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/BattleGroundEY.cpp

    r44 r50  
    3131#include "Util.h" 
    3232 
     33// these variables aren't used outside of this file, so declare them only here 
     34uint32 BG_EY_HonorScoreTicks[BG_HONOR_MODE_NUM] = { 
     35    330, // normal honor 
     36    200  // holiday 
     37}; 
     38 
    3339BattleGroundEY::BattleGroundEY() 
    3440{ 
     
    160166    m_TeamScores[team_index] += Points; 
    161167    m_HonorScoreTics[team_index] += Points; 
    162     if (m_HonorScoreTics[team_index] >= BG_HONOR_SCORE_TICKS) 
     168    if (m_HonorScoreTics[team_index] >= BG_EY_HonorScoreTicks[m_HonorMode]) 
    163169    { 
    164170        RewardHonorToTeam(20, Team); 
    165         m_HonorScoreTics[team_index] -= BG_HONOR_SCORE_TICKS; 
     171        m_HonorScoreTics[team_index] -= BG_EY_HonorScoreTicks[m_HonorMode]; 
    166172    } 
    167173    UpdateTeamScore(Team);