Core/Gameobjects: renamed UnkInt32 to RequiredLevel
This commit is contained in:
commit
8e187a39a1
4 files changed
+5
-6
No files matched your search
@@ -0,0 +1 @@
|
||||
ALTER TABLE `gameobject_template` CHANGE `unkInt32` `RequiredLevel` int(10) NOT NULL DEFAULT '0';
|
||||
@@ -44,7 +44,7 @@ struct GameObjectTemplate
|
||||
std::string castBarCaption;
|
||||
std::string unk1;
|
||||
float size;
|
||||
int32 unkInt32;
|
||||
int32 RequiredLevel;
|
||||
union // different GO types have different data field
|
||||
{
|
||||
//0 GAMEOBJECT_TYPE_DOOR
|
||||
|
||||
@@ -6912,7 +6912,7 @@ void ObjectMgr::LoadGameObjectTemplate()
|
||||
// 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
||||
"Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, "
|
||||
// 37 38 39 40 41 42
|
||||
"Data29, Data30, Data31, unkInt32, AIName, ScriptName "
|
||||
"Data29, Data30, Data31, RequiredLevel, AIName, ScriptName "
|
||||
"FROM gameobject_template");
|
||||
|
||||
if (!result)
|
||||
@@ -6943,7 +6943,7 @@ void ObjectMgr::LoadGameObjectTemplate()
|
||||
for (uint8 i = 0; i < MAX_GAMEOBJECT_DATA; ++i)
|
||||
got.raw.data[i] = fields[8 + i].GetUInt32();
|
||||
|
||||
got.unkInt32 = fields[40].GetInt32();
|
||||
got.RequiredLevel = fields[40].GetInt32();
|
||||
got.AIName = fields[41].GetString();
|
||||
got.ScriptId = GetScriptId(fields[42].GetCString());
|
||||
|
||||
|
||||
@@ -211,9 +211,7 @@ void WorldSession::HandleGameObjectQueryOpcode(WorldPacket& recvData)
|
||||
data << info->unk1; // 2.0.3, string
|
||||
data.append(info->raw.data, MAX_GAMEOBJECT_DATA);
|
||||
data << float(info->size); // go size
|
||||
|
||||
data << int32(info->unkInt32); // 4.x, unknown
|
||||
|
||||
data << int32(info->RequiredLevel); // 4.x, Required level
|
||||
|
||||
GameObjectQuestItemList const* items = sObjectMgr->GetGameObjectQuestItemList(entry);
|
||||
if (items)
|
||||
|
||||
Reference in new issue
Block a user