Removed ExOlympiadMyRankingInfo month adjustment.

Contributed by Enryu.
This commit is contained in:
MobiusDevelopment 2022-01-21 03:12:52 +00:00
parent 10fa4cf52b
commit 698d2627e3
8 changed files with 132 additions and 236 deletions

View File

@ -61,17 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (Olympiad.getInstance().getCurrentCycle() > 1)
{
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;
@ -138,7 +128,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
}
packet.writeD(year); // Year
packet.writeD(month); // Month
packet.writeD(Olympiad.getInstance().getCurrentCycle() - 1); // cycle ?
packet.writeD(Math.min(Olympiad.getInstance().getCurrentCycle() - 1, 0)); // cycle ?
packet.writeD(currentPlace); // Place on current cycle ?
packet.writeD(currentWins); // Wins
packet.writeD(currentLoses); // Loses
@ -150,24 +140,6 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
packet.writeD(heroCount); // Hero counts
packet.writeD(legendCount); // Legend counts
packet.writeD(0); // change to 1 causes shows nothing
}
else
{
packet.writeD(year); // Year
packet.writeD(month); // Month
packet.writeD(0); // cycle
packet.writeD(0); // ??
packet.writeD(0); // Wins
packet.writeD(0); // Loses
packet.writeD(0); // Points
packet.writeD(0); // Place on previous cycle
packet.writeD(0); // win count & lose count previous cycle? lol
packet.writeD(0); // ??
packet.writeD(0); // Points on previous cycle
packet.writeD(0); // Hero counts
packet.writeD(0); // Legend counts
packet.writeD(0); // change to 1 causes shows nothing
}
return true;
}
}

View File

@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;

View File

@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;

View File

@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;

View File

@ -61,17 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (Olympiad.getInstance().getCurrentCycle() > 1)
{
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;
@ -138,7 +128,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
}
packet.writeD(year); // Year
packet.writeD(month); // Month
packet.writeD(Olympiad.getInstance().getCurrentCycle() - 1); // cycle ?
packet.writeD(Math.min(Olympiad.getInstance().getCurrentCycle() - 1, 0)); // cycle ?
packet.writeD(currentPlace); // Place on current cycle ?
packet.writeD(currentWins); // Wins
packet.writeD(currentLoses); // Loses
@ -150,24 +140,6 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
packet.writeD(heroCount); // Hero counts
packet.writeD(legendCount); // Legend counts
packet.writeD(0); // change to 1 causes shows nothing
}
else
{
packet.writeD(year); // Year
packet.writeD(month); // Month
packet.writeD(0); // cycle
packet.writeD(0); // ??
packet.writeD(0); // Wins
packet.writeD(0); // Loses
packet.writeD(0); // Points
packet.writeD(0); // Place on previous cycle
packet.writeD(0); // win count & lose count previous cycle? lol
packet.writeD(0); // ??
packet.writeD(0); // Points on previous cycle
packet.writeD(0); // Hero counts
packet.writeD(0); // Legend counts
packet.writeD(0); // change to 1 causes shows nothing
}
return true;
}
}

View File

@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;

View File

@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;

View File

@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
int year = calendar.get(Calendar.YEAR);
// Add one to month {0 - 11}
int month = calendar.get(Calendar.MONTH) + 1;
if (month == 1)
{
year--;
month = 12;
}
else
{
month--;
}
int currentPlace = 0;
int currentWins = 0;
int currentLoses = 0;