Removed ExOlympiadMyRankingInfo month adjustment.
Contributed by Enryu.
This commit is contained in:
@@ -61,17 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (Olympiad.getInstance().getCurrentCycle() > 1)
|
|
||||||
{
|
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
@@ -138,7 +128,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
packet.writeD(year); // Year
|
packet.writeD(year); // Year
|
||||||
packet.writeD(month); // Month
|
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(currentPlace); // Place on current cycle ?
|
||||||
packet.writeD(currentWins); // Wins
|
packet.writeD(currentWins); // Wins
|
||||||
packet.writeD(currentLoses); // Loses
|
packet.writeD(currentLoses); // Loses
|
||||||
@@ -150,24 +140,6 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(heroCount); // Hero counts
|
packet.writeD(heroCount); // Hero counts
|
||||||
packet.writeD(legendCount); // Legend counts
|
packet.writeD(legendCount); // Legend counts
|
||||||
packet.writeD(0); // change to 1 causes shows nothing
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
|
|||||||
@@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
|
|||||||
@@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
|
|||||||
@@ -61,17 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (Olympiad.getInstance().getCurrentCycle() > 1)
|
|
||||||
{
|
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
@@ -138,7 +128,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
}
|
}
|
||||||
packet.writeD(year); // Year
|
packet.writeD(year); // Year
|
||||||
packet.writeD(month); // Month
|
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(currentPlace); // Place on current cycle ?
|
||||||
packet.writeD(currentWins); // Wins
|
packet.writeD(currentWins); // Wins
|
||||||
packet.writeD(currentLoses); // Loses
|
packet.writeD(currentLoses); // Loses
|
||||||
@@ -150,24 +140,6 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(heroCount); // Hero counts
|
packet.writeD(heroCount); // Hero counts
|
||||||
packet.writeD(legendCount); // Legend counts
|
packet.writeD(legendCount); // Legend counts
|
||||||
packet.writeD(0); // change to 1 causes shows nothing
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
|
|||||||
@@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
|
|||||||
@@ -61,15 +61,7 @@ public class ExOlympiadMyRankingInfo implements IClientOutgoingPacket
|
|||||||
int year = calendar.get(Calendar.YEAR);
|
int year = calendar.get(Calendar.YEAR);
|
||||||
// Add one to month {0 - 11}
|
// Add one to month {0 - 11}
|
||||||
int month = calendar.get(Calendar.MONTH) + 1;
|
int month = calendar.get(Calendar.MONTH) + 1;
|
||||||
if (month == 1)
|
|
||||||
{
|
|
||||||
year--;
|
|
||||||
month = 12;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
month--;
|
|
||||||
}
|
|
||||||
int currentPlace = 0;
|
int currentPlace = 0;
|
||||||
int currentWins = 0;
|
int currentWins = 0;
|
||||||
int currentLoses = 0;
|
int currentLoses = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user