Skip to content

Commit

Permalink
Add BP login trigger to daily reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
GanyusLeftHorn authored and Melledy committed Jun 28, 2022
1 parent 54c4f60 commit 17fb19e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/emu/grasscutter/game/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,10 @@ private synchronized void doDailyReset() {
// Reset daily BP missions.
this.getBattlePassManager().resetDailyMissions();

// Trigger login BP mission, so players who are online during the reset
// don't have to relog to clear the mission.
this.getBattlePassManager().triggerMission(WatcherTriggerType.TRIGGER_LOGIN);

// Reset weekly BP missions.
if (currentDate.getDayOfWeek() == DayOfWeek.MONDAY) {
this.getBattlePassManager().resetWeeklyMissions();
Expand Down

0 comments on commit 17fb19e

Please sign in to comment.