From 7b675219e72a80c9daab03030732b5edf88cb96c Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 23 Apr 2010 22:31:59 +0400 Subject: [PATCH] [9785] Remove special dagger starting outfit amount. Now DBC data provide special off-hand instead. Also update structure comments. --- src/game/DBCStructure.h | 12 ++++++------ src/game/Player.cpp | 5 ----- src/shared/revision_nr.h | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/game/DBCStructure.h b/src/game/DBCStructure.h index 8d7110e7c..d8e4d4a6d 100644 --- a/src/game/DBCStructure.h +++ b/src/game/DBCStructure.h @@ -601,12 +601,12 @@ struct CharStartOutfitEntry { //uint32 Id; // 0 uint32 RaceClassGender; // 1 (UNIT_FIELD_BYTES_0 & 0x00FFFFFF) comparable (0 byte = race, 1 byte = class, 2 byte = gender) - int32 ItemId[MAX_OUTFIT_ITEMS]; // 2-13 - //int32 ItemDisplayId[MAX_OUTFIT_ITEMS]; // 14-25 not required at server side - //int32 ItemInventorySlot[MAX_OUTFIT_ITEMS]; // 26-37 not required at server side - //uint32 Unknown1; // 38, unique values (index-like with gaps ordered in other way as ids) - //uint32 Unknown2; // 39 - //uint32 Unknown3; // 40 + int32 ItemId[MAX_OUTFIT_ITEMS]; // 2-25 + //int32 ItemDisplayId[MAX_OUTFIT_ITEMS]; // 26-29 not required at server side + //int32 ItemInventorySlot[MAX_OUTFIT_ITEMS]; // 50-73 not required at server side + //uint32 Unknown1; // 74, unique values (index-like with gaps ordered in other way as ids) + //uint32 Unknown2; // 75 + //uint32 Unknown3; // 76 }; struct CharTitlesEntry diff --git a/src/game/Player.cpp b/src/game/Player.cpp index dfa19ac70..20bbc4da7 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -720,11 +720,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8 if(iProto->Stackable < count) count = iProto->Stackable; } - // special amount for daggers - else if(iProto->Class==ITEM_CLASS_WEAPON && iProto->SubClass==ITEM_SUBCLASS_WEAPON_DAGGER) - { - count = 2; // will placed to 2 slots - } StoreNewItemInBestSlots(item_id, count); } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index a7763850b..dfe97bdd1 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9784" + #define REVISION_NR "9785" #endif // __REVISION_NR_H__