Browse Source

Serialization update

combat-2
MagicBot 7 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 @@
package engine.net.client.msg; package engine.net.client.msg;
import engine.gameManager.ForgeManager;
import engine.gameManager.NPCManager; import engine.gameManager.NPCManager;
import engine.mbEnums; import engine.loot.WorkOrder;
import engine.mbEnums.GameObjectType; import engine.mbEnums.GameObjectType;
import engine.mbEnums.MinionType; import engine.mbEnums.MinionType;
import engine.mbEnums.ProtectionState; import engine.mbEnums.ProtectionState;
@ -457,13 +458,11 @@ public class ManageNPCMsg extends ClientNetMsg {
else else
writer.put((byte) 0); writer.put((byte) 0);
writer.putInt(mbEnums.toInt(item.flags)); writer.putInt(-1497023830); //???? Magic Number
// if ((item.prefixToken == 0 && item.suffixToken == 0))
// writer.putInt(0);
// else
// writer.putInt(-1497023830); ItemFlag.Magic?
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.prefixToken);
writer.putInt(item.suffixToken); writer.putInt(item.suffixToken);
} else { } else {

Loading…
Cancel
Save