mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-20 06:49:50 +08:00
Run spotlessApply
This commit is contained in:
@@ -6,9 +6,8 @@ import emu.grasscutter.Grasscutter;
|
||||
import emu.grasscutter.game.quest.enums.QuestContent;
|
||||
import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import it.unimi.dsi.fastutil.ints.IntArrayList;
|
||||
import java.util.Map;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
@@ -39,28 +38,27 @@ public class PlayerProgress {
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks a dungeon as completed.
|
||||
* Triggers the quest event.
|
||||
* Marks a dungeon as completed. Triggers the quest event.
|
||||
*
|
||||
* @param dungeonId The dungeon which was completed.
|
||||
*/
|
||||
public void markDungeonAsComplete(int dungeonId) {
|
||||
if (this.getCompletedDungeons().contains(dungeonId))
|
||||
return;
|
||||
if (this.getCompletedDungeons().contains(dungeonId)) return;
|
||||
|
||||
// Mark the dungeon as completed.
|
||||
this.getCompletedDungeons().add(dungeonId);
|
||||
// Trigger the completion event.
|
||||
if (this.getPlayer() != null) {
|
||||
this.getPlayer().getQuestManager().queueEvent(
|
||||
QuestContent.QUEST_CONTENT_FINISH_DUNGEON, dungeonId
|
||||
);
|
||||
this.getPlayer()
|
||||
.getQuestManager()
|
||||
.queueEvent(QuestContent.QUEST_CONTENT_FINISH_DUNGEON, dungeonId);
|
||||
} else {
|
||||
Grasscutter.getLogger().warn("Unable to execute 'QUEST_CONTENT_FINISH_DUNGEON'. The player is null.");
|
||||
Grasscutter.getLogger()
|
||||
.warn("Unable to execute 'QUEST_CONTENT_FINISH_DUNGEON'. The player is null.");
|
||||
}
|
||||
|
||||
Grasscutter.getLogger().debug("Dungeon {} has been marked complete for {}.",
|
||||
dungeonId, this.getPlayer().getUid());
|
||||
Grasscutter.getLogger()
|
||||
.debug("Dungeon {} has been marked complete for {}.", dungeonId, this.getPlayer().getUid());
|
||||
}
|
||||
|
||||
public boolean hasPlayerObtainedItemHistorically(int itemId) {
|
||||
|
||||
Reference in New Issue
Block a user