Core/DataStores: Updated db2 structures to 8.2.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/3ac790287aba5f7d7c3bccf79e608de9119e461a)
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Game.Network.Packets
|
||||
uint count = _worldPacket.ReadBits<uint>(13);
|
||||
for (uint i = 0; i < count; ++i)
|
||||
{
|
||||
Queries.Add(new DBQueryRecord(_worldPacket.ReadPackedGuid(), _worldPacket.ReadUInt32()));
|
||||
Queries.Add(new DBQueryRecord(_worldPacket.ReadUInt32()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,13 +44,11 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct DBQueryRecord
|
||||
{
|
||||
public DBQueryRecord(ObjectGuid guid, uint recordId)
|
||||
public DBQueryRecord(uint recordId)
|
||||
{
|
||||
GUID = guid;
|
||||
RecordID = recordId;
|
||||
}
|
||||
|
||||
public ObjectGuid GUID;
|
||||
public uint RecordID;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -774,25 +774,17 @@ namespace Game.Network.Packets
|
||||
if (lootItem.randomBonusListId != 0)
|
||||
ItemBonus.Value.BonusListIDs.Add(lootItem.randomBonusListId);
|
||||
}
|
||||
|
||||
if (lootItem.upgradeId != 0)
|
||||
{
|
||||
Modifications.HasValue = true;
|
||||
Modifications.Value.Insert((int)ItemModifier.UpgradeId, (int)lootItem.upgradeId);
|
||||
}
|
||||
}
|
||||
|
||||
public ItemInstance(VoidStorageItem voidItem)
|
||||
{
|
||||
ItemID = voidItem.ItemEntry;
|
||||
|
||||
if (voidItem.ItemUpgradeId != 0 || voidItem.FixedScalingLevel != 0 || voidItem.ArtifactKnowledgeLevel != 0)
|
||||
if (voidItem.FixedScalingLevel != 0 || voidItem.ArtifactKnowledgeLevel != 0)
|
||||
{
|
||||
Modifications.HasValue = true;
|
||||
if (voidItem.ItemUpgradeId != 0)
|
||||
Modifications.Value.Insert((int)ItemModifier.UpgradeId, (int)voidItem.ItemUpgradeId);
|
||||
if (voidItem.FixedScalingLevel != 0)
|
||||
Modifications.Value.Insert((int)ItemModifier.ScalingStatDistributionFixedLevel, (int)voidItem.FixedScalingLevel);
|
||||
Modifications.Value.Insert((int)ItemModifier.TimewalkerLevel, (int)voidItem.FixedScalingLevel);
|
||||
if (voidItem.ArtifactKnowledgeLevel != 0)
|
||||
Modifications.Value.Insert((int)ItemModifier.ArtifactKnowledgeLevel, (int)voidItem.ArtifactKnowledgeLevel);
|
||||
}
|
||||
|
||||
@@ -450,11 +450,11 @@ namespace Game.Network.Packets
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(MapID);
|
||||
_worldPacket.WriteVector3(Loc);
|
||||
_worldPacket.WriteXYZ(Loc);
|
||||
}
|
||||
|
||||
public int MapID;
|
||||
public Vector3 Loc;
|
||||
public WorldLocation Loc;
|
||||
}
|
||||
|
||||
public class PortGraveyard : ClientPacket
|
||||
|
||||
Reference in New Issue
Block a user