mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7080] More item_template data checks at loading.
Not all checks can be 100% correct result possible. Plerase, report proved wrong output and this checks part will disabled.
This commit is contained in:
parent
e8d32763a6
commit
d53b43024a
4 changed files with 24 additions and 6 deletions
|
|
@ -1598,6 +1598,24 @@ void ObjectMgr::LoadItemPrototypes()
|
|||
|
||||
if(dbcitem)
|
||||
{
|
||||
if(proto->Class != dbcitem->Class || proto->SubClass != dbcitem->SubClass)
|
||||
{
|
||||
sLog.outErrorDb("Item (Entry: %u) not correct (Class: %u, Sub: %u) pair, must be (Class: %u, Sub: %u) (still using DB value).",i,proto->Class,proto->SubClass,dbcitem->Class,dbcitem->SubClass);
|
||||
// It safe let use InventoryType from DB
|
||||
}
|
||||
|
||||
if(proto->Unk0 != dbcitem->Unk0)
|
||||
{
|
||||
sLog.outErrorDb("Item (Entry: %u) not correct %u Unk0, must be %u (still using DB value).",i,proto->Unk0,dbcitem->Unk0);
|
||||
// It safe let use InventoryType from DB
|
||||
}
|
||||
|
||||
if(proto->Material != dbcitem->Material)
|
||||
{
|
||||
sLog.outErrorDb("Item (Entry: %u) not correct %u material, must be %u (still using DB value).",i,proto->Material,dbcitem->Material);
|
||||
// It safe let use InventoryType from DB
|
||||
}
|
||||
|
||||
if(proto->InventoryType != dbcitem->InventoryType)
|
||||
{
|
||||
sLog.outErrorDb("Item (Entry: %u) not correct %u inventory type, must be %u (still using DB value).",i,proto->InventoryType,dbcitem->InventoryType);
|
||||
|
|
|
|||
|
|
@ -809,10 +809,10 @@ struct GtRegenMPPerSptEntry
|
|||
struct ItemEntry
|
||||
{
|
||||
uint32 ID;
|
||||
//uint32 Class;
|
||||
//uint32 SubClass;
|
||||
//uint32 Unk0;
|
||||
//uint32 Material;
|
||||
uint32 Class;
|
||||
uint32 SubClass;
|
||||
uint32 Unk0;
|
||||
uint32 Material;
|
||||
uint32 DisplayId;
|
||||
uint32 InventoryType;
|
||||
uint32 Sheath;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ const char GtOCTRegenHPfmt[]="f";
|
|||
//const char GtOCTRegenMPfmt[]="f";
|
||||
const char GtRegenHPPerSptfmt[]="f";
|
||||
const char GtRegenMPPerSptfmt[]="f";
|
||||
const char Itemfmt[]="nxxxxiii";
|
||||
const char Itemfmt[]="niiiiiii";
|
||||
//const char ItemDisplayTemplateEntryfmt[]="nxxxxxxxxxxixxxxxxxxxxx";
|
||||
//const char ItemCondExtCostsEntryfmt[]="xiii";
|
||||
const char ItemExtendedCostEntryfmt[]="niiiiiiiiiiiiix";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7079"
|
||||
#define REVISION_NR "7080"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue