Implement weekly journey ticket limit

This commit is contained in:
Melledy
2025-12-09 23:49:48 -08:00
parent 5d797fb9d3
commit 6483e8a5a7
6 changed files with 77 additions and 33 deletions

View File

@@ -686,6 +686,9 @@ public class Player implements GameDatabaseObject {
if (entries < 3) {
this.getInventory().addItem(GameConstants.WEEKLY_ENTRY_ITEM_ID, 3 - entries);
}
// Reset weekly tower tickets
this.getProgress().clearWeeklyTowerTicketLog();
}
// Check if we need to reset monthly
@@ -819,6 +822,7 @@ public class Player implements GameDatabaseObject {
PlayerInfo proto = PlayerInfo.newInstance()
.setServerTs(Nebula.getCurrentTime())
.setSigninIndex(this.getSignInIndex())
.setTowerTicket(this.getProgress().getTowerTickets())
.setDailyShopRewardStatus(this.getQuestManager().hasDailyReward())
.setAchievements(new byte[64]);