Reduced UserInfo artifact slots write to one line.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment
2022-07-08 08:53:38 +00:00
parent e7ba41993a
commit c188d5dd77
14 changed files with 14 additions and 28 deletions

View File

@@ -316,14 +316,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -316,14 +316,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -323,14 +323,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -338,14 +338,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -338,14 +338,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -313,14 +313,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -313,14 +313,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -334,14 +334,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -334,14 +334,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -334,14 +334,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {

View File

@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
{ {
packet.writeC(1); // Charm slots packet.writeC(1); // Charm slots
packet.writeC(_player.getInventory().getAgathionSlots() - 1); packet.writeC(_player.getInventory().getAgathionSlots() - 1);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
else else
{ {
packet.writeC(0); // Charm slots packet.writeC(0); // Charm slots
packet.writeC(0); packet.writeC(0);
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
} }
if (containsMask(UserInfoType.MOVEMENTS)) if (containsMask(UserInfoType.MOVEMENTS))
{ {