Browse Source

Serialization update

combat-2
MagicBot 6 months ago
parent
commit
1eda55a3f1
  1. 13
      src/engine/net/client/msg/ManageNPCMsg.java

13
src/engine/net/client/msg/ManageNPCMsg.java

@ -9,8 +9,9 @@ @@ -9,8 +9,9 @@
package engine.net.client.msg;
import engine.gameManager.ForgeManager;
import engine.gameManager.NPCManager;
import engine.mbEnums;
import engine.loot.WorkOrder;
import engine.mbEnums.GameObjectType;
import engine.mbEnums.MinionType;
import engine.mbEnums.ProtectionState;
@ -457,13 +458,11 @@ public class ManageNPCMsg extends ClientNetMsg { @@ -457,13 +458,11 @@ public class ManageNPCMsg extends ClientNetMsg {
else
writer.put((byte) 0);
writer.putInt(mbEnums.toInt(item.flags));
// if ((item.prefixToken == 0 && item.suffixToken == 0))
// writer.putInt(0);
// else
// writer.putInt(-1497023830); ItemFlag.Magic?
writer.putInt(-1497023830); //???? Magic Number
if (item.flags.contains(mbEnums.ItemFlags.Identified)) {
WorkOrder workOrder = ForgeManager.itemWorkOrderLookup.get(item);
if (item.isComplete() || (workOrder.prefixToken != 0 && workOrder.suffixToken != 0)) {
writer.putInt(item.prefixToken);
writer.putInt(item.suffixToken);
} else {

Loading…
Cancel
Save