mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 17:34:39 +01:00
Fix quests always showing dungeon IDs
This commit is contained in:
@@ -288,14 +288,12 @@ public class GameQuest {
|
||||
* is the dungeon's scene point.
|
||||
*/
|
||||
public List<IntIntImmutablePair> getDungeonIds() {
|
||||
var conditions =
|
||||
this.getQuestData().getFinishCond().stream()
|
||||
.filter(cond -> cond.getType() == QuestContent.QUEST_CONTENT_ENTER_DUNGEON)
|
||||
.toList();
|
||||
// Check if this quest is active.
|
||||
if (this.state != QuestState.UNFINISHED) return List.of();
|
||||
|
||||
return conditions.stream()
|
||||
.map(
|
||||
condition -> {
|
||||
return this.getQuestData().getFinishCond().stream()
|
||||
.filter(cond -> cond.getType() == QuestContent.QUEST_CONTENT_ENTER_DUNGEON)
|
||||
.map(condition -> {
|
||||
var params = condition.getParam();
|
||||
// The first parameter is the ID of the dungeon.
|
||||
// The second parameter is the dungeon entry's scene point.
|
||||
|
||||
Reference in New Issue
Block a user