Comments should follow a space.

This commit is contained in:
MobiusDevelopment
2022-07-15 11:02:22 +00:00
parent 48889ed549
commit 939e56683e
22 changed files with 95 additions and 95 deletions

View File

@@ -420,11 +420,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ar" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}
@@ -458,11 +458,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ag" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}

View File

@@ -420,11 +420,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ar" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}
@@ -458,11 +458,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ag" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}

View File

@@ -420,11 +420,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ar" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}
@@ -458,11 +458,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ag" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}

View File

@@ -93,15 +93,15 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
{
packet.writeD(id);
}
packet.writeD(Config.SERVER_ID);// server id
packet.writeD(player.getInt("level"));// level
packet.writeD(player.getInt("classId"));// class id
packet.writeD(player.getInt("clanLevel"));// clan level
packet.writeD(player.getInt("competitions_won"));// win count
packet.writeD(player.getInt("competitions_lost"));// lose count
packet.writeD(player.getInt("olympiad_points"));// points
packet.writeD(player.getInt("count"));// hero counts
packet.writeD(player.getInt("legend_count"));// legend counts
packet.writeD(Config.SERVER_ID); // server id
packet.writeD(player.getInt("level")); // level
packet.writeD(player.getInt("classId")); // class id
packet.writeD(player.getInt("clanLevel")); // clan level
packet.writeD(player.getInt("competitions_won")); // win count
packet.writeD(player.getInt("competitions_lost")); // lose count
packet.writeD(player.getInt("olympiad_points")); // points
packet.writeD(player.getInt("count")); // hero counts
packet.writeD(player.getInt("legend_count")); // legend counts
}
}
else
@@ -147,12 +147,12 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
packet.writeD(Config.SERVER_ID);
packet.writeD(plr.getInt("level"));
packet.writeD(plr.getInt("classId"));
packet.writeD(plr.getInt("clanLevel"));// clan level
packet.writeD(plr.getInt("competitions_won"));// win count
packet.writeD(plr.getInt("competitions_lost"));// lose count
packet.writeD(plr.getInt("olympiad_points"));// points
packet.writeD(plr.getInt("count"));// hero counts
packet.writeD(plr.getInt("legend_count"));// legend counts
packet.writeD(plr.getInt("clanLevel")); // clan level
packet.writeD(plr.getInt("competitions_won")); // win count
packet.writeD(plr.getInt("competitions_lost")); // lose count
packet.writeD(plr.getInt("olympiad_points")); // points
packet.writeD(plr.getInt("count")); // hero counts
packet.writeD(plr.getInt("legend_count")); // legend counts
}
}
}
@@ -215,12 +215,12 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
packet.writeD(Config.SERVER_ID);
packet.writeD(player.getInt("level"));
packet.writeD(player.getInt("classId"));
packet.writeD(player.getInt("clanLevel"));// clan level
packet.writeD(player.getInt("competitions_won"));// win count
packet.writeD(player.getInt("competitions_lost"));// lose count
packet.writeD(player.getInt("olympiad_points"));// points
packet.writeD(player.getInt("count"));// hero counts
packet.writeD(player.getInt("legend_count"));// legend counts
packet.writeD(player.getInt("clanLevel")); // clan level
packet.writeD(player.getInt("competitions_won")); // win count
packet.writeD(player.getInt("competitions_lost")); // lose count
packet.writeD(player.getInt("olympiad_points")); // points
packet.writeD(player.getInt("count")); // hero counts
packet.writeD(player.getInt("legend_count")); // legend counts
i++;
}
}
@@ -265,12 +265,12 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
packet.writeD(Config.SERVER_ID);
packet.writeD(player.getInt("level"));
packet.writeD(player.getInt("classId"));
packet.writeD(player.getInt("clanLevel"));// clan level
packet.writeD(player.getInt("competitions_won"));// win count
packet.writeD(player.getInt("competitions_lost"));// lose count
packet.writeD(player.getInt("olympiad_points"));// points
packet.writeD(player.getInt("count"));// hero counts
packet.writeD(player.getInt("legend_count"));// legend counts
packet.writeD(player.getInt("clanLevel")); // clan level
packet.writeD(player.getInt("competitions_won")); // win count
packet.writeD(player.getInt("competitions_lost")); // lose count
packet.writeD(player.getInt("olympiad_points")); // points
packet.writeD(player.getInt("count")); // hero counts
packet.writeD(player.getInt("legend_count")); // legend counts
}
}
}

