mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 01:37:03 +00:00
[10203] Rename item_template.Faction to Flags2 and define some values for it.
Thanks to Shauren for research flag ITEM_FLAGS2_COST_REQUIRES_GOLD meaning and inspiring in general what must be done long time ago with field rename and other enum values listing.
This commit is contained in:
parent
01d326b90d
commit
4e16982d18
7 changed files with 20 additions and 6 deletions
|
|
@ -316,7 +316,7 @@ void WorldSession::HandleItemQuerySingleOpcode( WorldPacket & recv_data )
|
|||
data << pProto->DisplayInfoID;
|
||||
data << pProto->Quality;
|
||||
data << pProto->Flags;
|
||||
data << pProto->Faction; // 3.2 faction?
|
||||
data << pProto->Flags2; // new in 3.2
|
||||
data << pProto->BuyPrice;
|
||||
data << pProto->SellPrice;
|
||||
data << pProto->InventoryType;
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ enum ItemBondingType
|
|||
#define MAX_BIND_TYPE 6
|
||||
|
||||
// masks for ITEM_FIELD_FLAGS field
|
||||
enum ITEM_FLAGS
|
||||
enum ItemFlags
|
||||
{
|
||||
ITEM_FLAGS_BINDED = 0x00000001, // set in game at binding, not set in template
|
||||
ITEM_FLAGS_CONJURED = 0x00000002,
|
||||
|
|
@ -132,6 +132,13 @@ enum ITEM_FLAGS
|
|||
ITEM_FLAGS_BOP_TRADEABLE = 0x80000000
|
||||
};
|
||||
|
||||
enum ItemFlags2
|
||||
{
|
||||
ITEM_FLAGS2_HORDE_ONLY = 0x00000001, // drop in loot, sell by vendor and equipping only for horde
|
||||
ITEM_FLAGS2_ALLIANCE_ONLY = 0x00000002, // drop in loot, sell by vendor and equipping only for alliance
|
||||
ITEM_FLAGS2_EXT_COST_REQUIRES_GOLD = 0x00000004, // item cost include gold part in case extended cost use also
|
||||
};
|
||||
|
||||
enum BAG_FAMILY_MASK
|
||||
{
|
||||
BAG_FAMILY_MASK_NONE = 0x00000000,
|
||||
|
|
@ -530,7 +537,7 @@ struct ItemPrototype
|
|||
uint32 DisplayInfoID; // id from ItemDisplayInfo.dbc
|
||||
uint32 Quality;
|
||||
uint32 Flags;
|
||||
uint32 Faction;
|
||||
uint32 Flags2;
|
||||
uint32 BuyCount;
|
||||
uint32 BuyPrice;
|
||||
uint32 SellPrice;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue