@@ -24,22 +24,33 @@ public static void ReadCraftingData(Packet packet, params object[] indexes)
2424 packet . ReadInt32 ( "SkillFromReagents" , indexes ) ;
2525 packet . ReadInt32 ( "Skill" , indexes ) ;
2626 packet . ReadInt32 ( "CritBonusSkill" , indexes ) ;
27- packet . ReadSingle ( "field_1C " , indexes ) ;
28- packet . ReadUInt64 ( "field_20 " , indexes ) ;
27+ packet . ReadSingle ( "ModSkillGain " , indexes ) ;
28+ packet . ReadUInt64 ( "OrderID " , indexes ) ;
2929 var resourcesReturnedCount = packet . ReadUInt32 ( ) ;
3030 packet . ReadUInt32 ( "OperationID" , indexes ) ;
3131 packet . ReadPackedGuid128 ( "ItemGUID" , indexes ) ;
3232 packet . ReadInt32 ( "Quantity" , indexes ) ;
3333 packet . ReadInt32 ( "EnchantID" , indexes ) ;
34+ if ( ClientVersion . AddedInVersion ( ClientVersionBuild . V11_0_0_55666 ) )
35+ {
36+ packet . ReadInt32 ( "ConcentrationCurrencyID" , indexes ) ;
37+ packet . ReadInt32 ( "ConcentrationSpent" , indexes ) ;
38+ packet . ReadInt32 ( "IngenuityRefund" , indexes ) ;
39+ }
3440
3541 for ( var i = 0u ; i < resourcesReturnedCount ; i ++ )
3642 ReadSpellReducedReagent ( packet , indexes , "ResourcesReturned" , i ) ;
3743
38- packet . ReadBit ( "IsCrit" , indexes ) ;
39- packet . ReadBit ( "field_29" , indexes ) ;
40- packet . ReadBit ( "field_2A" , indexes ) ;
41- packet . ReadBit ( "BonusCraft" , indexes ) ;
4244 packet . ResetBitReader ( ) ;
45+ packet . ReadBit ( "IsCrit" , indexes ) ;
46+ packet . ReadBit ( "IsRecraft" , indexes ) ;
47+ packet . ReadBit ( "IsInitialRecraft" , indexes ) ;
48+ packet . ReadBit ( "IsFirstCraft" , indexes ) ;
49+ if ( ClientVersion . AddedInVersion ( ClientVersionBuild . V11_0_0_55666 ) )
50+ {
51+ packet . ReadBit ( "HasIngenuityProc" , indexes ) ;
52+ packet . ReadBit ( "ApplyConcentration" , indexes ) ;
53+ }
4354
4455 Substructures . ItemHandler . ReadItemInstance ( packet , "OldItem" ) ;
4556 Substructures . ItemHandler . ReadItemInstance ( packet , "NewItem" ) ;
@@ -49,18 +60,18 @@ public static void ReadCraftingOrderClientContext(Packet packet, params object[]
4960 {
5061 packet . ReadByte ( "OrderType" , indexes ) ;
5162 packet . ReadUInt32 ( "Offset" , indexes ) ;
63+
64+ packet . ResetBitReader ( ) ;
5265 packet . ReadBit ( "ForCrafter" , indexes ) ;
5366 packet . ReadBit ( "IsMyOrders" , indexes ) ;
5467 packet . ReadBit ( "field_3" , indexes ) ;
5568 packet . ReadBit ( "field_4" , indexes ) ;
56-
57- packet . ResetBitReader ( ) ;
5869 }
5970
6071 public static void ReadCraftingOrderBucketInfo ( Packet packet , params object [ ] indexes )
6172 {
62- packet . ReadBits ( "SkillLineAbilityID" , 20 , indexes ) ;
6373 packet . ResetBitReader ( ) ;
74+ packet . ReadBits ( "SkillLineAbilityID" , 20 , indexes ) ;
6475
6576 packet . ReadInt32 ( "NumAvailable" , indexes ) ;
6677 packet . ReadUInt64 ( "TipAmountMax" , indexes ) ;
@@ -76,8 +87,8 @@ public static void ReadCraftingOrderItem(Packet packet, params object[] indexes)
7687 packet . ReadUInt32 ( "Quantity" , indexes ) ;
7788 packet . ReadInt32 ( "ReagentQuality" , indexes ) ;
7889
79- var hasDataSlotIndex = packet . ReadBit ( ) ;
8090 packet . ResetBitReader ( ) ;
91+ var hasDataSlotIndex = packet . ReadBit ( ) ;
8192
8293 if ( hasDataSlotIndex )
8394 packet . ReadByte ( "DataSlotIndex" , indexes ) ;
@@ -102,11 +113,12 @@ public static void ReadCraftingOrderData(Packet packet, params object[] indexes)
102113 packet . ReadPackedGuid128 ( "PersonalCrafterGUID" , indexes ) ;
103114
104115 var reagentsCount = packet . ReadUInt32 ( ) ;
116+
117+ packet . ResetBitReader ( ) ;
105118 var customerNotesLength = packet . ReadBits ( 10 ) ;
106119 var hasOutputItem = packet . ReadBit ( ) ;
107120 var hasOutputItemData = packet . ReadBit ( ) ;
108121
109- packet . ResetBitReader ( ) ;
110122
111123 for ( var i = 0u ; i < reagentsCount ; ++ i )
112124 ReadCraftingOrderItem ( packet , indexes , "Reagents" , i ) ;
@@ -124,11 +136,11 @@ public static void ReadCraftingOrder(Packet packet, params object[] indexes)
124136 {
125137 ReadCraftingOrderData ( packet , indexes , "Data" ) ;
126138
139+ packet . ResetBitReader ( ) ;
127140 var hasRecraftItemInfo = packet . ReadBit ( ) ;
128141 var enchantmentsCount = packet . ReadBits ( 4 ) ;
129142 var gemCount = packet . ReadBits ( 2 ) ;
130143
131- packet . ResetBitReader ( ) ;
132144
133145 if ( hasRecraftItemInfo )
134146 Substructures . ItemHandler . ReadItemInstance ( packet , indexes , "OutputItemInfo" ) ;
@@ -153,9 +165,10 @@ public static void HandleCraftingOrderListOrdersResponse(Packet packet)
153165 var orderCount = packet . ReadUInt32 ( ) ;
154166 packet . ReadUInt32 ( "DesiredDelay" ) ;
155167 packet . ReadUInt32 ( "NumOrders" ) ;
168+
169+ packet . ResetBitReader ( ) ;
156170 packet . ReadBit ( "HasMoreResults" ) ;
157171 packet . ReadBit ( "IsSorted" ) ;
158- packet . ResetBitReader ( ) ;
159172
160173 ReadCraftingOrderClientContext ( packet , "ClientContext" ) ;
161174
0 commit comments