View File

@@ -420,11 +420,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ar" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}
@@ -458,11 +458,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ag" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}

View File

@@ -420,11 +420,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ar" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}
@@ -458,11 +458,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ag" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}

View File

@@ -37,7 +37,7 @@ public class ExCollectionList implements IClientOutgoingPacket
{
OutgoingPackets.EX_COLLECTION_LIST.writeId(packet);
packet.writeC(_category);
packet.writeD(0);// size & loop body
packet.writeD(0); // size & loop body
return true;
}
}

View File

@@ -29,7 +29,7 @@ public class ExCollectionOpenUI implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_COLLECTION_OPEN_UI.writeId(packet);
packet.writeC(0);// unk and may be unk D too
packet.writeC(0); // unk and may be unk D too
return true;
}
}

View File

@@ -420,11 +420,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ar" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}
@@ -458,11 +458,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ag" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}

View File

@@ -37,7 +37,7 @@ public class ExCollectionList implements IClientOutgoingPacket
{
OutgoingPackets.EX_COLLECTION_LIST.writeId(packet);
packet.writeC(_category);
packet.writeD(0);// size & loop body
packet.writeD(0); // size & loop body
return true;
}
}

View File

@@ -29,7 +29,7 @@ public class ExCollectionOpenUI implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_COLLECTION_OPEN_UI.writeId(packet);
packet.writeC(0);// unk and may be unk D too
packet.writeC(0); // unk and may be unk D too
return true;
}
}

View File

@@ -420,11 +420,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ar" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}
@@ -458,11 +458,11 @@ public class AdminEnchant implements IAdminCommandHandler
// if enchant value is 0 - show "blank instead of 0
if (currentEnch != 0)
{
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value
getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch)); // send ench value
}
else
{
getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly
getVars = getVars.replace("%ag" + i + "_ench%", " "); // send "space" so displays icon correctly
}
}
}

View File

@@ -37,7 +37,7 @@ public class ExCollectionList implements IClientOutgoingPacket
{
OutgoingPackets.EX_COLLECTION_LIST.writeId(packet);
packet.writeC(_category);
packet.writeD(0);// size & loop body
packet.writeD(0); // size & loop body
return true;
}
}

View File

@@ -29,7 +29,7 @@ public class ExCollectionOpenUI implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_COLLECTION_OPEN_UI.writeId(packet);
packet.writeC(0);// unk and may be unk D too
packet.writeC(0); // unk and may be unk D too
return true;
}
}

View File

@@ -69,7 +69,7 @@ public class RequestServerLogin extends AbstractClientPacket
_key1 = readD();
_key2 = readD();
_server_id = readC();// = rawPacket[9] &0xff;
_server_id = readC(); // = rawPacket[9] &0xff;
}
@Override

View File

