* Wintergrasp: Elementals/Revenants only visible outside Wartime. By Spp

*Wintergrasp: Fixed Towers, weren't giving rewards. By Spp
*Wintergrasp: Cosmetic changes to make code easier to follow. By Spp (idea by Biglad)
*Wintergrasp: Building are immune to damage outside Wartime. By Spp (Original code by Biglad)
*Wintergrasp: Modified Custom Honor (Honor and marks) to fit with rank level. By Spp (Thanks to Gyullo and Magnarion)
*Some cleanup.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 02:06:12 -07:00
parent 53b67cb854
commit ad91c3a94b
8 changed files with 250 additions and 176 deletions
+8 -9
View File
@@ -63,11 +63,10 @@ enum WintergraspRewardEvent
DESTROYED_TOWER,
DAMAGED_BUILDING,
INTACT_BUILDING,
WIN_BATTLE_MARKS,
LOSE_BATTLE_MARKS,
WG_REWARD_EVENT_MAX
WG_REWARD_EVENT_MAX,
};
/* Not used / Not implemented
const uint16 GameEventWintergraspDefender[2] = {50, 51};
@@ -106,6 +105,7 @@ enum WintergraspCreType
CREATURE_TURRET,
CREATURE_ENGINEER,
CREATURE_GUARD,
CREATURE_SPECIAL,
};
enum BuildingType
@@ -195,9 +195,9 @@ class OPvPWintergrasp : public OutdoorPvP
void SetData(uint32 id, uint32 value);
void ModifyWorkshopCount(TeamId team, bool add);
uint32 GetTimer() { return m_timer / 1000; };
TeamId GetTeam() { return m_defender; };
bool isWarTime() { return m_wartime; };
uint32 GetTimer() const { return m_timer / 1000; };
TeamId GetTeam() const { return m_defender; };
bool isWarTime() const { return m_wartime; };
protected:
TeamId m_defender;
int32 m_tenacityStack;
@@ -206,7 +206,6 @@ class OPvPWintergrasp : public OutdoorPvP
BuildingState *m_gate;
CreatureSet m_creatures;
CreatureSet m_turrets;
CreatureSet m_vehicles[2];
GameObjectSet m_gobjects;
@@ -217,8 +216,8 @@ class OPvPWintergrasp : public OutdoorPvP
uint32 m_timer;
uint32 m_clock[5];
uint32 m_workshopCount[2];
uint32 m_towerCount;
uint32 m_towerDamagedCount;
uint32 m_towerCount[2][2];
uint32 m_customHonorReward[WG_REWARD_EVENT_MAX];
SiegeWorkshop *GetWorkshop(uint32 lowguid) const;