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/BattleGround.cpp

    r44 r50  
    8787    m_PrematureCountDown = false; 
    8888    m_PrematureCountDown = 0; 
     89    m_HonorMode = BG_NORMAL; 
    8990} 
    9091 
     
    538539                Source = plr; 
    539540            RewardMark(plr,ITEM_WINNER_COUNT); 
    540             UpdatePlayerScore(plr, SCORE_BONUS_HONOR, 20); 
    541541            RewardQuest(plr); 
    542542        } 
     
    14671467    return count; 
    14681468} 
     1469 
     1470void BattleGround::SetHoliday(bool is_holiday) 
     1471{ 
     1472    if(is_holiday) 
     1473        m_HonorMode = BG_HOLIDAY; 
     1474    else 
     1475        m_HonorMode = BG_NORMAL; 
     1476}