@@ -93,15 +93,15 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
{
packet.writeD(id);
}
packet.writeD(Config.SERVER_ID);// server id
packet.writeD(player.getInt("level"));// level
packet.writeD(player.getInt("classId"));// class id
packet.writeD(player.getInt("clanLevel"));// clan level
packet.writeD(player.getInt("competitions_won"));// win count
packet.writeD(player.getInt("competitions_lost"));// lose count
packet.writeD(player.getInt("olympiad_points"));// points
packet.writeD(player.getInt("count"));// hero counts
packet.writeD(player.getInt("legend_count"));// legend counts
packet.writeD(Config.SERVER_ID); // server id
packet.writeD(player.getInt("level")); // level
packet.writeD(player.getInt("classId")); // class id
packet.writeD(player.getInt("clanLevel")); // clan level
packet.writeD(player.getInt("competitions_won")); // win count
packet.writeD(player.getInt("competitions_lost")); // lose count
packet.writeD(player.getInt("olympiad_points")); // points
packet.writeD(player.getInt("count")); // hero counts
packet.writeD(player.getInt("legend_count")); // legend counts
}
}
else
@@ -147,12 +147,12 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
packet.writeD(Config.SERVER_ID);
packet.writeD(plr.getInt("level"));
packet.writeD(plr.getInt("classId"));
packet.writeD(plr.getInt("clanLevel"));// clan level
packet.writeD(plr.getInt("competitions_won"));// win count
packet.writeD(plr.getInt("competitions_lost"));// lose count
packet.writeD(plr.getInt("olympiad_points"));// points
packet.writeD(plr.getInt("count"));// hero counts
packet.writeD(plr.getInt("legend_count"));// legend counts
packet.writeD(plr.getInt("clanLevel")); // clan level
packet.writeD(plr.getInt("competitions_won")); // win count
packet.writeD(plr.getInt("competitions_lost")); // lose count
packet.writeD(plr.getInt("olympiad_points")); // points
packet.writeD(plr.getInt("count")); // hero counts
packet.writeD(plr.getInt("legend_count")); // legend counts
}
}
}
@@ -215,12 +215,12 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
packet.writeD(Config.SERVER_ID);
packet.writeD(player.getInt("level"));
packet.writeD(player.getInt("classId"));
packet.writeD(player.getInt("clanLevel"));// clan level
packet.writeD(player.getInt("competitions_won"));// win count
packet.writeD(player.getInt("competitions_lost"));// lose count
packet.writeD(player.getInt("olympiad_points"));// points
packet.writeD(player.getInt("count"));// hero counts
packet.writeD(player.getInt("legend_count"));// legend counts
packet.writeD(player.getInt("clanLevel")); // clan level
packet.writeD(player.getInt("competitions_won")); // win count
packet.writeD(player.getInt("competitions_lost")); // lose count
packet.writeD(player.getInt("olympiad_points")); // points
packet.writeD(player.getInt("count")); // hero counts
packet.writeD(player.getInt("legend_count")); // legend counts
i++;
}
}
@@ -265,12 +265,12 @@ public class ExOlympiadRankingInfo implements IClientOutgoingPacket
packet.writeD(Config.SERVER_ID);
packet.writeD(player.getInt("level"));
packet.writeD(player.getInt("classId"));
packet.writeD(player.getInt("clanLevel"));// clan level
packet.writeD(player.getInt("competitions_won"));// win count
packet.writeD(player.getInt("competitions_lost"));// lose count
packet.writeD(player.getInt("olympiad_points"));// points
packet.writeD(player.getInt("count"));// hero counts
packet.writeD(player.getInt("legend_count"));// legend counts
packet.writeD(player.getInt("clanLevel")); // clan level
packet.writeD(player.getInt("competitions_won")); // win count
packet.writeD(player.getInt("competitions_lost")); // lose count
packet.writeD(player.getInt("olympiad_points")); // points
packet.writeD(player.getInt("count")); // hero counts
packet.writeD(player.getInt("legend_count")); // legend counts
}
}
}

View File

@@ -37,7 +37,7 @@ public class ExCollectionList implements IClientOutgoingPacket
{
OutgoingPackets.EX_COLLECTION_LIST.writeId(packet);
packet.writeC(_category);
packet.writeD(0);// size & loop body
packet.writeD(0); // size & loop body
return true;
}
}

View File

@@ -29,7 +29,7 @@ public class ExCollectionOpenUI implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_COLLECTION_OPEN_UI.writeId(packet);
packet.writeC(0);// unk and may be unk D too
packet.writeC(0); // unk and may be unk D too
return true;
}
}

View File

@@ -37,7 +37,7 @@ public class ExCollectionList implements IClientOutgoingPacket
{
OutgoingPackets.EX_COLLECTION_LIST.writeId(packet);
packet.writeC(_category);
packet.writeD(0);// size & loop body
packet.writeD(0); // size & loop body
return true;
}
}

View File

@@ -29,7 +29,7 @@ public class ExCollectionOpenUI implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_COLLECTION_OPEN_UI.writeId(packet);
packet.writeC(0);// unk and may be unk D too
packet.writeC(0); // unk and may be unk D too
return true;
}
}

View File

@@ -37,7 +37,7 @@ public class ExCollectionList implements IClientOutgoingPacket
{
OutgoingPackets.EX_COLLECTION_LIST.writeId(packet);
packet.writeC(_category);
packet.writeD(0);// size & loop body
packet.writeD(0); // size & loop body
return true;
}
}

View File

@@ -29,7 +29,7 @@ public class ExCollectionOpenUI implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_COLLECTION_OPEN_UI.writeId(packet);
packet.writeC(0);// unk and may be unk D too
packet.writeC(0); // unk and may be unk D too
return true;
}
}