Skip to content

Commit 95d4b6d

Browse files
author
Rochet2
committed
Merge TrinityCore 3.3.5 to ElunaTrinityWotlk [skip ci]
2 parents 9f9adb1 + 432d174 commit 95d4b6d

File tree

5 files changed

+3
-44
lines changed

5 files changed

+3
-44
lines changed

src/server/game/DataStores/DBCStores.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ typedef std::map<WMOAreaTableKey, WMOAreaTableEntry const*> WMOAreaInfoByTripple
4141

4242
DBCStorage <AreaTableEntry> sAreaTableStore(AreaTableEntryfmt);
4343
DBCStorage <AreaGroupEntry> sAreaGroupStore(AreaGroupEntryfmt);
44-
DBCStorage <AreaPOIEntry> sAreaPOIStore(AreaPOIEntryfmt);
4544

4645
static WMOAreaInfoByTripple sWMOAreaInfoByTripple;
4746

@@ -288,7 +287,6 @@ void LoadDBCStores(const std::string& dataPath)
288287
LOAD_DBC(sAchievementCriteriaStore, "Achievement_Criteria.dbc");
289288
LOAD_DBC(sAreaTriggerStore, "AreaTrigger.dbc");
290289
LOAD_DBC(sAreaGroupStore, "AreaGroup.dbc");
291-
LOAD_DBC(sAreaPOIStore, "AreaPOI.dbc");
292290
LOAD_DBC(sAuctionHouseStore, "AuctionHouse.dbc");
293291
LOAD_DBC(sBankBagSlotPricesStore, "BankBagSlotPrices.dbc");
294292
LOAD_DBC(sBannedAddOnsStore, "BannedAddOns.dbc");

src/server/game/DataStores/DBCStores.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ TC_GAME_API extern DBCStorage <AchievementEntry> sAchievementStore;
9292
TC_GAME_API extern DBCStorage <AchievementCriteriaEntry> sAchievementCriteriaStore;
9393
TC_GAME_API extern DBCStorage <AreaTableEntry> sAreaTableStore;
9494
TC_GAME_API extern DBCStorage <AreaGroupEntry> sAreaGroupStore;
95-
TC_GAME_API extern DBCStorage <AreaPOIEntry> sAreaPOIStore;
9695
TC_GAME_API extern DBCStorage <AreaTriggerEntry> sAreaTriggerStore;
9796
TC_GAME_API extern DBCStorage <AuctionHouseEntry> sAuctionHouseStore;
9897
TC_GAME_API extern DBCStorage <BankBagSlotPricesEntry> sBankBagSlotPricesStore;

src/server/game/Entities/Player/Player.cpp

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6567,7 +6567,7 @@ bool Player::RewardHonor(Unit* victim, uint32 groupsize, int32 honor, bool pvpto
65676567
return false;
65686568

65696569
ObjectGuid victim_guid;
6570-
uint32 victim_rank = 0;
6570+
int32 victim_rank = 0;
65716571

65726572
// need call before fields update to have chance move yesterday data to appropriate fields before today data change.
65736573
UpdateHonorFields();
@@ -6598,26 +6598,7 @@ bool Player::RewardHonor(Unit* victim, uint32 groupsize, int32 honor, bool pvpto
65986598
if (v_level <= k_grey)
65996599
return false;
66006600

6601-
// PLAYER_CHOSEN_TITLE VALUES DESCRIPTION
6602-
// [0] Just name
6603-
// [1..14] Alliance honor titles and player name
6604-
// [15..28] Horde honor titles and player name
6605-
// [29..38] Other title and player name
6606-
// [39+] Nothing
6607-
uint32 victim_title = victim->GetUInt32Value(PLAYER_CHOSEN_TITLE);
6608-
// Get Killer titles, CharTitlesEntry::MaskID
6609-
// Ranks:
6610-
// title[1..14] -> rank[5..18]
6611-
// title[15..28] -> rank[5..18]
6612-
// title[other] -> 0
6613-
if (victim_title == 0)
6614-
victim_guid.Clear(); // Don't show HK: <rank> message, only log.
6615-
else if (victim_title < 15)
6616-
victim_rank = victim_title + 4;
6617-
else if (victim_title < 29)
6618-
victim_rank = victim_title - 14 + 4;
6619-
else
6620-
victim_guid.Clear(); // Don't show HK: <rank> message, only log.
6601+
victim_rank = victim->GetByteValue(PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_LIFETIME_MAX_PVP_RANK);
66216602

66226603
honor_f = std::ceil(Trinity::Honor::hk_honor_at_level_f(k_level) * (v_level - k_grey) / (k_level - k_grey));
66236604

@@ -6662,7 +6643,7 @@ bool Player::RewardHonor(Unit* victim, uint32 groupsize, int32 honor, bool pvpto
66626643
WorldPacket data(SMSG_PVP_CREDIT, 4+8+4);
66636644
data << uint32(honor);
66646645
data << victim_guid;
6665-
data << uint32(victim_rank);
6646+
data << int32(victim_rank);
66666647

66676648
SendDirectMessage(&data);
66686649

src/server/shared/DataStores/DBCStructure.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -223,24 +223,6 @@ struct AreaGroupEntry
223223
uint32 NextAreaID; // 7 index of next group
224224
};
225225

226-
struct AreaPOIEntry
227-
{
228-
uint32 ID; // 0
229-
uint32 Importance; // 1
230-
uint32 Icon[9]; // 2-10
231-
uint32 FactionID; // 11
232-
DBCPosition3D Pos; // 12-14
233-
uint32 ContinentID; // 15
234-
//uint32 Flags; // 16
235-
uint32 AreaID; // 17
236-
//char const* Name[16]; // 18-33
237-
//uint32 Name_lang_mask; // 34
238-
//char const* Description[16]; // 35-50
239-
//uint32 Description_lang_mask; // 51
240-
uint32 WorldStateID; // 52
241-
//uint32 WorldMapLink; // 53
242-
};
243-
244226
struct AreaTriggerEntry
245227
{
246228
uint32 ID; // 0

src/server/shared/DataStores/DBCfmt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ char constexpr CustomAchievementIndex[] = "ID";
2424
char constexpr AchievementCriteriafmt[] = "niiiiiiiixxxxxxxxxxxxxxxxxiiiix";
2525
char constexpr AreaTableEntryfmt[] = "niiiixxxxxissssssssssssssssxiiiiixxx";
2626
char constexpr AreaGroupEntryfmt[] = "niiiiiii";
27-
char constexpr AreaPOIEntryfmt[] = "niiiiiiiiiiifffixixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxix";
2827
char constexpr AreaTriggerEntryfmt[] = "niffffffff";
2928
char constexpr AuctionHouseEntryfmt[] = "niiixxxxxxxxxxxxxxxxx";
3029
char constexpr BankBagSlotPricesEntryfmt[] = "ni";

0 commit comments

Comments
 (0)