diff options
| author | megamage <none@none> | 2009-06-03 23:23:23 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-03 23:23:23 -0500 |
| commit | ed7e8569cc7ae60feaf21c0742de93fd2f776630 (patch) | |
| tree | 3afb86c4b6ab3ef20840571078ff71051a48d719 /src/game/Wintergrasp.cpp | |
| parent | 37f4bf6a04564d0633c8e4fb04f112d5bc290f94 (diff) | |
*Add config option for wintergrasp (battle time, interval)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Wintergrasp.cpp')
| -rw-r--r-- | src/game/Wintergrasp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index 0d30dfb78e0..5172b7f09d6 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -127,7 +127,7 @@ bool OPvPWintergrasp::SetupOutdoorPvP() LoadTeamPair(m_creEntryPair, CreatureEntryPair); m_wartime = false; - m_timer = 600000; + m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_START_TIME) * MINUTE * IN_MILISECONDS; return true; } @@ -407,7 +407,7 @@ bool OPvPWintergrasp::Update(uint32 diff) if(m_wartime) { m_wartime = false; - m_timer = 600000; // for test, should be 2 hour 30 min + m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_INTERVAL) * MINUTE * IN_MILISECONDS; if(m_defender == TEAM_ALLIANCE) sWorld.SendZoneText(ZONE_WINTERGRASP, "Alliance has successfully defended the fortress!"); else @@ -416,7 +416,7 @@ bool OPvPWintergrasp::Update(uint32 diff) else { m_wartime = true; - m_timer = 30*60*1000; + m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_BATTLE_TIME) * MINUTE * IN_MILISECONDS; sWorld.SendZoneText(ZONE_WINTERGRASP, "Battle begins!"); UpdateAllWorldObject(); } |
