Browse Source

guardlist serialization displays correct minion rank

feature-workorder
FatBoy-DOTC 1 year ago
parent
commit
f556181d77
  1. 6
      src/engine/net/client/msg/ManageNPCMsg.java

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

@ -96,7 +96,7 @@ public class ManageNPCMsg extends ClientNetMsg {
writer.putString("A weapon suited to laying siege"); writer.putString("A weapon suited to laying siege");
} }
private static void serializeGuardList(ByteBufferWriter writer, int minion) { private static void serializeGuardList(ByteBufferWriter writer, int minion, Mob captain) {
writer.putInt(1); writer.putInt(1);
@ -106,7 +106,7 @@ public class ManageNPCMsg extends ClientNetMsg {
writer.putInt(minion); writer.putInt(minion);
writer.putInt(1); writer.putInt(1);
writer.putInt(minion); writer.putInt(minion);
writer.putInt(1); writer.putInt(captain.getRank());//minion rank
writer.put((byte) 0); writer.put((byte) 0);
writer.putInt(600); //roll time writer.putInt(600); //roll time
@ -669,7 +669,7 @@ public class ManageNPCMsg extends ClientNetMsg {
ConcurrentHashMap<Mob, Integer> siegeMinions = mobA.getSiegeMinionMap(); ConcurrentHashMap<Mob, Integer> siegeMinions = mobA.getSiegeMinionMap();
writer.putInt(siegeMinions.size() + 1); writer.putInt(siegeMinions.size() + 1);
serializeGuardList(writer, mobA.getContract().getContractID()); //Guard serializeGuardList(writer, mobA.getContract().getContractID(), mobA); //Guard
if (siegeMinions != null && siegeMinions.size() > 0) if (siegeMinions != null && siegeMinions.size() > 0)

Loading…
Cancel
Save