Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
17fb19eb
Commit
17fb19eb
authored
Jun 28, 2022
by
GanyusLeftHorn
Committed by
Melledy
Jun 28, 2022
Browse files
Add BP login trigger to daily reset.
parent
54c4f60a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/Player.java
View file @
17fb19eb
...
...
@@ -1387,6 +1387,10 @@ public class Player {
// 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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment