Skip to content

Commit

Permalink
Send QUEST_COND_STATE_NOT_EQUAL and QUEST_COND_STATE_EQUAL on login (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
scooterboo authored Oct 2, 2023
1 parent cab3bfb commit 582d7af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/emu/grasscutter/game/quest/QuestManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ private List<GameMainQuest> addMultMainQuests(Set<Integer> mainQuestIds) {
}

public void enableQuests() {
GameData.getBeginCondQuestMap().keySet().forEach(x -> {
if (x.contains("QUEST_COND_STATE_NOT_EQUAL"))
this.triggerEvent(QuestCond.QUEST_COND_STATE_NOT_EQUAL, null, Integer.parseInt(x.substring(26)));
if (x.contains("QUEST_COND_STATE_EQUAL"))
this.triggerEvent(QuestCond.QUEST_COND_STATE_EQUAL, null, Integer.parseInt(x.substring(22)));
});
this.triggerEvent(QuestCond.QUEST_COND_NONE, null, 0);
this.triggerEvent(QuestCond.QUEST_COND_PLAYER_LEVEL_EQUAL_GREATER, null, 1);
}
Expand Down

0 comments on commit 582d7af

Please sign in to comment.