mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Allow battle pass weeklies to be reset
This commit is contained in:
@@ -101,14 +101,14 @@ public class BattlePass implements GameDatabaseObject {
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void resetDailyQuests() {
|
||||
public synchronized void resetDailyQuests(boolean resetWeekly) {
|
||||
// Reset daily quests
|
||||
for (var data : GameData.getBattlePassQuestDataTable()) {
|
||||
// Get quest
|
||||
var quest = getQuests().computeIfAbsent(data.getId(), i -> new GameQuest(data));
|
||||
|
||||
// Don't reset weekly quests
|
||||
if (!data.isDaily()) {
|
||||
if (!data.isDaily() && !resetWeekly) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user