Skip to content

Commit

Permalink
Sync unk int field with Hotfixes DB field Name
Browse files Browse the repository at this point in the history
  • Loading branch information
danlapps authored and DDuarte committed Feb 22, 2015
1 parent a524079 commit 46df8c5
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 41 deletions.
18 changes: 9 additions & 9 deletions WowPacketParser/Parsing/Parsers/ItemHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ public static void HandleDBReply(Packet packet)
packet.ReadInt32("Stat Value", i);

for (var i = 0; i < 10; i++)
packet.ReadInt32("Unk UInt32 1", i);
packet.ReadInt32("Scaling Value", i);

for (var i = 0; i < 10; i++)
packet.ReadInt32("Unk UInt32 2", i);
Expand Down Expand Up @@ -906,13 +906,13 @@ public static void HandleDBReply430(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = packet.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = packet.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = packet.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = packet.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = packet.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = packet.ReadInt32("Scaling Stat Distribution");
item.DamageType = packet.ReadInt32E<DamageType>("Damage Type");
Expand Down Expand Up @@ -1073,13 +1073,13 @@ public static void HandleDBReply434(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = packet.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = packet.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = packet.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = packet.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = packet.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = packet.ReadInt32("Scaling Stat Distribution");
item.DamageType = packet.ReadInt32E<DamageType>("Damage Type");
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParser/Store/Objects/ItemTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public sealed class ItemTemplate
[DBFieldName("stat_value", 10)]
public int[] StatValues;

[DBFieldName("stat_unk1_", ClientVersionBuild.V4_0_1_13164, 10)]
public int[] StatUnk1;
[DBFieldName("scaling_value", ClientVersionBuild.V4_0_1_13164, 10)]
public int[] ScalingValue;

[DBFieldName("stat_unk2_", ClientVersionBuild.V4_0_1_13164, 10)]
public int[] StatUnk2;
[DBFieldName("socket_cost_rate", ClientVersionBuild.V4_0_1_13164, 10)]
public int[] SocketCostRate;

[DBFieldName("ScalingStatDistribution")]
public int ScalingStatDistribution;
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParserModule.V5_3_0_16981/Parsers/QueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ public static void HandleDBReply(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = db2File.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = db2File.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = db2File.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = db2File.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = db2File.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = db2File.ReadInt32("Scaling Stat Distribution");
item.DamageType = db2File.ReadInt32E<DamageType>("Damage Type");
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParserModule.V5_4_0_17359/Parsers/QueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ public static void HandleDBReply(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = db2File.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = db2File.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = db2File.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = db2File.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = db2File.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = db2File.ReadInt32("Scaling Stat Distribution");
item.DamageType = db2File.ReadInt32E<DamageType>("Damage Type");
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParserModule.V5_4_1_17538/Parsers/QueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,13 @@ public static void HandleDBReply(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = db2File.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = db2File.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = db2File.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = db2File.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = db2File.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = db2File.ReadInt32("Scaling Stat Distribution");
item.DamageType = db2File.ReadInt32E<DamageType>("Damage Type");
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParserModule.V5_4_2_17658/Parsers/QueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,13 @@ public static void HandleDBReply(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = db2File.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = db2File.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = db2File.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = db2File.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = db2File.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = db2File.ReadInt32("Scaling Stat Distribution");
item.DamageType = db2File.ReadInt32E<DamageType>("Damage Type");
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParserModule.V5_4_7_17898/Parsers/QueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,13 @@ public static void HandleDBReply(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = db2File.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = db2File.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = db2File.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = db2File.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = db2File.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = db2File.ReadInt32("Scaling Stat Distribution");
item.DamageType = db2File.ReadInt32E<DamageType>("Damage Type");
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParserModule.V5_4_8_18291/Parsers/QueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,13 @@ public static void HandleDBReply(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = db2File.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = db2File.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = db2File.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = db2File.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = db2File.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = db2File.ReadInt32("Scaling Stat Distribution");
item.DamageType = db2File.ReadInt32E<DamageType>("Damage Type");
Expand Down
8 changes: 4 additions & 4 deletions WowPacketParserModule.V6_0_2_19033/Parsers/HotfixHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ public static void HandleDBReply(Packet packet)
for (var i = 0; i < 10; i++)
item.StatValues[i] = db2File.ReadInt32("Stat Value", i);

item.StatUnk1 = new int[10];
item.ScalingValue = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk1[i] = db2File.ReadInt32("Unk UInt32 1", i);
item.ScalingValue[i] = db2File.ReadInt32("Scaling Value", i);

item.StatUnk2 = new int[10];
item.SocketCostRate = new int[10];
for (var i = 0; i < 10; i++)
item.StatUnk2[i] = db2File.ReadInt32("Unk UInt32 2", i);
item.SocketCostRate[i] = db2File.ReadInt32("Socket Cost Rate", i);

item.ScalingStatDistribution = db2File.ReadInt32("Scaling Stat Distribution");
item.DamageType = db2File.ReadInt32E<DamageType>("Damage Type");
Expand Down

0 comments on commit 46df8c5

Please sign in to comment.