@@ -721,7 +721,7 @@ int32 ArenaTeam::LostAgainst(uint32 Own_MMRating, uint32 Opponent_MMRating, int3
|
||||
void ArenaTeam::MemberLost(Player* player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange)
|
||||
{
|
||||
// Called for each participant of a match after losing
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
{
|
||||
if (itr->Guid == player->GetGUID())
|
||||
{
|
||||
@@ -747,7 +747,7 @@ void ArenaTeam::MemberLost(Player* player, uint32 againstMatchmakerRating, int32
|
||||
void ArenaTeam::OfflineMemberLost(uint64 guid, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange)
|
||||
{
|
||||
// Called for offline player after ending rated arena match!
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
{
|
||||
if (itr->Guid == guid)
|
||||
{
|
||||
@@ -769,7 +769,7 @@ void ArenaTeam::OfflineMemberLost(uint64 guid, uint32 againstMatchmakerRating, i
|
||||
void ArenaTeam::MemberWon(Player* player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange)
|
||||
{
|
||||
// called for each participant after winning a match
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
{
|
||||
if (itr->Guid == player->GetGUID())
|
||||
{
|
||||
@@ -804,7 +804,7 @@ void ArenaTeam::UpdateArenaPointsHelper(std::map<uint32, uint32>& playerPoints)
|
||||
// To get points, a player has to participate in at least 30% of the matches
|
||||
uint32 requiredGames = (uint32)ceil(Stats.WeekGames * 0.3f);
|
||||
|
||||
for (MemberList::const_iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
for (MemberList::const_iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
{
|
||||
// The player participated in enough games, update his points
|
||||
uint32 pointsToAdd = 0;
|
||||
@@ -840,7 +840,7 @@ void ArenaTeam::SaveToDB()
|
||||
stmt->setUInt32(6, GetId());
|
||||
trans->Append(stmt);
|
||||
|
||||
for (MemberList::const_iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
for (MemberList::const_iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
{
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ARENA_TEAM_MEMBER);
|
||||
stmt->setUInt16(0, itr->PersonalRating);
|
||||
@@ -869,7 +869,7 @@ void ArenaTeam::FinishWeek()
|
||||
Stats.WeekWins = 0;
|
||||
|
||||
// Reset member stats
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
for (MemberList::iterator itr = Members.begin(); itr != Members.end(); ++itr)
|
||||
{
|
||||
itr->WeekGames = 0;
|
||||
itr->WeekWins = 0;
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Trinity
|
||||
private:
|
||||
void do_helper(WorldPacket& data, char const* text)
|
||||
{
|
||||
uint64 target_guid = _source ? _source ->GetGUID() : 0;
|
||||
uint64 target_guid = _source ? _source->GetGUID() : 0;
|
||||
|
||||
data << uint8 (_msgtype);
|
||||
data << uint32(LANG_UNIVERSAL);
|
||||
|
||||
@@ -129,7 +129,7 @@ bool BattlegroundQueue::SelectionPool::AddGroup(GroupQueueInfo* ginfo, uint32 de
|
||||
// add group or player (grp == NULL) to bg queue with the given leader and bg specifications
|
||||
GroupQueueInfo* BattlegroundQueue::AddGroup(Player* leader, Group* grp, BattlegroundTypeId BgTypeId, PvPDifficultyEntry const* bracketEntry, uint8 ArenaType, bool isRated, bool isPremade, uint32 ArenaRating, uint32 MatchmakerRating, uint32 arenateamid)
|
||||
{
|
||||
BattlegroundBracketId bracketId = bracketEntry->GetBracketId();
|
||||
BattlegroundBracketId bracketId = bracketEntry->GetBracketId();
|
||||
|
||||
// create new ginfo
|
||||
GroupQueueInfo* ginfo = new GroupQueueInfo;
|
||||
|
||||
@@ -184,7 +184,8 @@ enum BG_AB_Objectives
|
||||
#define AB_EVENT_START_BATTLE 9158 // Achievement: Let's Get This Done
|
||||
|
||||
// x, y, z, o
|
||||
const float BG_AB_NodePositions[BG_AB_DYNAMIC_NODES_COUNT][4] = {
|
||||
const float BG_AB_NodePositions[BG_AB_DYNAMIC_NODES_COUNT][4] =
|
||||
{
|
||||
{1166.785f, 1200.132f, -56.70859f, 0.9075713f}, // stables
|
||||
{977.0156f, 1046.616f, -44.80923f, -2.600541f}, // blacksmith
|
||||
{806.1821f, 874.2723f, -55.99371f, -2.303835f}, // farm
|
||||
@@ -193,7 +194,8 @@ const float BG_AB_NodePositions[BG_AB_DYNAMIC_NODES_COUNT][4] = {
|
||||
};
|
||||
|
||||
// x, y, z, o, rot0, rot1, rot2, rot3
|
||||
const float BG_AB_DoorPositions[2][8] = {
|
||||
const float BG_AB_DoorPositions[2][8] =
|
||||
{
|
||||
{1284.597f, 1281.167f, -15.97792f, 0.7068594f, 0.012957f, -0.060288f, 0.344959f, 0.93659f},
|
||||
{708.0903f, 708.4479f, -17.8342f, -2.391099f, 0.050291f, 0.015127f, 0.929217f, -0.365784f}
|
||||
};
|
||||
@@ -206,7 +208,8 @@ const uint32 BG_AB_TickPoints[6] = {0, 10, 10, 10, 10, 30};
|
||||
const uint32 BG_AB_GraveyardIds[BG_AB_ALL_NODES_COUNT] = {895, 894, 893, 897, 896, 898, 899};
|
||||
|
||||
// x, y, z, o
|
||||
const float BG_AB_BuffPositions[BG_AB_DYNAMIC_NODES_COUNT][4] = {
|
||||
const float BG_AB_BuffPositions[BG_AB_DYNAMIC_NODES_COUNT][4] =
|
||||
{
|
||||
{1185.71f, 1185.24f, -56.36f, 2.56f}, // stables
|
||||
{990.75f, 1008.18f, -42.60f, 2.43f}, // blacksmith
|
||||
{817.66f, 843.34f, -56.54f, 3.01f}, // farm
|
||||
@@ -215,7 +218,8 @@ const float BG_AB_BuffPositions[BG_AB_DYNAMIC_NODES_COUNT][4] = {
|
||||
};
|
||||
|
||||
// x, y, z, o
|
||||
const float BG_AB_SpiritGuidePos[BG_AB_ALL_NODES_COUNT][4] = {
|
||||
const float BG_AB_SpiritGuidePos[BG_AB_ALL_NODES_COUNT][4] =
|
||||
{
|
||||
{1200.03f, 1171.09f, -56.47f, 5.15f}, // stables
|
||||
{1017.43f, 960.61f, -42.95f, 4.88f}, // blacksmith
|
||||
{833.00f, 793.00f, -57.25f, 5.27f}, // farm
|
||||
|
||||
@@ -356,7 +356,9 @@ enum BG_AV_OBJECTS
|
||||
|
||||
AV_OPLACE_MAX = 149
|
||||
};
|
||||
const float BG_AV_ObjectPos[AV_OPLACE_MAX][4] = {
|
||||
|
||||
const float BG_AV_ObjectPos[AV_OPLACE_MAX][4] =
|
||||
{
|
||||
{638.592f, -32.422f, 46.0608f, -1.62316f }, //firstaid station
|
||||
{669.007f, -294.078f, 30.2909f, 2.77507f }, //stormpike
|
||||
{77.8013f, -404.7f, 46.7549f, -0.872665f }, //stone grave
|
||||
@@ -527,7 +529,8 @@ const float BG_AV_ObjectPos[AV_OPLACE_MAX][4] = {
|
||||
{-951.394f, -193.695f, 67.634f, 0.802851f}
|
||||
};
|
||||
|
||||
const float BG_AV_DoorPositons[2][4] = {
|
||||
const float BG_AV_DoorPositons[2][4] =
|
||||
{
|
||||
{780.487f, -493.024f, 99.9553f, 3.0976f}, //alliance
|
||||
{-1375.193f, -538.981f, 55.2824f, 0.72178f} //horde
|
||||
};
|
||||
@@ -623,7 +626,8 @@ enum BG_AV_CreaturePlace
|
||||
};
|
||||
|
||||
//x, y, z, o
|
||||
const float BG_AV_CreaturePos[AV_CPLACE_MAX][4] = {
|
||||
const float BG_AV_CreaturePos[AV_CPLACE_MAX][4] =
|
||||
{
|
||||
//spiritguides
|
||||
{643.000000f, 44.000000f, 69.740196f, -0.001854f},
|
||||
{676.000000f, -374.000000f, 30.000000f, -0.001854f},
|
||||
@@ -1039,7 +1043,8 @@ enum BG_AV_CreatureIds
|
||||
|
||||
//entry, team, minlevel, maxlevel
|
||||
//TODO this array should be removed, the only needed things are the entrys (for spawning(?) and handlekillunit)
|
||||
const uint32 BG_AV_CreatureInfo[AV_NPC_INFO_MAX][4] = {
|
||||
const uint32 BG_AV_CreatureInfo[AV_NPC_INFO_MAX][4] =
|
||||
{
|
||||
{ 12050, 1216, 58, 58 }, //Stormpike Defender
|
||||
{ 13326, 1216, 59, 59 }, //Seasoned Defender
|
||||
{ 13331, 1216, 60, 60 }, //Veteran Defender
|
||||
@@ -1099,7 +1104,9 @@ const uint32 BG_AV_CreatureInfo[AV_NPC_INFO_MAX][4] = {
|
||||
};
|
||||
|
||||
//x, y, z, o, static_creature_info-id
|
||||
const float BG_AV_StaticCreaturePos[AV_STATICCPLACE_MAX][5] = { //static creatures
|
||||
const float BG_AV_StaticCreaturePos[AV_STATICCPLACE_MAX][5] =
|
||||
{
|
||||
//static creatures
|
||||
{-1235.31f, -340.777f, 60.5088f, 3.31613f, 0 }, //2225 - Zora Guthrek
|
||||
{-1244.02f, -323.795f, 61.0485f, 5.21853f, 1 }, //3343 - Grelkor
|
||||
{-1235.16f, -332.302f, 60.2985f, 2.96706f, 2 }, //3625 - Rarck
|
||||
@@ -1226,7 +1233,8 @@ const float BG_AV_StaticCreaturePos[AV_STATICCPLACE_MAX][5] = { //static creatur
|
||||
|
||||
};
|
||||
|
||||
const uint32 BG_AV_StaticCreatureInfo[51][4] = {
|
||||
const uint32 BG_AV_StaticCreatureInfo[51][4] =
|
||||
{
|
||||
{ 2225, 1215, 55, 55 }, //Zora Guthrek
|
||||
{ 3343, 1215, 55, 55 }, //Grelkor
|
||||
{ 3625, 1215, 55, 55 }, //Rarck
|
||||
@@ -1293,16 +1301,17 @@ enum BG_AV_Graveyards
|
||||
AV_GRAVE_MAIN_HORDE = 610
|
||||
};
|
||||
|
||||
const uint32 BG_AV_GraveyardIds[9]= {
|
||||
AV_GRAVE_STORM_AID,
|
||||
AV_GRAVE_STORM_GRAVE,
|
||||
AV_GRAVE_STONE_GRAVE,
|
||||
AV_GRAVE_SNOWFALL,
|
||||
AV_GRAVE_ICE_GRAVE,
|
||||
AV_GRAVE_FROSTWOLF,
|
||||
AV_GRAVE_FROST_HUT,
|
||||
AV_GRAVE_MAIN_ALLIANCE,
|
||||
AV_GRAVE_MAIN_HORDE
|
||||
const uint32 BG_AV_GraveyardIds[9]=
|
||||
{
|
||||
AV_GRAVE_STORM_AID,
|
||||
AV_GRAVE_STORM_GRAVE,
|
||||
AV_GRAVE_STONE_GRAVE,
|
||||
AV_GRAVE_SNOWFALL,
|
||||
AV_GRAVE_ICE_GRAVE,
|
||||
AV_GRAVE_FROSTWOLF,
|
||||
AV_GRAVE_FROST_HUT,
|
||||
AV_GRAVE_MAIN_ALLIANCE,
|
||||
AV_GRAVE_MAIN_HORDE
|
||||
};
|
||||
|
||||
enum BG_AV_BUFF
|
||||
@@ -1434,13 +1443,15 @@ enum BG_AV_WorldStates
|
||||
};
|
||||
|
||||
//alliance_control neutral_control horde_control
|
||||
const uint32 BG_AV_MineWorldStates[2][3] = {
|
||||
const uint32 BG_AV_MineWorldStates[2][3] =
|
||||
{
|
||||
{1358, 1360, 1359},
|
||||
{1355, 1357, 1356}
|
||||
};
|
||||
|
||||
//alliance_control alliance_assault h_control h_assault
|
||||
const uint32 BG_AV_NodeWorldStates[16][4] = {
|
||||
const uint32 BG_AV_NodeWorldStates[16][4] =
|
||||
{
|
||||
//Stormpike first aid station
|
||||
{1325, 1326, 1327, 1328},
|
||||
//Stormpike Graveyard
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
#include "Util.h"
|
||||
|
||||
// these variables aren't used outside of this file, so declare them only here
|
||||
uint32 BG_EY_HonorScoreTicks[BG_HONOR_MODE_NUM] = {
|
||||
uint32 BG_EY_HonorScoreTicks[BG_HONOR_MODE_NUM] =
|
||||
{
|
||||
260, // normal honor
|
||||
160 // holiday
|
||||
};
|
||||
|
||||
@@ -258,7 +258,8 @@ struct BattlegroundEYPointIconsStruct
|
||||
};
|
||||
|
||||
// x, y, z, o
|
||||
const float BG_EY_TriggerPositions[EY_POINTS_MAX][4] = {
|
||||
const float BG_EY_TriggerPositions[EY_POINTS_MAX][4] =
|
||||
{
|
||||
{2044.28f, 1729.68f, 1189.96f, 0.017453f}, // FEL_REAVER center
|
||||
{2048.83f, 1393.65f, 1194.49f, 0.20944f}, // BLOOD_ELF center
|
||||
{2286.56f, 1402.36f, 1197.11f, 3.72381f}, // DRAENEI_RUINS center
|
||||
@@ -326,7 +327,7 @@ const BattlegroundEYCapturingPointStruct m_CapturingPointTypes[EY_POINTS_MAX] =
|
||||
class BattlegroundEYScore : public BattlegroundScore
|
||||
{
|
||||
public:
|
||||
BattlegroundEYScore () : FlagCaptures(0) {};
|
||||
BattlegroundEYScore() : FlagCaptures(0) {};
|
||||
virtual ~BattlegroundEYScore() {};
|
||||
uint32 FlagCaptures;
|
||||
};
|
||||
|
||||
@@ -47,7 +47,7 @@ BattlegroundIC::BattlegroundIC()
|
||||
resourceTimer = IC_RESOURCE_TIME;
|
||||
|
||||
for (uint8 i = NODE_TYPE_REFINERY; i < MAX_NODE_TYPES; i++)
|
||||
nodePoint[i] = nodePointInitial[i];
|
||||
nodePoint[i] = nodePointInitial[i];
|
||||
|
||||
siegeEngineWorkshopTimer = WORKSHOP_UPDATE_TIME;
|
||||
|
||||
@@ -926,7 +926,7 @@ Transport* BattlegroundIC::CreateTransport(uint32 goEntry, uint32 period)
|
||||
|
||||
float x = t->m_WayPoints[0].x;
|
||||
float y = t->m_WayPoints[0].y;
|
||||
float z = t->m_WayPoints[0].z;
|
||||
float z = t->m_WayPoints[0].z;
|
||||
float o = 1;
|
||||
|
||||
// creates the Gameobject
|
||||
|
||||
@@ -37,7 +37,8 @@ enum BG_WSG_Rewards
|
||||
BG_WSG_REWARD_NUM
|
||||
};
|
||||
|
||||
uint32 BG_WSG_Honor[BG_HONOR_MODE_NUM][BG_WSG_REWARD_NUM] = {
|
||||
uint32 BG_WSG_Honor[BG_HONOR_MODE_NUM][BG_WSG_REWARD_NUM] =
|
||||
{
|
||||
{20, 40, 40}, // normal honor
|
||||
{60, 40, 80} // holiday
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user